# nodejs/node SLOC report

> nodejs/node: 10,499,039 code lines at commit 502c117e8ef0, counted with tokei-14.0.0 on 2026-10-29. Saved result b82032616a64344f0d170088dc522dd9a39ee3817e92c3f2006f5a48571a169c.

nodejs/node has 10,499,039 source lines of code out of 13,338,800 total lines across 21,532 files, counted with tokei from the main ref at commit 502c117e8ef0 on October 29, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving nodejs/node to commit 502c117e8ef0, 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

nodejs/node: tokei-14.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 very large codebase by counted code lines. Code represents 78.7% of all lines, comments represent 11.1%, and the repository averages 488 code lines per file. C Header accounts for 23.6% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C Header | 9,534 | 3,579,563 | 2,476,264 | 719,465 | 383,834 |
| GNU Style Assembly | 877 | 2,284,468 | 1,963,568 | 14,521 | 306,379 |
| Perl | 393 | 1,915,440 | 1,853,112 | 28,726 | 33,602 |
| C++ | 3,164 | 2,308,666 | 1,775,195 | 276,988 | 256,483 |
| C | 2,814 | 1,485,223 | 1,072,960 | 249,228 | 163,035 |
| Assembly | 138 | 605,739 | 512,375 | 1,864 | 91,500 |
| JavaScript | 1,700 | 361,967 | 275,607 | 46,201 | 40,159 |
| C++ Header | 620 | 188,255 | 149,026 | 22,068 | 17,161 |
| Python | 449 | 151,037 | 117,211 | 13,053 | 20,773 |
| Module-Definition | 44 | 52,578 | 51,863 | 7 | 708 |
| JSON | 127 | 33,301 | 33,296 | 0 | 5 |
| Shell | 143 | 45,092 | 32,118 | 7,696 | 5,278 |
| Bitbake | 173 | 34,593 | 29,176 | 3,166 | 2,251 |
| CMake | 164 | 33,479 | 29,130 | 1,485 | 2,864 |
| M4 | 49 | 39,366 | 27,650 | 7,997 | 3,719 |
| Autoconf | 207 | 35,532 | 25,722 | 5,869 | 3,941 |
| Bazel | 45 | 20,192 | 18,195 | 887 | 1,110 |
| TypeScript | 156 | 20,354 | 17,082 | 1,261 | 2,011 |
| YAML | 112 | 13,246 | 13,182 | 54 | 10 |
| Rust | 25 | 9,390 | 8,494 | 245 | 651 |
| Templ | 18 | 5,150 | 4,201 | 834 | 115 |
| Makefile | 12 | 3,292 | 2,457 | 349 | 486 |
| HTML | 34 | 1,828 | 1,599 | 119 | 110 |
| CSS | 7 | 1,928 | 1,585 | 6 | 337 |
| Batch | 32 | 1,599 | 1,365 | 57 | 177 |
| Automake | 13 | 1,248 | 931 | 168 | 149 |
| FORTRAN Modern | 2 | 995 | 769 | 140 | 86 |
| Nix | 12 | 958 | 713 | 184 | 61 |
| Prolog | 1 | 625 | 625 | 0 | 0 |
| TOML | 15 | 688 | 546 | 51 | 91 |
| LD Script | 87 | 419 | 413 | 5 | 1 |
| PowerShell | 16 | 492 | 386 | 72 | 34 |
| ReStructuredText | 5 | 425 | 300 | 0 | 125 |
| R | 5 | 379 | 272 | 52 | 55 |
| Emacs Lisp | 2 | 338 | 258 | 38 | 42 |
| Scheme | 1 | 286 | 222 | 51 | 13 |
| Visual Studio Project | 1 | 189 | 189 | 0 | 0 |
| Vim Script | 3 | 203 | 183 | 13 | 7 |
| BASH | 6 | 249 | 162 | 41 | 46 |
| ASN.1 | 11 | 389 | 158 | 150 | 81 |
| SVG | 3 | 154 | 152 | 1 | 1 |
| WebAssembly | 13 | 124 | 109 | 0 | 15 |
| Objective-C++ | 2 | 57 | 48 | 0 | 9 |
| Visual Studio Solution | 1 | 43 | 43 | 0 | 0 |
| Dockerfile | 2 | 49 | 36 | 2 | 11 |
| Meson | 1 | 37 | 26 | 2 | 9 |
| Fish | 1 | 40 | 21 | 14 | 5 |
| MSBuild | 2 | 23 | 20 | 3 | 0 |
| Ruby | 1 | 30 | 17 | 8 | 5 |
| NuGet Config | 1 | 6 | 6 | 0 | 0 |
| Forge Config | 1 | 1 | 1 | 0 | 0 |
| Markdown | 210 | 63,079 | 0 | 45,549 | 17,530 |
| Plain Text | 77 | 35,996 | 0 | 35,128 | 868 |

Top language: C Header 23.6%. Generated on October 29, 2026. Canonical report: https://octocounts.com/github/nodejs/node/commit/502c117e8ef08410d7ed6a4ac87d109be56b69f6?reportId=b82032616a64344f0d170088dc522dd9a39ee3817e92c3f2006f5a48571a169c&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/nodejs/node/commit/502c117e8ef08410d7ed6a4ac87d109be56b69f6?reportId=b82032616a64344f0d170088dc522dd9a39ee3817e92c3f2006f5a48571a169c&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 nodejs/node have?

nodejs/node has 10,499,039 lines of code, plus 1,483,818 comment lines and 1,355,943 blank lines, for 13,338,800 total lines at commit 502c117e8ef0 on October 29, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the nodejs/node line count measured?

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

### What commit was counted for nodejs/node?

This OctoCounts report was generated from main at commit 502c117e8ef0 on October 29, 2026.

## Similar repository reports

- [ziglang/zig](https://octocounts.com/github/ziglang/zig) — C Header, 3,895,862 code lines
- [espressif/esp-idf](https://octocounts.com/github/espressif/esp-idf) — C Header, 2,931,866 code lines
- [TGX-Android/tdlib](https://octocounts.com/github/TGX-Android/tdlib) — C Header, 1,283,438 code lines
- [kuzudb/kuzu](https://octocounts.com/github/kuzudb/kuzu) — C Header, 596,750 code lines
- [olikraus/u8g2](https://octocounts.com/github/olikraus/u8g2) — C Header, 589,307 code lines
- [eclipse-openbsw/openbsw](https://octocounts.com/github/eclipse-openbsw/openbsw) — C Header, 522,490 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)
- [Deno vs Node.js](https://octocounts.com/compare/deno-vs-node)
- [Bun vs Node.js](https://octocounts.com/compare/bun-vs-node)
- [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)
