Used in agent projects
31
0.2% of 12,697 public repos built with AI coding agents
Rank in 3d and graphics
#17 of 19
by use in those projects
Downloads
8.2M
npm, last 7 days, canvas
GitHub stars
10.7K
last push Aug 24, 2026
How node-canvas is used
node-canvas is a dependency in 31 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (0.2%), #17 of 19 in 3d and graphics. The most used alternative there is React Three Fiber. Projects that use it most often also use dotenv (61.3%), Axios (41.9%), Sharp (29.0%).
Often used with node-canvas
| dotenv | 61.3% of node-canvas projects · 3.9× more than average |
|---|---|
| Axios | 41.9% of node-canvas projects · 4.2× more than average |
| Sharp | 29.0% of node-canvas projects · 9.5× more than average |
| Express | 25.8% of node-canvas projects · 4.0× more than average |
| jsdom | 22.6% of node-canvas projects · 4.2× more than average |
| OpenAI | 22.6% of node-canvas projects · 7.9× more than average |
| PDF.js | 19.4% of node-canvas projects · 28.6× more than average |
| Anthropic SDK | 19.4% of node-canvas projects · 11.6× more than average |
By coding agent
| GitHub Copilot | 0.2% of projects set up for it |
|---|---|
| Claude Code | 0.2% of projects set up for it |
| Cursor | 0.2% of projects set up for it |
Share of public repos configured for each agent that list node-canvas as a dependency.
Install
| Package | npm install canvas |
|---|---|
| Main stacks | TypeScript / JavaScript (22), Next.js (9) |
| Example projects | Asymmetric-al/core, fedgut/JS-platform-Game, gaohongxiang/web3-script, CharlieAIO/discord-pnl-bot |
Alternatives to node-canvas
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| React Three Fiber npm React renderer for Three.js enabling 3D graphics with component patterns. |
2,360 (18.6%) | 6M | 32.8K | MIT |
| Three.js npm JavaScript 3D library for creating interactive 3D graphics in browsers. |
2,329 (18.3%) | 20.1M | 116K | MIT |
| maath npm Math utilities library for 3D graphics and animations in Three.js and React Three Fiber. |
176 (1.4%) | 4.6M | — | MIT |
| Leaflet npm Lightweight JavaScript library for creating mobile-friendly interactive maps. |
160 (1.3%) | 8M | 45.7K | BSD-2-Clause |
| React Leaflet npm React components for Leaflet maps enabling interactive mapping in React applications. |
121 (1.0%) | 3.7M | 5,603 | Hippocratic-2.1 |
| Postprocessing npm Post-processing effects library for Three.js rendering advanced visual effects. |
109 (0.9%) | 977K | 2,874 | Zlib |
| r3f-perf npm Performance monitoring tool for React Three Fiber applications. |
78 (0.6%) | 31.1K | 781 | MIT |
| three-stdlib npm Stand-alone collection of Three.js examples and utilities. |
78 (0.6%) | 4.3M | 861 | MIT |