canvg/canvg
JavaScript SVG parser and renderer on Canvas observed · 2026-08-28
Health v2 · maintenance only
79/100
- Activity 99
- Release rhythm 40
- 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: 0
- age_days: 4287
- days_rel: 538
- days_push: 7
- n_releases_24m: 2
Adoption not part of the score
3834 stars · 614 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
canvg is a JavaScript library that parses SVG files (from URL or text) and renders them onto HTML Canvas, including animation support. It can also be used to rasterize SVG images to canvas-based bitmaps.
Use cases
- render svg files on html canvas
- rasterize svg to png in the browser
- display svg animations with canvas
- convert svg markup to canvas drawing
- render svg in node without a browser
- support svg in canvas-based export features
When to choose
- you need to draw SVG content onto a canvas element
- you need to rasterize SVGs to bitmap images client-side
- you need SVG animation support rendered via canvas
- you need SVG rendering in Node.js without a DOM
When to avoid
- you just need to display static SVGs in the DOM - use native <svg> or <img>
- you need full SVG spec compliance including filters and advanced features
- you need server-side SVG to PNG conversion with high fidelity - consider resvg or librsvg
Facets
library · maturity active
parser image-processing graphics web-development frontend graphics image-processing browser svg canvas rasterization svg-rendering 2d-graphics nodejs javascript typescript
4 sources
- readme: https://github.com/canvg/canvg · fetched 2026-08-28 · d29438f7243b
- homepage: https://canvg.js.org · fetched 2026-08-29 · 18708988d663
- site_page: https://canvg.js.org/docs/migration-to-v4 · fetched 2026-08-29 · 62bb543153bb
- registry_npm: https://registry.npmjs.org/canvg · fetched 2026-08-29 · 25140b258deb
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| canvg/canvg | main | 79 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem