html2canvas
JavaScript library that renders a page's DOM to a canvas, so the page or part of it can be captured as a screenshot in the browser.
html2canvas.hertzen.com/repositorydocs
html2canvas is a JavaScript library that renders a page, or part of it, to a canvas element so the result can be captured as a screenshot. It reads the DOM and the styles applied to its elements and builds the image in the visitor’s browser, so no server renders it. Ready builds are downloaded from the GitHub releases page. Niklas von Hertzen created it.
Worth knowing
The image is built from the DOM rather than captured from pixels, so it may differ from the page as shown. Images must be on the same origin as the page unless a proxy is used. The README calls the library experimental and says it is not suitable for Node.js.
Identity
- Status
- Stub
- Maintainer
- Niklas von Hertzen4
- Maintained by
- Individual
- First release
- 20116
Rendering and deploy
- Runs as
- In the browser5
- Install with
- download15
Releases
Adoption
Sources
- 2026-11-09: links, Install with, License model
html2canvas.hertzen.com/ - 2026-11-09: links, Written in, License, GitHub stars
api.github.com/repos/niklasvh/html2canvas - 2026-11-09: links
html2canvas.hertzen.com/documentation - 2026-11-09: Maintainer
raw.githubusercontent.com/niklasvh/html2canvas/master/LICENSE - 2026-11-09: Categories, Runs as, Install with
github.com/niklasvh/html2canvas/blob/master/README.md - 2026-11-09: First release
api.github.com/repos/niklasvh/html2canvas/git/commits/45ad98e73c75931ebc5bdc9f504f37274f1175c3 - 2026-11-09: Current major version, Last release
api.github.com/repos/niklasvh/html2canvas/releases - 2026-11-09: Contributors
api.github.com/repos/niklasvh/html2canvas/contributors?per_page=1 - 2026-11-09: npm downloads a week
api.npmjs.org/downloads/range/2026-11-01:2026-11-07/html2canvas - 2026-11-09: Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/html2canvas