# nodejs/node SLOC report

> As of 2026-11-21 (commit 2b365b28928d), nodejs/node contains 13,435,529 total lines: 10,571,712 code, 1,501,093 comments, 1,362,724 blank, across 21,962 files in 54 languages (top language: C Header 23.5%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.

nodejs/node has 10,571,712 source lines of code out of 13,435,529 total lines across 21,962 files, counted with tokei from the main ref at commit 2b365b28928d on November 21, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving nodejs/node to commit 2b365b28928d, 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-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 very large codebase by counted code lines. Code represents 78.7% of all lines, comments represent 11.2%, and the repository averages 481 code lines per file. C Header accounts for 23.5% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C Header | 9,776 | 3,592,225 | 2,483,544 | 724,614 | 384,067 |
| GNU Style Assembly | 877 | 2,284,661 | 1,963,734 | 14,527 | 306,400 |
| Perl | 393 | 1,915,464 | 1,853,133 | 28,727 | 33,604 |
| C++ | 3,267 | 2,372,671 | 1,827,508 | 284,522 | 260,641 |
| C | 2,829 | 1,487,479 | 1,074,367 | 249,818 | 163,294 |
| Assembly | 138 | 605,739 | 512,375 | 1,864 | 91,500 |
| JavaScript | 1,709 | 364,469 | 277,882 | 46,247 | 40,340 |
| C++ Header | 620 | 188,255 | 149,026 | 22,068 | 17,161 |
| Python | 466 | 157,599 | 122,778 | 13,312 | 21,509 |
| Module-Definition | 44 | 52,583 | 51,868 | 7 | 708 |
| JSON | 136 | 33,335 | 33,330 | 0 | 5 |
| Shell | 146 | 45,455 | 32,346 | 7,792 | 5,317 |

Top language: C Header 23.5%. Generated on November 21, 2026. Canonical report: https://octocounts.com/github/nodejs/node

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/nodejs/node/commit/2b365b28928d9ab36f1e9b41f81beaca83fa772a?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=53e9f7af70c857c6a769395663ded803c36edd570515486f4131a8c54c33dd67).

## Report FAQ

### How many lines of code does nodejs/node have?

nodejs/node has 10,571,712 lines of code, plus 1,501,093 comment lines and 1,362,724 blank lines, for 13,435,529 total lines at commit 2b365b28928d on November 21, 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 2b365b28928d, 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 2b365b28928d on November 21, 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,946,214 code lines
- [nanomatters/proton-salkim](https://octocounts.com/github/nanomatters/proton-salkim) — C Header, 1,434,005 code lines
- [TGX-Android/tdlib](https://octocounts.com/github/TGX-Android/tdlib) — C Header, 1,284,225 code lines
- [turanszkij/WickedEngine](https://octocounts.com/github/turanszkij/WickedEngine) — C Header, 1,168,314 code lines
- [grpc/grpc](https://octocounts.com/github/grpc/grpc) — C Header, 911,271 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)
