# thx/resvg-js

A high-performance SVG renderer and toolkit, powered by Rust based resvg and napi-rs.

Repository: https://github.com/thx/resvg-js
Canonical: https://ross.abutalabs.com/products/resvg-js
Homepage: https://resvg-js.vercel.app/
Language: TypeScript
License: MPL-2.0
License Family: copyleft
Topics: nodejs, rust, wasm, svg
Last push: 2026-06-30T20:34:55+00:00

## Health v2 (maintenance only)
Score: 82/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 90, release rhythm 60, longevity 100
- inputs: {"age_days": 1790, "days_push": 64, "days_rel": 217, "gap_med": 2.5, "n_releases_24m": 7}
- flags: prerelease_only
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1980, forks 78 (observed 2026-08-28T04:06:01.681944+00:00)

## What it is
A high-performance SVG renderer and toolkit for Node.js, Deno, and browsers, built on the Rust resvg library via napi-rs with a WebAssembly backend. It converts SVG to PNG with cropping, scaling, custom fonts, and simplified SVG output.

## Use cases
- convert svg to png in nodejs
- render svg with custom fonts server-side
- generate png thumbnails from svg files
- render svg in the browser with wasm
- crop and scale svg images programmatically
- simplify svg shapes to paths
- get svg dimensions and bounding box

## When to choose
- you need fast, correct SVG-to-PNG rendering in Node.js, Deno, or the browser
- you need custom font support in SVG text rendering
- you want a zero-dependency native addon without node-gyp builds

## When to avoid
- you need to rasterize SVG to formats other than PNG
- you work outside the JavaScript ecosystem and can use resvg directly
- you need full SVG animation support

## Facets
- artifact type: library
- maturity: active
- function: image-processing, graphics
- domain: web-development, graphics, developer-tools
- platform: rust, wasm, cross-platform
- tags: svg-rendering, svg-to-png, napi-rs, native-addon, font-rendering, nodejs, deno

## Member repositories
- thx/resvg-js (main) score 82

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:01.681944+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-30T03:04:40.252961+00:00, confidence not recorded.
  - readme: https://github.com/thx/resvg-js (fetched 2026-08-28T04:06:01.681944+00:00, sha 288bc74801e5)
  - homepage: https://resvg-js.vercel.app/ (fetched 2026-08-29T10:43:55.994748+00:00, sha 13ed92e8e5be)
- Data as of 2026-08-30T08:39:29.467469+00:00.
