jsPDF vs pdf-lib
In 4,864 JavaScript/TypeScript projects set up for AI coding agents, jsPDF is a dependency in 131 (2.7%) and pdf-lib in 64 (1.3%): jsPDF is 2.0× as common. Among repos created in the last 90 days that use a files, images and media tool, jsPDF is in 7.8% and pdf-lib in 7.8%, against 12.7% and 6.0% of older ones. 8 projects list both, often a sign of a migration or of a monorepo with several apps.
Files, images and media npm Updated Nov 17, 2026
Side by side
| jsPDF | pdf-lib | |
|---|---|---|
| Agent projects that use it | 131 | 64 |
| Rank in files, images and media | #4 | #13 |
| In new repos with a files, images and media tool (last 90 days) | 7.8% | 7.8% |
| In older repos with one | 12.7% | 6.0% |
| Downloads, last 7 days | 22.1M | 32.7M |
| GitHub stars | 31.3K | 8,685 |
| Last push to its repo | Nov 14, 2026 | Jul 17, 2024 |
| License | MIT | MIT |
| Funding | — | — |
| Projects that list both | 8 | |
Downloads include CI runs and installs as a dependency of other packages. Stars and pushes are from GitHub's API; downloads from npm.
By coding agent
| Projects set up for | JavaScript/TypeScript repos | jsPDF | pdf-lib |
|---|---|---|---|
| Claude Code | 2,617 | 2.9% | 1.2% |
| GitHub Copilot | 2,350 | 3.0% | 1.0% |
| Cursor | 1,990 | 3.3% | 1.7% |
| Gemini CLI | 422 | 3.6% | 1.2% |
| OpenAI Codex | 409 | 2.4% | 0% |
| OpenCode | 304 | 2.0% | 0% |
| Devin Desktop | 231 | 7.4% | 0% |
| Kiro | 125 | 4.8% | 0% |
Share of the JavaScript/TypeScript repos configured for each agent (its config file in the repo) that list the tool. A repo set up for two agents counts for both.
jsPDF
Generate PDF documents directly from JavaScript in browsers and Node.js.
Most often used with it:
| Lucide React | 84.7% of its projects |
|---|---|
| React | 93.9% of its projects |
| Tailwind CSS | 93.9% of its projects |
| clsx | 72.5% of its projects |
| Tailwind Merge | 69.5% of its projects |
npm install jspdf
pdf-lib
Create and modify PDF documents with JavaScript in Node.js and browsers.
Most often used with it:
| Lucide React | 70.3% of its projects |
|---|---|
| Class Variance Authority | 60.9% of its projects |
| React | 85.9% of its projects |
| Tailwind Merge | 60.9% of its projects |
| clsx | 60.9% of its projects |
npm install pdf-lib
More matchups
How we count
Projects are public GitHub repos our weekly scan finds through coding-agent config files (CLAUDE.md, AGENTS.md, .cursor/mcp.json and others); a project uses a tool when its package.json, requirements.txt or pyproject.toml lists it. "Same job" was checked for every pair, so add-ons and companions are never paired. Shares by repo age compare repos created in the last 90 days with older ones in the same scan. More on the method.