The largest Scala repositories by lines of code
OctoCounts has measured 12 public GitHub repositories whose primary programming language is Scala. apache/spark is the largest, with 1,055,345 code lines across 6,055 files, counted with tokei on November 24, 2026. The table ranks the 13 largest by code lines; each row links to a report pinned to the commit it counted.
| Rank | Repository | Code lines | Total lines | Files | Scala share |
|---|---|---|---|---|---|
| 1 | apache/spark | 1,055,345 | 1,629,899 | 6,055 | 57.8% |
| 2 | twitter/the-algorithm | 525,329 | 675,345 | 7,509 | 65.5% |
| 3 | lichess-org/lila | 294,764 | 344,572 | 3,126 | 49.9% |
| 4 | slick-daddy/lila | 292,343 | 341,725 | 3,120 | 50.3% |
| 5 | Netflix/atlas | 37,684 | 65,473 | 454 | 97.3% |
| 6 | viperproject/gobra | 34,461 | 51,351 | 248 | 99.5% |
| 7 | ie3-institute/simona | 28,059 | 47,177 | 264 | 97.7% |
| 8 | Vyxal/Vyxal | 19,524 | 242,626 | 67 | 97.4% |
| 9 | lichess-org/scalachess | 13,852 | 16,930 | 117 | 99.2% |
| 10 | apache/kafka | 11,568 | 19,778 | 204 | 74.6% |
| 11 | lichess-org/lila-search | 3,505 | 4,386 | 63 | 95.2% |
| 12 | vidmartin/table-processor | 1,592 | 2,026 | 75 | 100.0% |
| 13 | Alkaar/resy-booking-bot | 355 | 574 | 6 | 100.0% |
Ranking rule: a repository belongs to Scala when Scala is its largest programming language by code lines; data and prose formats such as JSON, YAML, TOML and Markdown do not count as a language for this rule. "Scala share" is the share of the repository's code lines written in Scala. Code lines exclude comments and blank lines. Every report uses OctoCounts' canonical public options, with tests, docs and generated directories excluded, and reports were generated on different dates.
Scala leaderboard FAQ
Which Scala repository has the most lines of code?
apache/spark is the largest Scala repository in OctoCounts' index, with 1,055,345 code lines out of 1,629,899 total lines across 6,055 files, counted on November 24, 2026. twitter/the-algorithm follows with 525,329 code lines. Code size is not code quality: a larger count only means more source material.
How does a repository join the Scala leaderboard?
Scala must be its primary programming language: the language with the most code lines in the repository's OctoCounts report, ignoring data and prose formats such as JSON, YAML, TOML and Markdown. The repository then needs a public report with at least 5 files, and it is listed when it is among the 50 largest by code lines.
How many Scala repositories has OctoCounts measured?
12 public GitHub repositories have Scala as their primary programming language in OctoCounts' index. This page lists the 13 largest by code lines; a repository analyzed with custom counting options keeps those counts as a separate saved result.
Does more source lines of code mean more complexity?
Not necessarily. SLOC measures size, not complexity, quality, or maintainability. A larger codebase can mean more features, more generated or vendored code, more verbose language idioms, or more tests — none of which imply the code is harder to work with. Use line counts to gauge the scale of what you would be reading or maintaining, not as a quality signal.