As of 2026-08-26 (commit 8812064a015d), cockroachdb/cockroach contains 4,182,809 total lines: 3,085,053 code, 698,670 comments, 399,086 blank, across 12,785 files in 40 languages (top: Go 84.1%). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving cockroachdb/cockroach to commit 8812064a015d, 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.
This is a very large codebase by counted code lines. Code represents 73.8% of all lines, comments represent 16.7%, and the repository averages 241 code lines per file. Go accounts for 84.1% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| Go | 8907 | 3471666 | 2593330 | 544487 | 333849 |
| JSON | 201 | 123345 | 123334 | 0 | 11 |
| YAML | 108 | 108855 | 102615 | 3114 | 3126 |
| Bazel | 1351 | 81836 | 78238 | 642 | 2956 |
| TSX | 518 | 73278 | 62751 | 4230 | 6297 |
| TypeScript | 436 | 39302 | 30737 | 4507 | 4058 |
| Happy | 4 | 23888 | 22471 | 0 | 1417 |
| Protocol Buffers | 175 | 38634 | 15558 | 18238 | 4838 |
| Sass | 194 | 14540 | 11456 | 1052 | 2032 |
| SQL | 90 | 9744 | 9039 | 558 | 147 |
| XML | 16 | 7810 | 7801 | 0 | 9 |
| Shell | 115 | 10340 | 7049 | 1742 | 1549 |
Top language (Go 84.1%). Generated at 2026-08-26T18:21:07.227774235+00:00.
cockroachdb/cockroach has 4,182,809 total lines, including 3,085,053 code lines, 698,670 comment lines, and 399,086 blank lines.
OctoCounts resolved the public GitHub repository to commit 8812064a015d, 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 master at commit 8812064a015d on 2026-08-26T18:21:07.227774235+00:00.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity: