mozilla/pdf.js
This system is a comprehensive PDF rendering and manipulation library that provides both a web-based viewer and headless Node.js utilities for parsing, rendering, and editing PDF documents. It supports a wide range of media and formats, including JPEG, JPEG 2000, JBig2, and PostScript, while offering advanced features like form scripting, annotation editing, and metadata extraction. The codebase has been modernized with ES modules, WebAssembly integration, and extensive test coverage to ensure reliability across diverse PDF content.
42.5
Weak · 2 August 2026
326k
lines of production code
JavaScript
primary language
3
bus factor · 522 authors in all
2
measurements over time
How it got here
2011–2014 · ES6 modernization and test expansion
This period focused on modernizing the codebase by converting the default viewer and core engine to ES6 classes and modules, while simultaneously expanding test coverage across PDF parsing, rendering, and font handling. The work also included restructuring build outputs, updating dependencies, and adding new examples for component-based usage.
21 changes
2015–2023 · PDF.js feature expansion and build modernization
This period was defined by a significant expansion of PDF.js capabilities, most notably the introduction of a comprehensive in-browser PDF annotation editor and a sandboxed scripting API for interactive forms. Concurrently, the project modernized its build infrastructure by replacing the legacy preprocessor with a Babel-based pipeline and added extensive integration and type tests to support these new features.
16 changes
2024–2026 · PDF editing and rendering infrastructure
This period focused on expanding the PDF.js editor with capabilities for merging, reorganizing, and editing PDFs, alongside significant enhancements to the rendering engine. Key additions include support for freehand drawing, signatures, and PostScript execution via WebAssembly, as well as improved color management and image decoding libraries. The work also introduced new debugging tools and testing infrastructure to support these complex features.
17 changes
Survey your own repository
mozilla/pdf.js was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point the surveyor at a repository you know and see whether you agree with it.
About this page
- The description of this project is derived from its own commit history, not from its README.
- The score is its highest published measurement, taken on 2 August 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit 7fc7072f9c — the exact code this score is about.
- Scored under rubric rubric-2026.08.18. Score the same commit under that rubric and you get the same number.