Skip to content
JS
Alternatives

canvg alternatives

7 packages that do the same job as canvg: dom-to-image, html-to-image, zrender, vega-canvas, wmf, node-vibrant, diagram-js. Figures below are from npm, GitHub and Bundlephobia.

Data as of 25 Sept 2026
PackageWeekly downloads12-month changeGzipDependenciesLast releaseModuleTypesRuntimes
canvg
This package
9.7m+261%-51 year agoESM + CommonJSBundled-
dom-to-image227.9k+17%-08 years agoCommonJSNone-
html-to-image4.8m+421%-01 year agoESM + CommonJSBundled-
zrender3.7m+237%-14 months agoESM + CommonJSBundled-
vega-canvas670.9k+230%-01 year agoESM onlyNone-
wmf9.4m+210%-06 years agoCommonJSBundled-
node-vibrant552.1k+528%-67 months agoESM + CommonJSBundled-
diagram-js210.9k+39%-9-ESM + CommonJSBundled-

12-month change compares the average of the last 4 weeks of downloads with the first 4 weeks of the 52-week series. Gzip size is for the whole package (Bundlephobia). Runtimes are taken from each package's own documentation; "-" means not recorded.

Generates an image from a DOM node using HTML5 canvas and SVG

Compared with canvg

  • 43x fewer weekly downloads (227.9k vs 9.7m)
  • 0 dependencies vs 5
  • CommonJS vs ESM + CommonJS
  • No types vs bundled types
  • Declares no Node.js engine range vs Node.js >=12.0.0
  • Last release 4 Oct 2017 vs 12 Mar 2025
  • 2.8x more GitHub stars (10.8k vs 3.8k)

Generates an image from a DOM node using HTML5 canvas and SVG.

Compared with canvg

  • 2.0x fewer weekly downloads (4.8m vs 9.7m)
  • 0 dependencies vs 5
  • Declares no Node.js engine range vs Node.js >=12.0.0
  • Last release 14 Feb 2025 vs 12 Mar 2025
  • 1.9x more GitHub stars (7.2k vs 3.8k)

A lightweight graphic library providing 2d draw for Apache ECharts

Compared with canvg

  • 2.6x fewer weekly downloads (3.7m vs 9.7m)
  • 1 dependency vs 5
  • Declares no Node.js engine range vs Node.js >=12.0.0
  • Last release 4 May 2026 vs 12 Mar 2025
  • 1.6x more GitHub stars (6.3k vs 3.8k)

Canvas and Image utilities.

Compared with canvg

  • 15x fewer weekly downloads (670.9k vs 9.7m)
  • 0 dependencies vs 5
  • ESM only vs ESM + CommonJS
  • No types vs bundled types
  • Declares no Node.js engine range vs Node.js >=12.0.0
  • Last release 27 Mar 2025 vs 12 Mar 2025
  • 3.1x more GitHub stars (12k vs 3.8k)

Windows MetaFile (WMF) parser

Compared with canvg

  • About the same weekly downloads (9.4m vs 9.7m)
  • 0 dependencies vs 5
  • CommonJS vs ESM + CommonJS
  • Declares Node.js >=0.8 vs Node.js >=12.0.0
  • Last release 16 Mar 2020 vs 12 Mar 2025
  • 226x fewer GitHub stars (17 vs 3.8k)

Extract prominent colors from an image. Supports both node and browser environment.

Compared with canvg

  • 18x fewer weekly downloads (552.1k vs 9.7m)
  • 6 dependencies vs 5
  • Declares no Node.js engine range vs Node.js >=12.0.0
  • Last release 27 Jan 2026 vs 12 Mar 2025
  • 1.6x fewer GitHub stars (2.5k vs 3.8k)

A toolbox for displaying and modifying diagrams on the web

Compared with canvg

  • 46x fewer weekly downloads (210.9k vs 9.7m)
  • 9 dependencies vs 5
  • Declares Node.js * vs Node.js >=12.0.0
  • Last release - vs 12 Mar 2025
  • 2.0x fewer GitHub stars (1.9k vs 3.8k)
Sources: npm registry, npm downloads API, GitHub API, Bundlephobia. Data fetched 25 Sept 2026.

Indexability: Indexed.