# cloudflare/workerd SLOC report

> cloudflare/workerd: 505,843 code lines at commit 805cb9c331e6, counted with tokei-15.0.0 on 2026-11-16. Saved result 4e0ea008e3563bb6b595a572ed233fe112cceea4f04c376cd175ca90eceee36a.

cloudflare/workerd has 505,843 source lines of code out of 700,583 total lines across 2,088 files, counted with tokei from the main ref at commit 805cb9c331e6 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving cloudflare/workerd to commit 805cb9c331e6, downloading the repository source archive, and counting files selected by the effective rules 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; an exact reproduction needs the same commit, engine version, and effective counting rules.

## Counting rules and retention

cloudflare/workerd: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.

Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.

## Repository size insights

This is a large codebase by counted code lines. Code represents 72.2% of all lines, comments represent 17.5%, and the repository averages 242 code lines per file. C++ accounts for 37.1% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C++ | 437 | 248,009 | 187,771 | 27,868 | 32,370 |
| TypeScript | 405 | 190,924 | 125,529 | 56,063 | 9,332 |
| Rust | 473 | 104,888 | 89,616 | 5,212 | 10,060 |
| C Header | 306 | 90,433 | 53,759 | 22,658 | 14,016 |
| JSON | 27 | 16,476 | 16,476 | 0 | 0 |
| JavaScript | 170 | 20,212 | 15,190 | 3,089 | 1,933 |
| Bazel | 89 | 7,519 | 6,430 | 446 | 643 |
| YAML | 5 | 5,597 | 5,097 | 10 | 490 |
| Python | 33 | 5,878 | 4,548 | 287 | 1,043 |
| Shell | 21 | 1,196 | 828 | 163 | 205 |
| Just | 1 | 271 | 157 | 61 | 53 |
| TOML | 6 | 219 | 143 | 61 | 15 |
| Batch | 4 | 144 | 121 | 0 | 23 |
| WebAssembly | 12 | 172 | 94 | 44 | 34 |
| BASH | 1 | 52 | 45 | 2 | 5 |
| HTML | 2 | 57 | 36 | 15 | 6 |
| Lua | 1 | 3 | 3 | 0 | 0 |
| Markdown | 90 | 8,088 | 0 | 6,382 | 1,706 |
| Plain Text | 5 | 445 | 0 | 393 | 52 |

Top language: C++ 37.1%. Generated on November 16, 2026. Canonical report: https://octocounts.com/github/cloudflare/workerd/commit/805cb9c331e69fafaa932a23cc09801aed0133de?reportId=4e0ea008e3563bb6b595a572ed233fe112cceea4f04c376cd175ca90eceee36a&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/cloudflare/workerd/commit/805cb9c331e69fafaa932a23cc09801aed0133de?reportId=4e0ea008e3563bb6b595a572ed233fe112cceea4f04c376cd175ca90eceee36a&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

### How many lines of code does cloudflare/workerd have?

cloudflare/workerd has 505,843 lines of code, plus 122,754 comment lines and 71,986 blank lines, for 700,583 total lines at commit 805cb9c331e6 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the cloudflare/workerd line count measured?

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

### What commit was counted for cloudflare/workerd?

This OctoCounts report was generated from main at commit 805cb9c331e6 on November 16, 2026.

## Similar repository reports

- [RobotLocomotion/drake](https://octocounts.com/github/RobotLocomotion/drake) — C++, 504,901 code lines
- [HaxxorCialtion/SimpleText2Motion](https://octocounts.com/github/HaxxorCialtion/SimpleText2Motion) — C++, 503,246 code lines
- [PointCloudLibrary/pcl](https://octocounts.com/github/PointCloudLibrary/pcl) — C++, 516,006 code lines
- [Gerate-Technik/zkgram](https://octocounts.com/github/Gerate-Technik/zkgram) — C++, 495,342 code lines
- [chromium/openscreen](https://octocounts.com/github/chromium/openscreen) — C++, 532,820 code lines
- [harry7557558/spirula-studio](https://octocounts.com/github/harry7557558/spirula-studio) — C++, 534,712 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)
- [TensorFlow vs PyTorch](https://octocounts.com/compare/tensorflow-vs-pytorch)
- [Electron vs Tauri](https://octocounts.com/compare/electron-vs-tauri)
- [Godot vs Bevy](https://octocounts.com/compare/godot-vs-bevy)
- [How to count lines of code in a GitHub repository](https://octocounts.com/docs/count-lines-of-code-github)
- [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)
- [All OctoCounts guides](https://octocounts.com/docs)
