# html2canvas — card for AI agents

JavaScript library for taking screenshots of web pages and rendering HTML to canvas.

Category: Files, images and media · npm package `html2canvas` · latest version 1.4.1 (checked 2026-11-01)
Install: `npm install html2canvas`
License: MIT (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Numbers (AgentGid data)
- Gid Score: 79.0 (#117 of all tools, 5 of 281 in its category)
- Used in 75 public projects set up for AI coding agents (1.2%)
- Downloads last week: 26,593,469 (as of 2026-11-24), +43.9% over 4 weeks
- GitHub stars: 31,933 (as of 2026-11-24)
- Last push: 2024-07-18

## Often used with
Lucide React 88.0%, Tailwind Merge 74.7%, jsPDF 74.7%, clsx 74.7%, React 94.7%, Tailwind CSS 89.3%

## Checked alternatives (same job)
- pdf-lib: https://agentgid.com/tools/pdf-lib/agent.md

## Links
- AgentGid page: https://agentgid.com/tools/html2canvas/
- Homepage: https://html2canvas.hertzen.com
- Repository: https://github.com/niklasvh/html2canvas

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
