{"id":14036198,"url":"https://github.com/HuasoFoundries/front_screenshot","last_synced_at":"2025-07-27T03:31:40.673Z","repository":{"id":48420727,"uuid":"64771746","full_name":"HuasoFoundries/front_screenshot","owner":"HuasoFoundries","description":"Mini library, with no dependencies, to output PNGs from maps and reports (or anything in the DOM)","archived":false,"fork":false,"pushed_at":"2023-05-15T12:13:58.000Z","size":16399,"stargazers_count":4,"open_issues_count":19,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-04-25T05:02:43.664Z","etag":null,"topics":["canvg","es6-modules","html2canvas","rollup","screenshot"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HuasoFoundries.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-08-02T16:03:38.000Z","updated_at":"2023-05-15T12:11:02.000Z","dependencies_parsed_at":"2024-01-24T15:26:44.460Z","dependency_job_id":"7387faca-18b6-4eea-b660-f8396bf492dc","html_url":"https://github.com/HuasoFoundries/front_screenshot","commit_stats":{"total_commits":88,"total_committers":2,"mean_commits":44.0,"dds":"0.022727272727272707","last_synced_commit":"854116fa0b84a26e26991d4cba7113662124bbf0"},"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HuasoFoundries%2Ffront_screenshot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HuasoFoundries%2Ffront_screenshot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HuasoFoundries%2Ffront_screenshot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HuasoFoundries%2Ffront_screenshot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HuasoFoundries","download_url":"https://codeload.github.com/HuasoFoundries/front_screenshot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":214982087,"owners_count":15811653,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["canvg","es6-modules","html2canvas","rollup","screenshot"],"created_at":"2024-08-12T03:01:52.198Z","updated_at":"2024-08-12T03:04:23.393Z","avatar_url":"https://github.com/HuasoFoundries.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Front Screenshot\n\n[![Build Status](https://travis-ci.org/HuasoFoundries/front_screenshot.svg?branch=master)](https://travis-ci.org/HuasoFoundries/front_screenshot)\n\nThis library bundles \n \n - [HTML2Canvas](https://html2canvas.hertzen.com/) \n - [Canvg](https://github.com/canvg/canvg)\n - [Cash.js](https://github.com/kenwheeler/cash)\n\nInto an library with no dependencies, that can transform SVG elements into images or Canvas elements, and take screenshots of your page \nor sections of it, even if they are hidden due to CSS properties such as overlay scroll, hidden or auto.\n\n## Why?\n\nBasically, because chart libraries such as [C3.js](https://c3js.org/) can style SVG elements with rotation and other transformations that\n[HTML2Canvas](https://html2canvas.hertzen.com/) cannot parse. So I combined its features with the ones on [Canvg](https://github.com/canvg/canvg)\nto preprocess a given container, transforming each SVG element into an image, then capturing the screenshot, then restoring the original SVG.\n\nSome additions and removal of properties, attributes and classnames where cumbersome to add using native `document.querySelectorAll` methods, so \nI also bundled [Cash.js](https://github.com/kenwheeler/cash), a minimal jQuery alternative that provides just what's needed to manipulate DOM nodes.\n\n\n## Example\n\nSee the online example at: https://huasofoundries.github.io/front_screenshot/\n\nOr, you can also clone this repo, run `make install`, then `make run` from its root and navigate to `http://localhost:5000`.\n\n```sh\ngit clone https://github.com/HuasoFoundries/front_screenshot.git\ncd front_screenshot\nmake install\nmake run\n```\n\n\n\n## API\n\nSee [USAGE.md](USAGE.md)\n\n## Install\n\nInstall it with \n\n```sh\nnpm install front_screenshot\n```\n\n\nor, if you're using [JSPM](https://jspm.io):\n\n\n```sh\njspm install front_screenshot=npm:front_screenshot\n```\n\n\n```sh\njspm install front_screenshot=github:HuasoFroundries/front_screenshot\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHuasoFoundries%2Ffront_screenshot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FHuasoFoundries%2Ffront_screenshot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHuasoFoundries%2Ffront_screenshot/lists"}