resvg-js
Reasonable, with limits. 6th of 9 image processing libraries.
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
Overall5.9
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 5.0, likely 4.0 to 6.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.
- peers sharp / @napi-rs/canvas: Peers are far more active and broader.
- github.com/thx/resvg-js/releases: No stable release since March 2024.
- github.com/thx/resvg-js/issues: Crash reports remain open.
GPT-6.2 Sol: 6.8, likely 5.6 to 7.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.
- raw.githubusercontent.com/thx/resvg-js/v2.6.2/index.d.ts: Stable API exposes the controls that make it useful for specialized SVG rendering.
- github.com/thx/resvg-js/releases: The 2026 alphas have yet to replace the March 2024 stable release.
- blog.arnabxd.me/build-time-og-images-in-astro: Demonstrates a working social card pipeline.
- sharp.pixelplumbing.com: Sharp covers common image resizing and conversion across many formats.
Needed by many3.4
How many developers need a tool for this job?
Claude Opus 5.5: 3.0, likely 2.0 to 4.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.
- github description: An SVG renderer and toolkit, not general image processing.
- dev.to/anasrin/generate-image-from-html-using-satori-and-resvg-46j6: Typical use is the Satori-to-PNG pipeline.
GPT-6.2 Sol: 3.8, likely 2.8 to 4.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.
- github.com/thx/resvg-js: Documents SVG-to-PNG features and the separate browser build.
- blog.arnabxd.me/build-time-og-images-in-astro: Shows a real build-time social card workflow.
- sharp.pixelplumbing.com: Shows the broader resize and format-conversion scope of sharp.
- 2025.stateofjs.com/en-US/libraries: Library survey does not measure SVG rasterization demand.
Helps a lot6.8
How well does it do the job for those who need it?
Claude Opus 5.5: 6.0, likely 5.0 to 7.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.
- github.com/thx/resvg-js: Features: platforms, wasm, fonts, bbox cropping. The benchmark is the project's own.
- github.com/thx/resvg-js/issues: Open reports of panics (#413, #415, #423), a render memory leak (#421) and an old bundled resvg 0.34 (#422).
- github.com/thx/resvg-js/releases: The catch_unwind panic protection is only in 2.7.0-alpha.
- npm hasTypes: Ships TypeScript types.
GPT-6.2 Sol: 7.6, likely 6.4 to 8.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.
- raw.githubusercontent.com/thx/resvg-js/v2.6.2/index.d.ts: Stable types cover rendering, font selection, and bounding boxes.
- github.com/thx/resvg-js: README includes native and WebAssembly examples.
- github.com/thx/resvg-js/issues/404: User got correct text after expanding CSS font shorthand.
- github.com/thx/resvg-js/issues/145: Older independent batch test favored sharp, with a smaller lead after configuration changes.
Holds up over time4.2
Will it still be a good choice in two years?
Claude Opus 5.5: 3.5, likely 2.5 to 5.0
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.
- npm latestPublishedAt / versionsLastYear: 2.6.2 is from March 2024, with 0 npm versions in the last year.
- github commitsLastYear: 23 commits, 27 open PRs.
- github.com/thx/resvg-js/releases: Only alpha releases since 2024.
- archlinux.org/packages/extra-testing/x86_64/resvg: Upstream resvg is at 0.48, far ahead of the bundled version.
GPT-6.2 Sol: 4.9, likely 3.5 to 6.6
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.
- github commitsLastYear and pushedAt: 23 commits in the past year, with the last push in June 2026.
- github.com/thx/resvg-js/releases: Shows 2.6.2 as the latest stable release and the 2026 alpha tags.
- raw.githubusercontent.com/thx/resvg-js/main/CHANGELOG.md: Alpha entries describe memory and crash fixes.
- github.com/nuxt-modules/og-image/issues/435: Nuxt OG Image retains the Satori integration and recommends Takumi.
- npmjs.com/package/%40resvg/resvg-js?activeTab=dependencies: Lists three npm collaborators.
Used widely5.1
How many use it, and is that growing?
Claude Opus 5.5: 5.5, likely 4.5 to 6.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.
- npm downloadsLast4Weeks / downloadsSame4WeeksYearAgo: 29.5M vs 1.66M, ratio about 17.8.
- dependents: 757 repos and 47 packages; Satori has 2614 and sharp 178k.
- github stars: 2,015 stars, no HN stories, no Bluesky posts.
GPT-6.2 Sol: 4.7, likely 3.4 to 6.0
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.
- npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo and medianDownloadsRatio: 17.8× download growth against the 4.1× baseline.
- dependents and peers dependentRepos: 757 indexed repositories versus 670 for pica, 38,000 for node-canvas, and 178,353 for sharp.
- github.com/dicebear/dicebear/security/advisories/GHSA-7j2x-32w6-p43p: Documents the native package in DiceBear’s Node converter.
- npmjs.com/package/%40resvg/resvg-wasm?activeTab=versions: The WebAssembly package has its own downloads.
Vouched for5.6
Who stands behind it being good?
Claude Opus 5.5: 4.5, likely 3.0 to 6.0
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.
- unpkg.com/satori@0.63.2/README.md: Satori's docs suggest sharp for PNG output.
- github.com/sahithyandev/og: A third-party OG tool uses Satori plus resvg, as @vercel/og does.
- hackerNews / bluesky: No discussion found.
GPT-6.2 Sol: 6.7, likely 5.5 to 7.8
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.
- github.com/dicebear/dicebear/security/advisories/GHSA-7j2x-32w6-p43p: DiceBear uses the native binding in Node.
- github.com/OpenPresentation/opf-render: Uses the native package for PNG export and PDF raster fallback.
- nuxtseo.com/docs/og-image/migration-guide/v7: The current Satori integration specifies stable resvg-js.
- nextjs.org/docs/app/api-reference/functions/image-response: Next.js uses Resvg through Vercel OG.
- npmjs.com/package/%40vercel/og?activeTab=dependencies: Vercel OG depends on resvg-wasm.
Safe6.1
How safe is it to depend on?
Claude Opus 5.5: 6.5, likely 5.5 to 7.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.
- advisories: 0 advisories.
- npm dependencies: 0 dependencies.
- npm license: MPL-2.0.
- github.com/thx/resvg-js/issues: Open panic and abort issues.
GPT-6.2 Sol: 5.7, likely 4.3 to 7.0
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.
- advisories, scorecard and npm dependencies: Zero recorded direct advisories, no Scorecard data, and zero regular npm dependencies.
- github.com/uscensusbureau/ai-toolkit-frontend/blob/main/package-lock.json: The stable package resolves to optional platform-specific binaries.
- raw.githubusercontent.com/thx/resvg-js/v2.6.2/Cargo.toml: The binaries build with Rust dependencies including resvg and napi.
- raw.githubusercontent.com/thx/resvg-js/v2.6.2/.github/workflows/CI.yaml: The stable release workflow publishes through GitHub Actions with an npm token.
- github.com/thx/resvg-js/security: GitHub shows no published security policy.
- github.com/dicebear/dicebear/security/advisories/GHSA-7j2x-32w6-p43p: DiceBear fixed an input-sizing bug that could exhaust memory during rendering.
- mozilla.org/en-US/MPL/2.0/FAQ: MPL-2.0 permits proprietary combinations with obligations for covered files.
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
- npm downloads, 4 weeks
- 30M ×18 in a year
- GitHub stars
- 2k
- Commits, 12 months
- 23
- npm version
- 2.6.2 Mar 2024
- Versions, 12 months
- 0
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- None
- Licence
- MPL-2.0
Read on 21 November 2026 from GitHub (thx/resvg-js), npm (@resvg/resvg-js), OSV and the OpenSSF Scorecard.