# cburgmer/rasterizeHTML.js

Renders HTML into the browser's canvas

Repository: https://github.com/cburgmer/rasterizeHTML.js
Canonical: https://ross.abutalabs.com/products/rasterizehtmljs
Homepage: http://cburgmer.github.io/rasterizeHTML.js
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2026-02-03T12:46:40+00:00

## Health v2 (maintenance only)
Score: 58/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 65, release rhythm 24, longevity 100
- inputs: {"age_days": 5206, "days_push": 211, "days_rel": 298, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2562, forks 219 (observed 2026-08-28T04:07:00.999565+00:00)

## What it is
A JavaScript library that renders HTML into the browser's canvas element by embedding it in an SVG foreignObject and drawing it via drawImage. It inlines external images, fonts, and stylesheets as data URIs to work around SVG resource restrictions.

## Use cases
- render html to canvas in the browser
- generate a screenshot of html content client-side
- convert dom content to an image without a server
- export html snippets as canvas graphics
- draw a webpage into a canvas element

## When to choose
- you need client-side HTML-to-image rendering with no backend
- your content is same-origin or CORS-enabled
- you target modern Firefox, Chrome, or Safari

## When to avoid
- you need Internet Explorer support
- you must render cross-origin resources without CORS
- you need pixel-perfect full-page screenshots of arbitrary websites

## Facets
- artifact type: library
- maturity: maintenance
- function: image-processing, graphics
- domain: web-development, frontend
- platform: browser
- tags: html-to-canvas, svg-foreignobject, screenshot, client-side-rendering, canvas, javascript

## Member repositories
- cburgmer/rasterizeHTML.js (main) score 58

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:00.999565+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:23:30.016178+00:00, confidence not recorded.
  - readme: https://github.com/cburgmer/rasterizeHTML.js (fetched 2026-08-28T04:07:00.999565+00:00, sha c1800f152553)
  - homepage: http://cburgmer.github.io/rasterizeHTML.js (fetched 2026-08-29T10:06:17.431308+00:00, sha aa5fd23c400c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
