Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

html2canvas

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

Files, images and mediaNPM

GitHubWebsite

1. License

License from npm.

github.com/niklasvh/html2canvas

From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error

What html2canvas does

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

html2canvas popularity

79 / 100
Gid Score, #117 overall
26.6M
downloads a week, npm
31.9K
GitHub stars
75
agent projects use it
html2canvas: downloads per weeknpm, html2canvas 26,593,469
html2canvas: GitHub starsniklasvh/html2canvas 31,933

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How html2canvas is used

  • html2canvas is a dependency in 75 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (1.5% of the 4,867 JavaScript/TypeScript ones), #10 of 281 in files, images and media.
  • Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 415; those are left out of every share on this page.
  • The most used alternative in our scan is pdf-lib (64 projects).
  • Projects that use it most often also use Lucide React (88.0%), Tailwind Merge (74.7%), jsPDF (74.7%).

By coding agent

45 projects, 1.4%
41 projects, 1.4%
35 projects, 1.4%
9 projects, 3.2%
7 projects, 1.5%
6 projects, 1.7%

Often used with

In 88.0% of its projects
In 74.7% of its projects
In 74.7% of its projects
In 74.7% of its projects
In 94.7% of its projects
In 89.3% of its projects
In 62.7% of its projects
In 56.0% of its projects

More about html2canvas

More in Files, images and media

Alternatives

html2canvas This page

MITGid 7926.6M/wk

pdf-lib

Create and modify PDF documents with JavaScript in Node.js and browsers.

MITGid 7434.8M/wk

Compare html2canvas with another tool

Get started

Install it.

npm install html2canvas

No step-by-step start for html2canvas yet: we have not written its hand-checked card.