mongodb/mongo has 7,575,175 source lines of code out of 10,514,373 total lines across 39,273 files, counted from the master ref at commit 37eae97fd90a by the OctoCounts tokei engine on 2026-10-21. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.
As of 2026-10-21 (commit 37eae97fd90a), mongodb/mongo contains 10,514,373 total lines: 7,575,175 code, 1,678,127 comments, 1,261,071 blank, across 39,273 files in 59 languages (top: C++ 33.9%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving mongodb/mongo to commit 37eae97fd90a, downloading the repository source archive, and counting every source file 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, so counting the same revision again reproduces exactly these numbers.
This is a very large codebase by counted code lines. Code represents 72.0% of all lines, comments represent 16.0%, and the repository averages 193 code lines per file. C++ accounts for 33.9% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C++ | 7874 | 3385997 | 2568072 | 338150 | 479775 |
| C++ Header | 9830 | 2183443 | 1623209 | 293947 | 266287 |
| C Header | 6983 | 1868619 | 1162639 | 481064 | 224916 |
| JavaScript | 8287 | 1400755 | 1053679 | 198640 | 148436 |
| C | 871 | 786202 | 583350 | 134994 | 67858 |
| Python | 810 | 213210 | 165556 | 15877 | 31777 |
| Autoconf | 24 | 140826 | 136906 | 2698 | 1222 |
| Bazel | 1213 | 113125 | 99538 | 3973 | 9614 |
| YAML | 1667 | 84740 | 69999 | 9989 | 4752 |
| Bitbake | 16 | 37247 | 37104 | 14 | 129 |
| Shell | 377 | 23978 | 16784 | 3581 | 3613 |
| JSON | 184 | 16567 | 16566 | 0 | 1 |
Top language (C++ 33.9%). Generated at .
mongodb/mongo has 10,514,373 total lines, including 7,575,175 code lines, 1,678,127 comment lines, and 1,261,071 blank lines.
OctoCounts resolved the public GitHub repository to commit 37eae97fd90a, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
This OctoCounts report was generated from master at commit 37eae97fd90a on 2026-10-21T00:54:45.501628342+00:00.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for mongodb/mongo on this page — 7,575,175 code lines across 12 languages, counted by tokei.