# resvg-js: 5.9 out of 10

Reasonable, with limits. 6th of 9 in [Image processing libraries](https://elestia.ai/opensource/images/index.md).

resvg-js is a fast Node.js and WebAssembly SVG-to-PNG renderer built on the Rust resvg engine. It is often paired with Satori to make OG images. It renders well, but the last stable release, 2.6.2, is from March 2024 and bundles an old resvg. Bad SVGs can panic and crash the process. Since then there have only been alpha builds, so it is a reasonable but ageing choice for SVG rasterising alone.

**Best for:** Projects that only need to turn SVGs, such as Satori output, into PNGs without native build steps.

## Scores

- **Overall: 5.9** (likely 4.8 to 6.9)
  - Claude Opus 5.5 (5.0): It is a good, easy-to-install SVG rasteriser with fast-growing use. But the stable release is old, maintenance has thinned to alpha builds, and panics can crash Node. sharp already rasterises SVG and also covers resizing and conversion. @napi-rs/canvas is more active and covers drawing. Pick resvg-js only when you need SVG-to-PNG alone with accurate rendering, and test the 2.7 alpha.
  - GPT-6.2 Sol (6.8): resvg-js is a good choice for a new pipeline that turns known SVG templates into PNGs and needs custom fonts or precise cropping. The long stable release gap and alpha-only reliability fixes reduce confidence for long-lived services. Sharp is the stronger default for general-purpose image processing, and the value of resvg-js depends on how much the project needs its SVG controls.
- **Needed by many: 3.4** (likely 2.4 to 4.4)
  - Claude Opus 5.5 (3.0): It only converts SVG to PNG, which is a small part of the category's job of resizing, converting and drawing images. Many web apps that build OG images or icons need this, but most JS developers never do.
  - GPT-6.2 Sol (3.8): Rendering static SVGs to PNG is a clear niche that covers social cards, icons, and document exports. The separate WebAssembly build extends its reach across runtimes, while general photo resizing and format conversion call for a broader library. The available developer survey gives no estimate of how many teams need this exact workflow.
- **Helps a lot: 6.8** (likely 5.7 to 7.8)
  - Claude Opus 5.5 (6.0): resvg is a correct, fast SVG renderer, and the binding ships types, prebuilt binaries for many platforms and a WebAssembly build. The stable version bundles resvg 0.34, though, so it misses newer SVG features and fixes. Malformed or unusual SVGs can panic and abort Node, and users report a memory leak in render(). The catch_unwind fix exists only in the alphas.
  - GPT-6.2 Sol (7.6): Stable 2.6.2 has a small typed API for custom fonts, sizing, cropping, and async rendering. Those types and the examples make ordinary conversions straightforward for coding agents, though independent agent accuracy data is sparse. A 2026 user report documents a font shorthand gap, and an older bulk conversion test favored sharp. That benchmark predates 2.6.2, so current throughput is uncertain.
- **Holds up over time: 4.2** (likely 3.0 to 5.8)
  - Claude Opus 5.5 (3.5): No stable npm release has come out in over two and a half years. The work since then is alpha tags from September 2025 and January 2026, and the last push was in June 2026. There were 23 commits last year, and the work rests mostly on one maintainer with no visible funding. Satori pipelines still need a rasteriser, which keeps demand alive, and the alphas show the project is not abandoned.
  - GPT-6.2 Sol (4.9): The wrapper had 23 commits in the past year, but its latest stable release is from March 2024. The January 2026 alphas show work on memory use and crash handling, with stable delivery still uncertain. Nuxt OG Image continues to support the Satori and resvg path and now recommends Takumi. npm lists three collaborators, with limited public evidence about release access, funding, or response times.
- **Used widely: 5.1** (likely 4.0 to 6.3)
  - Claude Opus 5.5 (5.5): Downloads went from 1.66M to 29.5M per four weeks, a ratio of about 17.8 against the 4.1 median, so it is gaining ground fast. Most of that probably comes from being installed by other tools, not chosen directly. ecosyste.ms counts 757 dependent repos, a third of Satori's and far below sharp's or node-canvas's, so direct choices number in the low tens of thousands at most.
  - GPT-6.2 Sol (4.7): Four-week npm downloads rose from 1.66 million to 29.51 million, or 17.8× against a 4.1× catalog median. Installs through downstream tools such as DiceBear and repeat CI installs make the pace of new direct adoption uncertain. Ecosyste.ms indexed 757 repositories and 47 packages, close to pica’s repository count and far below sharp or node-canvas. The separate WebAssembly package adds reach that the native npm count misses.
- **Vouched for: 5.6** (likely 4.3 to 6.9)
  - Claude Opus 5.5 (4.5): Satori tutorials and OG-image tools widely use it as the rasteriser, and the @vercel/og stack builds on resvg. Satori's own README points to sharp first, though. I found no independent benchmarks, survey data or production write-ups, and the speed claim comes from the project itself.
  - GPT-6.2 Sol (6.7): DiceBear and OpenPresentation use resvg-js for raster output, and Nuxt OG Image offers it on the Node.js Satori path. Next.js ImageResponse validates the renderer family through Vercel’s WebAssembly integration. These are concrete deployments and integrations, while current independent benchmarks and survey-based satisfaction data are thin.
- **Safe: 6.1** (likely 4.9 to 7.3)
  - Claude Opus 5.5 (6.5): It has zero npm dependencies, uses memory-safe Rust and has no advisories. Process-aborting panics on crafted SVGs are a denial-of-service risk for services that render untrusted input, and the bundled engine is old. There is no Scorecard data, and publishing rests on few people. MPL-2.0 is weak copyleft at file level and allows commercial use.
  - GPT-6.2 Sol (5.7): The collector found zero direct advisories and no Scorecard result. The npm wrapper has zero regular dependencies and installs a platform binary with bundled Rust code. Stable releases used token-based GitHub Actions publishing, and the repository lacks a published security policy. DiceBear’s downstream advisory shows the memory risk of rendering untrusted SVGs without size limits, and MPL-2.0 allows commercial use with file-level source obligations on distribution.

## Good

- It ships prebuilt binaries for many platforms plus a WebAssembly build, with no node-gyp, no postinstall step and zero npm dependencies.
- SVG rendering from the resvg engine is accurate, fast and gives the same output on every platform.
- It supports custom font files and font buffers, cropping to the bounding box and reading image dimensions.
- It is the usual renderer paired with Satori for OG image generation.

## Bad

- The last stable release, 2.6.2, is from March 2024 and bundles resvg 0.34, far behind upstream 0.48. Newer fixes exist only in alpha builds.
- Rust panics on some SVGs (unwrap in geom, <use>, clip-paths) abort the whole Node process in the stable version.
- It only rasterises SVG. Resizing, format conversion and drawing need sharp or a canvas library.
- Maintenance is light: 23 commits last year, 54 open issues and 27 open PRs, with one main maintainer.

## The numbers

- Downloads, 4 weeks: 30M
- In a year: ×18
- GitHub stars: 2k
- Commits, 12 months: 23
- Last npm release: Mar 2024
- Advisories, 24 months: 0
- Licence: MPL-2.0
- GitHub: https://github.com/thx/resvg-js
- npm: https://www.npmjs.com/package/@resvg/resvg-js

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
