The largest Ruby repositories by lines of code

OctoCounts has measured 29 public GitHub repositories whose primary programming language is Ruby. opf/openproject is the largest, with 2,184,222 code lines across 22,499 files, counted with tokei on November 24, 2026. The table ranks the 29 largest by code lines; each row links to a report pinned to the commit it counted.

RankRepositoryCode linesTotal linesFilesRuby share
1opf/openproject2,184,2222,987,25322,49939.2%
2discourse/discourse1,893,2782,374,30620,82268.6%
3chatwoot/chatwoot1,379,7421,471,7799,34716.8%
4mastodon/mastodon653,062728,9619,77722.5%
5blitzy-public-samples/mastodon625,530696,6599,52622.2%
6we-promise/sure532,073627,7786,61834.2%
7Homebrew/homebrew-core476,017588,0098,79199.8%
8OpenC3/cosmos269,962369,7462,21251.8%
9hackclub/hcb187,344246,2414,54261.1%
10hackclub/stardance164,486206,0312,56635.6%
11redmine/redmine162,442188,6131,46729.4%
12rails/rails144,743322,4021,89587.4%
13ruby/rubygems103,156166,83567499.3%
14blitzy-public-samples/blitzy-rubygems86,972132,84562799.4%
15ekylibre/open-nomenclature.org75,71976,504841.1%
16hackclub/hackatime27,98433,59750253.5%
17discourse/discourse-chat-integration24,01827,78621030.6%
18openjournals/joss20,65427,07343446.7%
19jekyll/jekyll14,63824,42019456.1%
20cscov/StarWarsBnb14,10515,44015912.8%
21sidekiq/sidekiq14,08623,02920659.0%
22sinatra/sinatra10,16819,68614795.7%
23basecamp/kamal6,9438,74211499.5%
24ramsayleung/bayes_spam_sniper6,7018,69116245.1%
25resque/resque4,0307,4486573.3%
26arcticleo/mapkit_token3906961597.9%
27anomalyco/homebrew-tap2282797100.0%
28SublimeText/Spacegray15639467.7%
29enactic/openarm_hardware90703870.0%

Ranking rule: a repository belongs to Ruby when Ruby 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. "Ruby share" is the share of the repository's code lines written in Ruby. 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.

Ruby leaderboard FAQ

Which Ruby repository has the most lines of code?

opf/openproject is the largest Ruby repository in OctoCounts' index, with 2,184,222 code lines out of 2,987,253 total lines across 22,499 files, counted on November 24, 2026. discourse/discourse follows with 1,893,278 code lines. Code size is not code quality: a larger count only means more source material.

How does a repository join the Ruby leaderboard?

Ruby 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 Ruby repositories has OctoCounts measured?

29 public GitHub repositories have Ruby as their primary programming language in OctoCounts' index. This page lists the 29 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.

Curated comparisons in Ruby