PDF.js vs pdf-parse
In 4,864 JavaScript/TypeScript projects set up for AI coding agents, PDF.js is a dependency in 90 (1.9%) and pdf-parse in 65 (1.3%): PDF.js is 1.4× as common. Among repos created in the last 90 days that use a files, images and media tool, PDF.js is in 9.8% and pdf-parse in 5.9%, against 8.5% and 6.1% of older ones. 15 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
| PDF.js | pdf-parse | |
|---|---|---|
| Agent projects that use it | 90 | 65 |
| Rank in files, images and media | #8 | #12 |
| In new repos with a files, images and media tool (last 90 days) | 9.8% | 5.9% |
| In older repos with one | 8.5% | 6.1% |
| Downloads, last 7 days | 58.1M | 13.3M |
| GitHub stars | 54.1K | 224 |
| Last push to its repo | Nov 16, 2026 | May 4, 2026 |
| License | Apache-2.0 | Apache-2.0 |
| Funding | — | — |
| Projects that list both | 15 | |
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 | PDF.js | pdf-parse |
|---|---|---|---|
| Claude Code | 2,617 | 2.6% | 1.6% |
| GitHub Copilot | 2,350 | 1.2% | 1.0% |
| Cursor | 1,990 | 1.5% | 1.6% |
| Gemini CLI | 422 | 4.5% | 1.2% |
| OpenAI Codex | 409 | 2.4% | 1.5% |
| OpenCode | 304 | 2.3% | 0% |
| OpenClaw | 241 | 8.7% | 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.
PDF.js
Mozilla's PDF rendering library for displaying and working with PDFs in browsers.
Most often used with it:
| Vitest | 64.4% of its projects |
|---|---|
| tsx | 52.2% of its projects |
| Zod | 66.7% of its projects |
| Sharp | 40.0% of its projects |
| TypeScript | 92.2% of its projects |
npm install pdfjs-dist
pdf-parse
Pure TypeScript module for extracting text, images and tables from PDFs cross-platform.
Most often used with it:
| mammoth | 50.8% of its projects |
|---|---|
| OpenAI | 43.1% of its projects |
| Zod | 66.2% of its projects |
| Lucide React | 58.5% of its projects |
| Next.js | 53.8% of its projects |
npm install pdf-parse
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.