# The largest C Header repositories by lines of code

OctoCounts has measured 139 public GitHub repositories whose primary programming language is C Header. nodejs/node is the largest, with 10,583,461 code lines across 21,968 files, counted with tokei on November 24, 2026. The table ranks the 50 largest by code lines; each row links to a report pinned to the commit it counted.

| Rank | Repository | Code lines | Total lines | Files | C Header share |
| --- | --- | --- | --- | --- | --- |
| 1 | [nodejs/node](https://octocounts.com/github/nodejs/node) | 10,583,461 | 13,449,808 | 21,968 | 23.5% |
| 2 | [FreeRTOS/FreeRTOS](https://octocounts.com/github/FreeRTOS/FreeRTOS) | 3,904,160 | 6,782,828 | 11,133 | 61.2% |
| 3 | [ziglang/zig](https://octocounts.com/github/ziglang/zig) | 3,895,862 | 5,035,229 | 18,267 | 63.1% |
| 4 | [espressif/esp-idf](https://octocounts.com/github/espressif/esp-idf) | 2,946,214 | 5,225,715 | 16,453 | 51.0% |
| 5 | [nanomatters/proton-salkim](https://octocounts.com/github/nanomatters/proton-salkim) | 1,433,892 | 2,034,647 | 3,539 | 56.8% |
| 6 | [TGX-Android/tdlib](https://octocounts.com/github/TGX-Android/tdlib) | 1,285,355 | 2,074,157 | 8,400 | 78.7% |
| 7 | [turanszkij/WickedEngine](https://octocounts.com/github/turanszkij/WickedEngine) | 1,168,314 | 1,449,411 | 1,789 | 54.7% |
| 8 | [grpc/grpc](https://octocounts.com/github/grpc/grpc) | 911,430 | 1,176,899 | 7,751 | 33.2% |
| 9 | [johnlrt/bruce2](https://octocounts.com/github/johnlrt/bruce2) | 821,097 | 942,761 | 1,684 | 73.6% |
| 10 | [TeamHypersomnia/Hypersomnia](https://octocounts.com/github/TeamHypersomnia/Hypersomnia) | 712,473 | 970,592 | 3,939 | 26.1% |
| 11 | [balloonwj/TeamTalk](https://octocounts.com/github/balloonwj/TeamTalk) | 700,414 | 977,371 | 3,409 | 23.5% |
| 12 | [LiteLDev/LeviLamina](https://octocounts.com/github/LiteLDev/LeviLamina) | 619,777 | 1,065,539 | 26,658 | 95.3% |
| 13 | [kuzudb/kuzu](https://octocounts.com/github/kuzudb/kuzu) | 596,750 | 750,597 | 3,190 | 38.0% |
| 14 | [olikraus/u8g2](https://octocounts.com/github/olikraus/u8g2) | 589,308 | 804,164 | 1,219 | 54.0% |
| 15 | [LiangliangNan/Easy3D](https://octocounts.com/github/LiangliangNan/Easy3D) | 566,645 | 837,525 | 1,852 | 40.4% |
| 16 | [xenia-project/xenia](https://octocounts.com/github/xenia-project/xenia) | 544,336 | 622,722 | 1,293 | 66.5% |
| 17 | [eclipse-openbsw/openbsw](https://octocounts.com/github/eclipse-openbsw/openbsw) | 525,677 | 845,129 | 3,929 | 51.2% |
| 18 | [cilium/tetragon](https://octocounts.com/github/cilium/tetragon) | 519,342 | 607,711 | 1,208 | 57.9% |
| 19 | [cocos2d/cocos2d-x-samples](https://octocounts.com/github/cocos2d/cocos2d-x-samples) | 519,022 | 907,001 | 3,464 | 38.2% |
| 20 | [raysan5/raylib](https://octocounts.com/github/raysan5/raylib) | 510,809 | 659,414 | 903 | 47.0% |
| 21 | [houmo-ai/postmo-modelzoo](https://octocounts.com/github/houmo-ai/postmo-modelzoo) | 479,889 | 654,416 | 1,432 | 45.1% |
| 22 | [effekseer/Effekseer](https://octocounts.com/github/effekseer/Effekseer) | 479,516 | 593,854 | 1,848 | 42.6% |
| 23 | [cesanta/mongoose](https://octocounts.com/github/cesanta/mongoose) | 452,595 | 794,251 | 1,268 | 57.9% |
| 24 | [azahar-emu/azahar](https://octocounts.com/github/azahar-emu/azahar) | 411,412 | 504,648 | 1,665 | 45.5% |
| 25 | [emexlab/Nyxian](https://octocounts.com/github/emexlab/Nyxian) | 411,226 | 568,177 | 2,098 | 78.5% |
| 26 | [davisking/dlib](https://octocounts.com/github/davisking/dlib) | 393,637 | 617,212 | 1,706 | 64.3% |
| 27 | [Stukdee/ourfly](https://octocounts.com/github/Stukdee/ourfly) | 372,225 | 486,206 | 669 | 55.4% |
| 28 | [genodelabs/genode](https://octocounts.com/github/genodelabs/genode) | 370,336 | 605,650 | 4,822 | 43.9% |
| 29 | [simdjson/simdjson](https://octocounts.com/github/simdjson/simdjson) | 368,638 | 494,715 | 549 | 61.4% |
| 30 | [Alan-CRL/Inkeys](https://octocounts.com/github/Alan-CRL/Inkeys) | 326,840 | 458,450 | 868 | 60.7% |
| 31 | [maria-korosteleva/NvidiaWarp-GarmentCode](https://octocounts.com/github/maria-korosteleva/NvidiaWarp-GarmentCode) | 315,308 | 497,964 | 1,175 | 62.7% |
| 32 | [meemknight/PikaEngine](https://octocounts.com/github/meemknight/PikaEngine) | 299,577 | 429,153 | 928 | 38.4% |
| 33 | [fiftysevendegreesofrad/sdna_plus](https://octocounts.com/github/fiftysevendegreesofrad/sdna_plus) | 291,727 | 402,175 | 1,844 | 55.0% |
| 34 | [screamer-labs/screamer](https://octocounts.com/github/screamer-labs/screamer) | 290,211 | 318,016 | 736 | 12.1% |
| 35 | [ChancenJ/TripleKey](https://octocounts.com/github/ChancenJ/TripleKey) | 284,919 | 324,054 | 524 | 75.3% |
| 36 | [Jgamrot/yharnam-pc](https://octocounts.com/github/Jgamrot/yharnam-pc) | 284,804 | 335,659 | 852 | 26.4% |
| 37 | [TimeATronics/Zetla](https://octocounts.com/github/TimeATronics/Zetla) | 283,766 | 422,446 | 944 | 72.1% |
| 38 | [meemknight/cmakeSetup](https://octocounts.com/github/meemknight/cmakeSetup) | 283,501 | 389,609 | 709 | 51.5% |
| 39 | [InteractiveComputerGraphics/PositionBasedDynamics](https://octocounts.com/github/InteractiveComputerGraphics/PositionBasedDynamics) | 279,070 | 387,197 | 714 | 63.6% |
| 40 | [meta/folly](https://octocounts.com/github/meta/folly) | 273,213 | 444,294 | 1,840 | 55.8% |
| 41 | [SFML/SFML](https://octocounts.com/github/SFML/SFML) | 271,827 | 367,711 | 593 | 79.2% |
| 42 | [murangogo/MoeTranslate](https://octocounts.com/github/murangogo/MoeTranslate) | 247,523 | 319,680 | 591 | 66.0% |
| 43 | [juanagogo/bazuko](https://octocounts.com/github/juanagogo/bazuko) | 227,320 | 283,509 | 535 | 42.9% |
| 44 | [LeNerd46/SpotifyPlus](https://octocounts.com/github/LeNerd46/SpotifyPlus) | 214,218 | 295,956 | 1,005 | 67.3% |
| 45 | [parallel101/course](https://octocounts.com/github/parallel101/course) | 196,299 | 279,904 | 3,084 | 34.1% |
| 46 | [vearch/vearch](https://octocounts.com/github/vearch/vearch) | 190,955 | 246,821 | 868 | 29.7% |
| 47 | [LiiVon/perf_monitor](https://octocounts.com/github/LiiVon/perf_monitor) | 190,221 | 223,460 | 67 | 87.1% |
| 48 | [blender/cycles](https://octocounts.com/github/blender/cycles) | 174,222 | 233,330 | 877 | 51.0% |
| 49 | [PufferAI/PufferLib](https://octocounts.com/github/PufferAI/PufferLib) | 173,912 | 200,187 | 426 | 68.5% |
| 50 | [tiny-dnn/tiny-dnn](https://octocounts.com/github/tiny-dnn/tiny-dnn) | 152,259 | 199,684 | 432 | 66.4% |

Ranking rule: a repository belongs to C Header when C Header is its largest programming language by code lines; data and prose formats such as JSON, YAML, TOML and Markdown do not count as a language for this rule. "C Header share" is the share of the repository's code lines written in C Header. Code lines exclude comments and blank lines. Every report uses OctoCounts' canonical public options, with tests, docs and generated directories excluded, and reports were generated on different dates.

## FAQ

### Which C Header repository has the most lines of code?

nodejs/node is the largest C Header repository in OctoCounts' index, with 10,583,461 code lines out of 13,449,808 total lines across 21,968 files, counted on November 24, 2026. FreeRTOS/FreeRTOS follows with 3,904,160 code lines. Code size is not code quality: a larger count only means more source material.

### How does a repository join the C Header leaderboard?

C Header must be its primary programming language: the language with the most code lines in the repository's OctoCounts report, ignoring data and prose formats such as JSON, YAML, TOML and Markdown. The repository then needs a public report with at least 5 files, and it is listed when it is among the 50 largest by code lines.

### How many C Header repositories has OctoCounts measured?

139 public GitHub repositories have C Header as their primary programming language in OctoCounts' index. This page lists the 50 largest by code lines; a repository analyzed with custom counting options keeps those counts as a separate saved result.

### Does more source lines of code mean more complexity?

Not necessarily. SLOC measures size, not complexity, quality, or maintainability. A larger codebase can mean more features, more generated or vendored code, more verbose language idioms, or more tests — none of which imply the code is harder to work with. Use line counts to gauge the scale of what you would be reading or maintaining, not as a quality signal.

## Related OctoCounts pages

- [The largest codebases by programming language](https://octocounts.com/languages)
- [How OctoCounts counts lines of code](https://octocounts.com/docs/methodology)
- [Hall of Monoliths: largest repositories by lines of code](https://octocounts.com/hall-of-monoliths)
- [How many lines of code? The largest codebases, counted](https://octocounts.com/docs/largest-codebases)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [OctoCounts: count lines of code in any public GitHub repository](https://octocounts.com/)
