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.
mongodb/mongo: 7,575,175 code lines at commit 37eae97fd90a, counted with tokei-14.0.0 on 2026-10-21. Saved result e4a72c66f766bc2151ebaca8f66bdcd8a270ec6c7cd43014b2f56521ebe414d4.
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 |
| Visual Studio Project | 8 | 6042 | 6042 | 0 | 0 |
| GNU Style Assembly | 82 | 10146 | 4913 | 4099 | 1134 |
| TOML | 5 | 5432 | 4784 | 130 | 518 |
| Perl | 12 | 4886 | 3758 | 642 | 486 |
| RPM Specfile | 11 | 3175 | 2478 | 24 | 673 |
| Makefile | 23 | 3733 | 2456 | 547 | 730 |
| HTML | 4 | 2649 | 2397 | 26 | 226 |
| SWIG | 2 | 2338 | 1718 | 301 | 319 |
| CMake | 40 | 2262 | 1546 | 442 | 274 |
| Batch | 19 | 1694 | 1496 | 21 | 177 |
| Templ | 7 | 1560 | 1443 | 0 | 117 |
| Assembly | 18 | 2572 | 1442 | 825 | 305 |
| BASH | 6 | 1805 | 1257 | 321 | 227 |
| TypeScript | 34 | 3640 | 910 | 2263 | 467 |
| Protocol Buffers | 14 | 2298 | 620 | 1400 | 278 |
| ReStructuredText | 7 | 597 | 464 | 0 | 133 |
| Snakemake | 6 | 633 | 450 | 76 | 107 |
| CSS | 2 | 577 | 447 | 30 | 100 |
| Jupyter Notebooks | 3 | 542 | 403 | 43 | 96 |
| PowerShell | 7 | 550 | 376 | 94 | 80 |
| Dockerfile | 17 | 654 | 358 | 216 | 80 |
| Forge Config | 15 | 410 | 338 | 11 | 61 |
| D | 2 | 306 | 261 | 22 | 23 |
| TCL | 7 | 365 | 261 | 56 | 48 |
| Java | 1 | 268 | 192 | 46 | 30 |
| Pan | 1 | 172 | 131 | 23 | 18 |
| Rust | 7 | 187 | 128 | 29 | 30 |
| Scheme | 1 | 155 | 121 | 8 | 26 |
| LD Script | 6 | 85 | 85 | 0 | 0 |
| Visual Studio Solution | 2 | 80 | 80 | 0 | 0 |
| Lua | 2 | 86 | 69 | 3 | 14 |
| GDB Script | 2 | 67 | 51 | 12 | 4 |
| Prolog | 2 | 69 | 51 | 0 | 18 |
| Monkey C | 1 | 58 | 41 | 12 | 5 |
| Module-Definition | 3 | 40 | 38 | 0 | 2 |
| jq | 4 | 44 | 38 | 0 | 6 |
| CUDA | 1 | 72 | 36 | 21 | 15 |
| Swift | 1 | 36 | 27 | 7 | 2 |
| SVG | 1 | 26 | 26 | 0 | 0 |
| XML | 2 | 17 | 15 | 1 | 1 |
| R | 1 | 38 | 12 | 18 | 8 |
| INI | 6 | 6 | 6 | 0 | 0 |
| ReScript | 2 | 4 | 4 | 0 | 0 |
| Objective-C | 2 | 14 | 2 | 12 | 0 |
| Objective-C++ | 2 | 14 | 2 | 12 | 0 |
| Markdown | 327 | 95604 | 0 | 83762 | 11842 |
| Plain Text | 409 | 103656 | 0 | 99645 | 4011 |
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.501628342Z.
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 59 languages, counted by tokei.