mongodb/mongo

mongodb/mongo has 7,655,692 source lines of code out of 10,631,169 total lines across 39,706 files, counted with tokei from the master ref at commit 872f36026cf9 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

As of 2026-11-16 (commit 872f36026cf9), mongodb/mongo contains 10,631,169 total lines: 7,655,692 code, 1,702,304 comments, 1,273,173 blank, across 39,706 files in 59 languages (top language: C++ 34.1%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.

As of 2026-11-16 (commit 872f36026cf9), mongodb/mongo contains 10,631,169 total lines: 7,655,692 code, 1,702,304 comments, 1,273,173 blank, across 39,706 files in 59 languages (top language: C++ 34.1%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.

OctoCounts produced this report by resolving mongodb/mongo to commit 872f36026cf9, downloading the repository source archive, and counting files selected by the effective rules 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; an exact reproduction needs the same commit, engine version, and effective counting rules.

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 34.1% of counted code.

LanguageFilesLinesCodeCommentsBlanks
C++798134393652610987342402485976
C++ Header983121834191623187293946266286
C Header704518790451168183484357226505
JavaScript839014192551067494201543150218
C87178994458638113546768096
Python8442247821757831617832821
Autoconf2414099913704127371221
Bazel1243117536103276425710003
YAML16628508370139101214823
Bitbake16372473710414129
Shell392249791758337193677
JSON185166051660401

Top language: C++ 34.1%. Generated on .

Counting rules and retention

mongodb/mongo: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.

Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.

Reproduce this report

Reproduce this exact report and configuration.

Report FAQ

How many lines of code does mongodb/mongo have?

mongodb/mongo has 7,655,692 lines of code, plus 1,702,304 comment lines and 1,273,173 blank lines, for 10,631,169 total lines at commit 872f36026cf9 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

How was the mongodb/mongo line count measured?

OctoCounts resolved the public GitHub repository to commit 872f36026cf9, 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 872f36026cf9 on November 16, 2026.

Play the growth animation for mongodb/mongo on this page — 7,655,692 code lines across 59 languages, counted by tokei.