niklasvh/html2canvas
Screenshots with JavaScript observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5528
- days_rel: n/a
- days_push: 776
- n_releases_24m: 0
Adoption not part of the score
31923 stars · 4875 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
html2canvas is a JavaScript library that renders webpages or DOM elements as canvas images entirely in the browser, without server-side rendering. It rebuilds a visual representation by reading the DOM and applied CSS styles, so output may not be pixel-perfect and some CSS properties are unsupported.
Use cases
- capture a screenshot of a webpage in the browser
- export a DOM element as a PNG image
- let users download a snapshot of a report or card
- render part of a page to canvas for sharing
- generate client-side page images without a server
When to choose
- you need client-side page or element capture with no server rendering
- you want a lightweight (~45kb gzipped) MIT-licensed library
- your content is same-origin and uses well-supported CSS
When to avoid
- you need pixel-perfect or full CSS fidelity
- you need to capture cross-origin content without a proxy
- you want to run it in Node.js (browser-only)
- you need production-grade stability for complex layouts
Facets
library · maturity maintenance
image-processing graphics web-development frontend browser screenshot dom-rendering canvas client-side html-renderer javascript nodejs
4 sources
- readme: https://github.com/niklasvh/html2canvas · fetched 2026-08-28 · 5ecf30e7178b
- homepage: https://html2canvas.hertzen.com/ · fetched 2026-08-29 · a1a96d569c52
- site_page: https://html2canvas.hertzen.com/documentation · fetched 2026-08-29 · cdcafa17fefe
- registry_npm: https://registry.npmjs.org/html2canvas · fetched 2026-08-29 · e2ccd4963db3
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| niklasvh/html2canvas | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="niklasvh/html2canvas")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem