jsPDF
Generate PDF documents directly from JavaScript in browsers and Node.js.
Files, images and media npm MIT
Used in agent projects
184
1.4% of 12,697 public repos built with AI coding agents
Rank in files, images and media
#4 of 52
by use in those projects
Downloads
15.6M
npm, last 7 days, jspdf
GitHub stars
31.3K
last push Sep 30, 2026
How jsPDF is used
jsPDF is a dependency in 184 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (1.4%), #4 of 52 in files, images and media. The most used alternative there is Sharp. Projects that use it most often also use Lucide React (83.2%), Tailwind Merge (65.8%), clsx (67.4%). It is more common in projects set up for Devin Desktop (6.2%) than for OpenCode (1.9%).
Often used with jsPDF
| Lucide React | 83.2% of jsPDF projects · 4.2× more than average |
|---|---|
| Tailwind Merge | 65.8% of jsPDF projects · 3.9× more than average |
| clsx | 67.4% of jsPDF projects · 3.8× more than average |
| Class Variance Authority | 59.8% of jsPDF projects · 4.2× more than average |
| Tailwind CSS | 89.7% of jsPDF projects · 2.6× more than average |
| Recharts | 57.1% of jsPDF projects · 7.0× more than average |
| Radix UI | 51.6% of jsPDF projects · 4.3× more than average |
| date-fns | 51.1% of jsPDF projects · 6.0× more than average |
By coding agent
| Claude Code | 2.3% of projects set up for it |
|---|---|
| GitHub Copilot | 2.3% of projects set up for it |
| Cursor | 2.7% of projects set up for it |
| Devin Desktop | 6.2% of projects set up for it |
| Gemini CLI | 3.4% of projects set up for it |
| OpenAI Codex | 2.2% of projects set up for it |
| OpenCode | 1.9% of projects set up for it |
| Kiro | 4.1% of projects set up for it |
Share of public repos configured for each agent that list jsPDF as a dependency.
Install
| Package | npm install jspdf |
|---|---|
| Main stacks | Next.js (89), TypeScript / JavaScript (87), Python (7), Rust (1) |
| Example projects | ding113/claude-code-hub, kupzed/catatz, pierceboggan/coloring-book, riccorohl/trading-journal, gopaljilab/Clinical-Insight-Engine |
Alternatives to jsPDF
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| 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 |
| 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) |
| openpyxl pypi Python library for reading and writing Excel 2010 XLSX/XLSM files. |
88 (0.7%) | 71.8M | — | MIT |