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