google/leveldb has 21,689 source lines of code out of 29,821 total lines across 139 files, counted with tokei from the main ref at commit 29465588d3df on November 12, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
As of 2026-11-12 (commit 29465588d3df), google/leveldb contains 29,821 total lines: 21,689 code, 3,847 comments, 4,285 blank, across 139 files in 6 languages (top language: C++ 83.1%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving google/leveldb to commit 29465588d3df, 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.
This is a medium-sized codebase by counted code lines. Code represents 72.7% of all lines, comments represent 12.9%, and the repository averages 156 code lines per file. C++ accounts for 83.1% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C++ | 76 | 22886 | 18024 | 1895 | 2967 |
| C Header | 56 | 5701 | 2904 | 1667 | 1130 |
| CMake | 1 | 519 | 420 | 45 | 54 |
| C | 1 | 384 | 329 | 11 | 44 |
| Autoconf | 2 | 47 | 12 | 24 | 11 |
| Markdown | 3 | 284 | 0 | 205 | 79 |
Top language: C++ 83.1%. Generated on .
google/leveldb: 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.
google/leveldb has 21,689 lines of code, plus 3,847 comment lines and 4,285 blank lines, for 29,821 total lines at commit 29465588d3df on November 12, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
OctoCounts resolved the public GitHub repository to commit 29465588d3df, 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 main at commit 29465588d3df on November 12, 2026.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for google/leveldb on this page — 21,689 code lines across 6 languages, counted by tokei.