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

PDF.js

Mozilla's PDF rendering library for displaying and working with PDFs in browsers.

Files, images and mediaNPM

GitHubWebsite

1. License

License from npm.

github.com/mozilla/pdf.js

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

What PDF.js does

Mozilla's PDF rendering library for displaying and working with PDFs in browsers.

PDF.js popularity

84 / 100
Gid Score, #44 overall
62.6M
downloads a week, npm
54.2K
GitHub stars
91
agent projects use it
PDF.js: downloads per weeknpm, pdfjs-dist 62,613,946
PDF.js: GitHub starsmozilla/pdf.js 54,180

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

How PDF.js is used

  • PDF.js is a dependency in 91 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (1.9% of the 4,867 JavaScript/TypeScript ones), #8 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 325; those are left out of every share on this page.
  • The most used alternative in our scan is pdf-parse (65 projects).
  • Projects that use it most often also use Vitest (62.6%), tsx (52.7%), Zod (68.1%).
  • It is more common in projects set up for OpenClaw (6.3%) than for GitHub Copilot (1.0%).

By coding agent

66 projects, 2.0%
31 projects, 1.0%
29 projects, 1.2%
21 projects, 6.3%
19 projects, 4.0%
9 projects, 1.9%
7 projects, 2.0%

Often used with

In 62.6% of its projects
In 52.7% of its projects
In 68.1% of its projects
In 92.3% of its projects
In 38.5% of its projects
In 54.9% of its projects
In 34.1% of its projects
In 45.1% of its projects

More about PDF.js

Head to head
More in Files, images and media

Alternatives

PDF.js This page

Apache-2.0Gid 8462.6M/wk

pdf-parse

Pure TypeScript module for extracting text, images and tables from PDFs cross-platform.

Apache-2.0Gid 6013.9M/wk

pdf-lib

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

MITGid 7434.8M/wk

Compare PDF.js with another tool

Get started

Install it.

npm install pdfjs-dist

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