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

html-to-image

Convert DOM elements to images using canvas and SVG with client-side rendering.

Files, images and media npm MIT

Used in agent projects
56
0.4% of 12,697 public repos built with AI coding agents
Rank in files, images and media
#17 of 52
by use in those projects
Downloads
7.5M
npm, last 7 days, html-to-image
GitHub stars
7,252
last push May 28, 2026

How html-to-image is used

html-to-image is a dependency in 56 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (0.4%), #17 of 52 in files, images and media. The most used alternative there is Sharp. Projects that use it most often also use Lucide React (73.2%), Tailwind Merge (60.7%), Framer Motion (53.6%).

Often used with html-to-image

Lucide React73.2% of html-to-image projects · 3.7× more than average
Tailwind Merge60.7% of html-to-image projects · 3.6× more than average
Framer Motion53.6% of html-to-image projects · 4.0× more than average
Tailwind CSS85.7% of html-to-image projects · 2.5× more than average
React96.4% of html-to-image projects · 2.2× more than average
Recharts51.8% of html-to-image projects · 6.3× more than average
clsx60.7% of html-to-image projects · 3.4× more than average
date-fns48.2% of html-to-image projects · 5.7× more than average

By coding agent

Claude Code0.7% of projects set up for it
GitHub Copilot0.6% of projects set up for it
Cursor0.7% of projects set up for it
Gemini CLI1.4% of projects set up for it

Share of public repos configured for each agent that list html-to-image as a dependency.

Install

Packagenpm install html-to-image
Main stacksNext.js (33), TypeScript / JavaScript (20), Python (3)
Example projectsamelioro/ameliorate, SunkenInTime/which-ai, bitovi/convey, lucca180/itemdb, asyncart/classic-art-editor

Alternatives to html-to-image

All files, images and media

Tool Used in agent projectsDownloads / wk GitHub starsLicense
Sharp npm
High-speed image processing for resizing, converting JPEG, PNG, WebP, GIF formats.
390 (3.1%) 115M 32.7K Apache-2.0
Pillow pypi
Python imaging library for image processing, manipulation and conversion.
292 (2.3%) 138M 13.9K —
Nodemailer npm
Send emails from Node.js applications with support for multiple transport methods.
232 (1.8%) 25.2M 17.7K MIT-0
jsPDF npm
Generate PDF documents directly from JavaScript in browsers and Node.js.
184 (1.4%) 15.6M 31.3K MIT
qrcode (JavaScript) npm
Generate QR codes on server and client using canvas with Node.js and browser support.
163 (1.3%) 29.7M 8,178 MIT
SheetJS npm
Parse and generate spreadsheets (Excel, CSV) in Node.js and browsers.
146 (1.1%) 12.7M 36.3K Apache-2.0
html2canvas npm
JavaScript library for taking screenshots of web pages and rendering HTML to canvas.
115 (0.9%) 18.5M 31.9K MIT
JSZip npm
JavaScript library for creating, reading and editing ZIP archives in the browser.
96 (0.8%) 47.5M 10.4K (MIT OR GPL-3.0-or-later)
Is html-to-image right for your project? Ask AgentGid →