The largest codebases by programming language

OctoCounts groups the public GitHub repositories it has measured by their primary programming language — the programming language with the most code lines in the repository — and ranks each group by source lines of code. 34 languages have at least 10 measured repositories, 9,950 repositories in all. Open a language to see its largest repositories; every count is pinned to the commit it counted, counted with tokei, and states its counting rules.

LanguageRepositoriesCode lines counted
TypeScript1,351487,432,867
C477383,377,147
C++548348,823,916
Python1,967335,423,299
Rust962323,765,910
Java460240,958,019
Go537183,963,767
JavaScript1,123163,703,730
Lean1464,985,548
C#30954,583,992
TSX46448,931,865
C Header13946,023,472
Swift25135,339,508
PHP11431,257,627
SQL1327,572,218
Kotlin21525,605,562
HTML17420,587,245
Dart9018,324,349
Lua8016,340,813
Jupyter Notebooks2712,764,068
Shell13210,520,521
Ruby299,082,939
Objective-C325,123,533
JSX994,589,020
CSS1764,447,697
Zig113,823,839
Solidity433,511,174
Scala122,306,813
QML191,593,896
Elixir191,454,626
PowerShell28798,215
Astro13728,559
GDScript12601,827
Sass10143,602

A repository counts once, under one language: its primary programming language. Data and prose formats such as JSON, YAML, TOML and Markdown never make a repository theirs, so a lockfile-heavy TypeScript library is a TypeScript repository. "Code lines counted" adds up the code lines in each group's reports; it measures how much source OctoCounts has counted in those repositories, not how much of it is written in the language.

Language leaderboards FAQ

What is a repository's primary programming language?

It is the programming language with the most code lines in the repository's OctoCounts report. Data and prose formats such as JSON, YAML, TOML and Markdown are skipped when choosing it, so a repository that is mostly JSON by line count still belongs to the programming language it is written in.

How are repositories ranked inside a language?

By source lines of code in their report, largest first. Every report is counted with tokei under OctoCounts' canonical public options, which exclude tests, docs and generated directories, and is pinned to the commit that was counted.

Why is a repository missing from these leaderboards?

A repository appears only if OctoCounts has a public report for it with at least 5 files, the language is its primary programming language, and it is among the largest of that language. A repository analyzed with custom counting options keeps those counts as a separate saved result; they never replace the public report these leaderboards read.