Skip to content
Agents tracked: 378 Downloads (7d): 244M down 5.7% GitHub stars: 8.4M VS Code installs: 151M Releases (7d): 407 Agent status: 1 with issues Updated Oct 10, 2026

node-canvas

Canvas graphics API for Node.js backed by Cairo rendering.

3D and graphics npm MIT

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

dotenv61.3% of node-canvas projects · 3.9× more than average
Axios41.9% of node-canvas projects · 4.2× more than average
Sharp29.0% of node-canvas projects · 9.5× more than average
Express25.8% of node-canvas projects · 4.0× more than average
jsdom22.6% of node-canvas projects · 4.2× more than average
OpenAI22.6% of node-canvas projects · 7.9× more than average
PDF.js19.4% of node-canvas projects · 28.6× more than average
Anthropic SDK19.4% of node-canvas projects · 11.6× more than average

By coding agent

GitHub Copilot0.2% of projects set up for it
Claude Code0.2% of projects set up for it
Cursor0.2% of projects set up for it

Share of public repos configured for each agent that list node-canvas as a dependency.

Install

Packagenpm install canvas
Main stacksTypeScript / JavaScript (22), Next.js (9)
Example projectsAsymmetric-al/core, fedgut/JS-platform-Game, gaohongxiang/web3-script, CharlieAIO/discord-pnl-bot

Alternatives to node-canvas

All 3d and graphics

Tool Used in agent projectsDownloads / wk GitHub starsLicense
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
Is node-canvas right for your project? Ask AgentGid →