mongodb/mongo

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.

Repository size insights

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.

LanguageFilesLinesCodeCommentsBlanks
C++787433859972568072338150479775
C++ Header983021834431623209293947266287
C Header698318686191162639481064224916
JavaScript828714007551053679198640148436
C87178620258335013499467858
Python8102132101655561587731777
Autoconf2414082613690626981222
Bazel12131131259953839739614
YAML1667847406999999894752
Bitbake16372473710414129
Shell377239781678435813613
JSON184165671656601
Visual Studio Project86042604200
GNU Style Assembly8210146491340991134
TOML554324784130518
Perl1248863758642486
RPM Specfile113175247824673
Makefile2337332456547730
HTML42649239726226
SWIG223381718301319
CMake4022621546442274
Batch191694149621177
Templ7156014430117
Assembly1825721442825305
BASH618051257321227
TypeScript3436409102263467
Protocol Buffers1422986201400278
ReStructuredText75974640133
Snakemake663345076107
CSS257744730100
Jupyter Notebooks35424034396
PowerShell75503769480
Dockerfile1765435821680
Forge Config154103381161
D23062612223
TCL73652615648
Java12681924630
Pan11721312318
Rust71871282930
Scheme1155121826
LD Script6858500
Visual Studio Solution2808000
Lua28669314
GDB Script26751124
Prolog26951018
Monkey C15841125
Module-Definition3403802
jq4443806
CUDA172362115
Swift1362772
SVG1262600
XML2171511
R13812188
INI66600
ReScript24400
Objective-C2142120
Objective-C++2142120
Markdown3279560408376211842
Plain Text4091036560996454011

Top language (C++ 33.9%). Generated at .

Reproduce this report

Reproduce this exact report and configuration.

Report FAQ

How many lines of code does mongodb/mongo have?

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.

How was the mongodb/mongo line count measured?

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.

What commit was counted for mongodb/mongo?

This OctoCounts report was generated from master at commit 37eae97fd90a on 2026-10-21T00:54:45.501628342Z.

Similar repository reports

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.