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.
As of 2026-11-16 (commit 805cb9c331e6), cloudflare/workerd contains 700,583 total lines: 505,843 code, 122,754 comments, 71,986 blank, across 2,088 files in 19 languages (top language: C++ 37.1%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.
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.
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 | 248009 | 187771 | 27868 | 32370 |
| TypeScript | 405 | 190924 | 125529 | 56063 | 9332 |
| Rust | 473 | 104888 | 89616 | 5212 | 10060 |
| C Header | 306 | 90433 | 53759 | 22658 | 14016 |
| JSON | 27 | 16476 | 16476 | 0 | 0 |
| JavaScript | 170 | 20212 | 15190 | 3089 | 1933 |
| Bazel | 89 | 7519 | 6430 | 446 | 643 |
| YAML | 5 | 5597 | 5097 | 10 | 490 |
| Python | 33 | 5878 | 4548 | 287 | 1043 |
| Shell | 21 | 1196 | 828 | 163 | 205 |
| Just | 1 | 271 | 157 | 61 | 53 |
| TOML | 6 | 219 | 143 | 61 | 15 |
Top language: C++ 37.1%. Generated on .
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.
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.
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.
This OctoCounts report was generated from main at commit 805cb9c331e6 on November 16, 2026.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for cloudflare/workerd on this page — 505,843 code lines across 19 languages, counted by tokei.