# The largest C++ repositories by lines of code

OctoCounts has measured 557 public GitHub repositories whose primary programming language is C++. mozilla-firefox/firefox is the largest, with 25,035,652 code lines across 141,622 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++ share |
| --- | --- | --- | --- | --- | --- |
| 1 | [mozilla-firefox/firefox](https://octocounts.com/github/mozilla-firefox/firefox) | 25,035,652 | 35,820,102 | 141,622 | 23.2% |
| 2 | [ravynsoft/ravynos](https://octocounts.com/github/ravynsoft/ravynos) | 12,835,604 | 18,979,050 | 49,515 | 36.7% |
| 3 | [llvm/llvm-project](https://octocounts.com/github/llvm/llvm-project) | 8,466,949 | 11,769,321 | 38,087 | 67.2% |
| 4 | [komimoe/Arkari](https://octocounts.com/github/komimoe/Arkari) | 8,064,811 | 11,202,597 | 35,404 | 67.1% |
| 5 | [mongodb/mongo](https://octocounts.com/github/mongodb/mongo) | 7,689,071 | 10,683,001 | 39,860 | 34.2% |
| 6 | [luobochuanqi/llvm-project](https://octocounts.com/github/luobochuanqi/llvm-project) | 7,466,206 | 10,398,022 | 32,427 | 67.6% |
| 7 | [google/filament](https://octocounts.com/github/google/filament) | 7,434,721 | 10,546,292 | 27,330 | 42.1% |
| 8 | [GaijinEntertainment/DagorEngine](https://octocounts.com/github/GaijinEntertainment/DagorEngine) | 6,701,537 | 8,863,578 | 26,590 | 35.8% |
| 9 | [oceanbase/oceanbase](https://octocounts.com/github/oceanbase/oceanbase) | 6,445,596 | 7,724,864 | 14,807 | 77.3% |
| 10 | [LibreOffice/core](https://octocounts.com/github/LibreOffice/core) | 6,371,610 | 8,807,290 | 78,711 | 68.4% |
| 11 | [dariulone/cyberpunk-vr-port](https://octocounts.com/github/dariulone/cyberpunk-vr-port) | 5,708,036 | 5,797,684 | 3,170 | 3.5% |
| 12 | [blender/blender](https://octocounts.com/github/blender/blender) | 5,348,133 | 8,350,225 | 11,943 | 41.4% |
| 13 | [tensorflow/tensorflow](https://octocounts.com/github/tensorflow/tensorflow) | 5,342,880 | 7,082,966 | 24,672 | 57.2% |
| 14 | [quackscarfmc-eng/ChimeraCraft](https://octocounts.com/github/quackscarfmc-eng/ChimeraCraft) | 5,234,408 | 8,149,645 | 11,932 | 41.9% |
| 15 | [OrcaSlicer/OrcaSlicer](https://octocounts.com/github/OrcaSlicer/OrcaSlicer) | 5,130,517 | 5,908,194 | 20,308 | 13.9% |
| 16 | [Kitware/VTK](https://octocounts.com/github/Kitware/VTK) | 4,794,497 | 6,936,648 | 19,905 | 42.1% |
| 17 | [bambulab/BambuStudio](https://octocounts.com/github/bambulab/BambuStudio) | 4,738,339 | 5,448,808 | 10,602 | 14.6% |
| 18 | [openjdk/jfx](https://octocounts.com/github/openjdk/jfx) | 4,304,092 | 6,585,043 | 23,176 | 38.8% |
| 19 | [godotengine/godot](https://octocounts.com/github/godotengine/godot) | 4,238,960 | 5,956,906 | 11,440 | 33.7% |
| 20 | [bluescarni/heyoka](https://octocounts.com/github/bluescarni/heyoka) | 4,215,445 | 4,303,775 | 772 | 97.7% |
| 21 | [MaaAssistantArknights/MaaAssistantArknights](https://octocounts.com/github/MaaAssistantArknights/MaaAssistantArknights) | 3,869,028 | 3,959,832 | 6,426 | 2.0% |
| 22 | [meta/hhvm](https://octocounts.com/github/meta/hhvm) | 3,741,526 | 5,475,112 | 15,695 | 45.5% |
| 23 | [momusdigital/fnv_decomp](https://octocounts.com/github/momusdigital/fnv_decomp) | 3,550,853 | 3,959,717 | 6,462 | 94.5% |
| 24 | [hwCloudDBSDDS/dds](https://octocounts.com/github/hwCloudDBSDDS/dds) | 3,403,777 | 4,891,504 | 16,357 | 32.1% |
| 25 | [FULU-Foundation/OrcaSlicer-bambulab](https://octocounts.com/github/FULU-Foundation/OrcaSlicer-bambulab) | 3,358,115 | 3,903,809 | 15,194 | 15.7% |
| 26 | [klzgrad/naiveproxy](https://octocounts.com/github/klzgrad/naiveproxy) | 3,335,470 | 4,601,005 | 21,145 | 33.6% |
| 27 | [RosettaCommons/rosetta](https://octocounts.com/github/RosettaCommons/rosetta) | 3,115,343 | 6,369,560 | 20,216 | 48.6% |
| 28 | [KDE/krita](https://octocounts.com/github/KDE/krita) | 3,102,224 | 8,039,907 | 8,243 | 15.4% |
| 29 | [haiku/haiku](https://octocounts.com/github/haiku/haiku) | 3,082,298 | 4,359,868 | 15,122 | 46.4% |
| 30 | [DeclanRiedel/krita-mini](https://octocounts.com/github/DeclanRiedel/krita-mini) | 3,081,725 | 7,989,623 | 8,144 | 15.5% |
| 31 | [ring-lang/ring](https://octocounts.com/github/ring-lang/ring) | 2,954,436 | 4,147,450 | 4,105 | 56.3% |
| 32 | [SunguckLee/Real-MongoDB](https://octocounts.com/github/SunguckLee/Real-MongoDB) | 2,880,417 | 4,185,486 | 14,443 | 33.8% |
| 33 | [o3de/o3de](https://octocounts.com/github/o3de/o3de) | 2,722,509 | 3,708,316 | 22,319 | 62.4% |
| 34 | [alibaba/MNN](https://octocounts.com/github/alibaba/MNN) | 2,703,748 | 3,193,791 | 7,190 | 64.0% |
| 35 | [ClickHouse/ClickHouse](https://octocounts.com/github/ClickHouse/ClickHouse) | 2,680,973 | 3,501,014 | 11,948 | 64.4% |
| 36 | [CleverRaven/Cataclysm-DDA](https://octocounts.com/github/CleverRaven/Cataclysm-DDA) | 2,677,355 | 2,895,424 | 8,487 | 18.2% |
| 37 | [microsoft/onnxruntime](https://octocounts.com/github/microsoft/onnxruntime) | 2,566,422 | 3,005,988 | 7,570 | 67.3% |
| 38 | [qt/qtbase](https://octocounts.com/github/qt/qtbase) | 2,462,090 | 3,624,630 | 8,292 | 39.9% |
| 39 | [swiftlang/swift](https://octocounts.com/github/swiftlang/swift) | 2,309,162 | 3,350,840 | 15,031 | 39.2% |
| 40 | [ryzom/ryzomcore](https://octocounts.com/github/ryzom/ryzomcore) | 2,198,855 | 3,291,184 | 10,501 | 63.6% |
| 41 | [OSGeo/gdal](https://octocounts.com/github/OSGeo/gdal) | 2,174,175 | 2,990,670 | 5,295 | 56.6% |
| 42 | [Open-Cascade-SAS/OCCT](https://octocounts.com/github/Open-Cascade-SAS/OCCT) | 2,087,180 | 3,036,512 | 14,297 | 75.3% |
| 43 | [Open-Tibia-Tools/remeres-map-editor-redux](https://octocounts.com/github/Open-Tibia-Tools/remeres-map-editor-redux) | 2,019,485 | 2,067,499 | 6,246 | 4.9% |
| 44 | [ceph/ceph](https://octocounts.com/github/ceph/ceph) | 2,013,763 | 2,488,238 | 9,885 | 41.5% |
| 45 | [brave/brave-core](https://octocounts.com/github/brave/brave-core) | 1,964,531 | 2,705,400 | 18,068 | 38.5% |
| 46 | [MariaDB/server](https://octocounts.com/github/MariaDB/server) | 1,962,098 | 2,919,884 | 5,708 | 46.6% |
| 47 | [ZimengXiong/PancakeSlicer](https://octocounts.com/github/ZimengXiong/PancakeSlicer) | 1,961,865 | 2,166,449 | 19,100 | 18.3% |
| 48 | [TwilitRealm/dusklight](https://octocounts.com/github/TwilitRealm/dusklight) | 1,944,296 | 2,316,063 | 19,237 | 46.6% |
| 49 | [v8/v8](https://octocounts.com/github/v8/v8) | 1,767,207 | 2,269,833 | 4,672 | 61.1% |
| 50 | [Snowy-Fluffy/freshGram](https://octocounts.com/github/Snowy-Fluffy/freshGram) | 1,754,946 | 2,290,426 | 5,285 | 72.4% |

Ranking rule: a repository belongs to C++ when C++ 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++ share" is the share of the repository's code lines written in C++. 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++ repository has the most lines of code?

mozilla-firefox/firefox is the largest C++ repository in OctoCounts' index, with 25,035,652 code lines out of 35,820,102 total lines across 141,622 files, counted on November 24, 2026. ravynsoft/ravynos follows with 12,835,604 code lines. Code size is not code quality: a larger count only means more source material.

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

C++ 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++ repositories has OctoCounts measured?

557 public GitHub repositories have C++ 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.

## Curated comparisons in C++

- [TensorFlow vs PyTorch: lines of code compared](https://octocounts.com/compare/tensorflow-vs-pytorch)
- [Electron vs Tauri: lines of code compared](https://octocounts.com/compare/electron-vs-tauri)
- [Godot vs Bevy: lines of code compared](https://octocounts.com/compare/godot-vs-bevy)

## 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/)
