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.

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.

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.

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

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.501628342+00:00.

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 12 languages, counted by tokei.