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.
| Package | Weekly downloads | 12-month change | Gzip | Dependencies | Last release | Module | Types | Runtimes |
|---|---|---|---|---|---|---|---|---|
| canvg This package | 9.7m | +261% | - | 5 | 1 year ago | ESM + CommonJS | Bundled | - |
| dom-to-image | 227.9k | +17% | - | 0 | 8 years ago | CommonJS | None | - |
| html-to-image | 4.8m | +421% | - | 0 | 1 year ago | ESM + CommonJS | Bundled | - |
| zrender | 3.7m | +237% | - | 1 | 4 months ago | ESM + CommonJS | Bundled | - |
| vega-canvas | 670.9k | +230% | - | 0 | 1 year ago | ESM only | None | - |
| wmf | 9.4m | +210% | - | 0 | 6 years ago | CommonJS | Bundled | - |
| node-vibrant | 552.1k | +528% | - | 6 | 7 months ago | ESM + CommonJS | Bundled | - |
| diagram-js | 210.9k | +39% | - | 9 | - | ESM + CommonJS | Bundled | - |
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)
Indexability: Indexed.