tsayen/dom-to-image
Generates an image from a DOM node using HTML5 canvas observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases no_license
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: 4156
- days_rel: n/a
- days_push: 877
- n_releases_24m: 0
Adoption not part of the score
10779 stars · 1680 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A JavaScript library that converts arbitrary DOM nodes into vector (SVG) or raster (PNG/JPEG) images using HTML5 canvas and SVG serialization. It supports web fonts, images, node filtering, and raw pixel data extraction.
Use cases
- render a DOM element to a PNG image in the browser
- export an HTML chart or widget as a downloadable JPEG
- convert a DOM node to an SVG data URL
- capture a screenshot of a page section client-side
- get raw RGBA pixel data from rendered HTML
When to choose
- you need client-side rendering of HTML to images without a headless browser
- you want to export charts, cards, or UI components as PNG/JPEG/SVG
- you need pixel data from rendered DOM content
When to avoid
- you need pixel-perfect full-page screenshots with full CSS support (use Puppeteer or Playwright)
- you need server-side rendering of HTML to images
- the project appears largely unmaintained; consider actively maintained forks like html-to-image
Facets
library · maturity maintenance
image-processing graphics web-development frontend browser dom canvas svg screenshot png jpeg html-to-image nodejs
2 sources
- readme: https://github.com/tsayen/dom-to-image · fetched 2026-08-28 · 58d9fbac426f
- registry_npm: https://registry.npmjs.org/dom-to-image · fetched 2026-08-29 · bc4ea0a69f8a
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| tsayen/dom-to-image | main | 32 |
For agents
markdown · JSON · MCP: product_card(name="tsayen/dom-to-image")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem