# mozilla/pdf.js SLOC report

> As of 2026-10-20 (commit 33734f1fdf1b), mozilla/pdf.js contains 276,637 total lines: 226,221 code, 23,966 comments, 26,450 blank, across 641 files in 8 languages (top: JavaScript 65.6%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

mozilla/pdf.js has 226,221 source lines of code out of 276,637 total lines across 641 files, counted from the master ref at commit 33734f1fdf1b by the OctoCounts tokei engine on 2026-10-20. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.

OctoCounts produced this report by resolving mozilla/pdf.js to commit 33734f1fdf1b, downloading the repository source archive, and counting every source file with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options, so counting the same revision again reproduces exactly these numbers.

## Repository size insights

This is a large codebase by counted code lines. Code represents 81.8% of all lines, comments represent 8.7%, and the repository averages 353 code lines per file. JavaScript accounts for 65.6% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| JavaScript | 373 | 188,420 | 148,375 | 22,222 | 17,823 |
| FreeMarker | 113 | 58,968 | 52,190 | 0 | 6,778 |
| JSON | 8 | 14,333 | 14,333 | 0 | 0 |
| CSS | 31 | 11,741 | 9,290 | 961 | 1,490 |
| HTML | 18 | 1,916 | 1,562 | 248 | 106 |
| SVG | 82 | 483 | 468 | 13 | 2 |
| YAML | 1 | 3 | 3 | 0 | 0 |
| Markdown | 15 | 773 | 0 | 522 | 251 |

Top language (JavaScript 65.6%). Generated at 2026-10-20T10:03:56.732474984+00:00. Canonical report: https://octocounts.com/github/mozilla/pdf.js

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/mozilla/pdf.js/commit/33734f1fdf1b8987c656c0a5f67b4e2cc57e9d13?analysis=%7B%22ignoredDirs%22%3A%5B%5D%2C%22ignoredLanguages%22%3A%5B%5D%2C%22profile%22%3A%22default%22%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22includeGenerated%22%3Afalse%7D&reportId=327b5420a34607bfe5c18008f3d47641fa5a4e96b004bcf80a4a12ebc6ec6d45).

## Report FAQ

### How many lines of code does mozilla/pdf.js have?

mozilla/pdf.js has 276,637 total lines, including 226,221 code lines, 23,966 comment lines, and 26,450 blank lines.

### How was the mozilla/pdf.js line count measured?

OctoCounts resolved the public GitHub repository to commit 33734f1fdf1b, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

### What commit was counted for mozilla/pdf.js?

This OctoCounts report was generated from master at commit 33734f1fdf1b on 2026-10-20T10:03:56.732474984+00:00.

## Similar repository reports

- [robcbryant/tara](https://octocounts.com/github/robcbryant/tara) — JavaScript, 237,087 code lines
- [duolahypercho/codex-router](https://octocounts.com/github/duolahypercho/codex-router) — JavaScript, 215,524 code lines
- [SillyTavern/SillyTavern](https://octocounts.com/github/SillyTavern/SillyTavern) — JavaScript, 214,571 code lines
- [Mintplex-Labs/anything-llm](https://octocounts.com/github/Mintplex-Labs/anything-llm) — JavaScript, 238,744 code lines
- [lokus-ai/lokus](https://octocounts.com/github/lokus-ai/lokus) — JavaScript, 242,102 code lines
- [aiskendi/pencarimovie-server](https://octocounts.com/github/aiskendi/pencarimovie-server) — JavaScript, 242,936 code lines

## Related OctoCounts pages

- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [React vs Vue](https://octocounts.com/compare/react-vs-vue)
- [Next.js vs Vite](https://octocounts.com/compare/nextjs-vs-vite)
- [Vite vs webpack](https://octocounts.com/compare/vite-vs-webpack)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [OctoCounts API docs](https://octocounts.com/docs/api)
