# canvg/canvg

JavaScript SVG parser and renderer on Canvas

Repository: https://github.com/canvg/canvg
Canonical: https://ross.abutalabs.com/products/canvg
Homepage: https://canvg.js.org
Language: TypeScript
License: MIT
License Family: permissive
Topics: javascript, svg, canvas, hacktoberfest
Last push: 2026-08-26T15:15:37+00:00

## Health v2 (maintenance only)
Score: 79/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 40, longevity 100
- inputs: {"age_days": 4287, "days_push": 7, "days_rel": 538, "gap_med": 0, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3834, forks 614 (observed 2026-08-28T04:08:23.743394+00:00)

## What it is
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
- artifact type: library
- maturity: active
- function: parser, image-processing, graphics
- domain: web-development, frontend, graphics, image-processing
- platform: browser
- tags: svg, canvas, rasterization, svg-rendering, 2d-graphics, nodejs, javascript, typescript

## Member repositories
- canvg/canvg (main) score 79

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:23.743394+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-29T18:26:17.432364+00:00, confidence not recorded.
  - readme: https://github.com/canvg/canvg (fetched 2026-08-28T04:08:23.743394+00:00, sha d29438f7243b)
  - homepage: https://canvg.js.org (fetched 2026-08-29T09:21:09.147003+00:00, sha 18708988d663)
  - site_page: https://canvg.js.org/docs/migration-to-v4 (fetched 2026-08-29T09:21:09.155722+00:00, sha 62bb543153bb)
  - registry_npm: https://registry.npmjs.org/canvg (fetched 2026-08-29T09:21:09.157470+00:00, sha 25140b258deb)
- Data as of 2026-08-30T08:39:29.467469+00:00.
