mongodb/mongo SLOC report

As of 2026-09-07 (commit 46014702c278), mongodb/mongo contains 10,421,016 total lines: 7,510,293 code, 1,659,930 comments, 1,250,793 blank, across 38,945 files in 59 languages (top: C++ 33.9%). Counted with tokei via OctoCounts.

As of 2026-09-07 (commit 46014702c278), mongodb/mongo contains 10,421,016 total lines: 7,510,293 code, 1,659,930 comments, 1,250,793 blank, across 38,945 files in 59 languages (top: C++ 33.9%). Counted with tokei via OctoCounts.

OctoCounts produced this report by resolving mongodb/mongo to commit 46014702c278, 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.1% of all lines, comments represent 15.9%, and the repository averages 193 code lines per file. C++ accounts for 33.9% of counted code.

LanguageFilesLinesCodeCommentsBlanks
C++781333543942545083333859475452
C++ Header983021834431623209293947266287
C Header694618602881158340478325223623
JavaScript815913731191033391193762145966
C87878957258570613558968277
Python7551981181528631521430041
Autoconf2414087013699126501229
Bazel11991090349606936369329
YAML1638827056807499044727
Bitbake16372473710414129
JSON184166181661701
Shell367222961552133353440

Top language (C++ 33.9%). Generated at 2026-09-07T08:26:49.651714208+00:00.

Report FAQ

How many lines of code does mongodb/mongo have?

mongodb/mongo has 10,421,016 total lines, including 7,510,293 code lines, 1,659,930 comment lines, and 1,250,793 blank lines.

How was the mongodb/mongo line count measured?

OctoCounts resolved the public GitHub repository to commit 46014702c278, 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 46014702c278 on 2026-09-07T08:26:49.651714208+00:00.

Similar repository reports

Other public repositories with an OctoCounts report, ranked by top language and code size similarity: