The largest Lua repositories by lines of code
OctoCounts has measured 80 public GitHub repositories whose primary programming language is Lua. PathOfBuildingCommunity/PathOfBuilding is the largest, with 5,408,844 code lines across 534 files, counted with tokei on November 24, 2026. The table ranks the 50 largest by code lines; each row links to a report pinned to the commit it counted.
| Rank | Repository | Code lines | Total lines | Files | Lua share |
|---|---|---|---|---|---|
| 1 | PathOfBuildingCommunity/PathOfBuilding | 5,408,844 | 5,476,834 | 534 | 99.8% |
| 2 | gaboolic/rime-shuangpin-fuzhuma | 3,785,696 | 5,617,238 | 229 | 0.1% |
| 3 | wsdjeg/SpaceVim | 1,600,943 | 1,910,494 | 9,483 | 46.8% |
| 4 | PathOfBuildingCommunity/PathOfBuilding-PoE2 | 1,495,204 | 1,547,222 | 1,203 | 99.8% |
| 5 | beyond-all-reason/Beyond-All-Reason | 964,831 | 1,137,186 | 4,127 | 88.2% |
| 6 | amzxyz/rime-wanxiang | 716,706 | 935,907 | 102 | 2.4% |
| 7 | noctalia-dev/community-plugins | 623,260 | 787,756 | 3,500 | 67.9% |
| 8 | Kinfxhk/kinfx-ime | 386,556 | 392,129 | 62 | 0.7% |
| 9 | doctorhetfield-cmd/simpleui.koplugin | 206,528 | 371,329 | 225 | 36.2% |
| 10 | koreader/koreader | 206,048 | 246,561 | 894 | 91.9% |
| 11 | xmake-io/xmake | 154,789 | 266,285 | 2,179 | 78.5% |
| 12 | 4DBug/imgui-luau | 64,354 | 88,899 | 39 | 98.1% |
| 13 | finlater/weread.koplugin | 43,028 | 48,896 | 191 | 92.6% |
| 14 | carlos-algms/agentic.nvim | 39,262 | 54,314 | 132 | 98.6% |
| 15 | luakit/luakit | 32,766 | 47,292 | 241 | 51.1% |
| 16 | Superduper09/Spy-KOS-Sync-Forever | 30,876 | 40,861 | 99 | 96.7% |
| 17 | CoreyKaylor/diffbandit.nvim | 30,870 | 38,066 | 91 | 97.9% |
| 18 | lite-xl/lite-xl | 28,697 | 38,193 | 137 | 50.5% |
| 19 | saya-ashen/agent-workbench.nvim | 26,623 | 36,065 | 87 | 98.8% |
| 20 | undont/differ.nvim | 25,951 | 37,939 | 141 | 77.6% |
| 21 | barrettruth/diffs.nvim | 25,593 | 31,524 | 80 | 99.5% |
| 22 | NeogitOrg/neogit | 24,266 | 33,439 | 190 | 89.5% |
| 23 | esmuellert/codediff.nvim | 24,101 | 35,874 | 229 | 72.1% |
| 24 | coder/claudecode.nvim | 22,221 | 32,790 | 89 | 58.2% |
| 25 | noctalia-dev/official-plugins | 22,028 | 26,390 | 224 | 59.1% |
| 26 | Loreite/fey.nvim | 20,752 | 28,086 | 156 | 99.5% |
| 27 | nvim-orgmode/orgmode | 20,146 | 27,019 | 152 | 97.5% |
| 28 | dont-be-evil-company/kulala.nvim | 17,360 | 24,012 | 124 | 93.7% |
| 29 | andremm/typedlua | 17,119 | 18,689 | 22 | 99.9% |
| 30 | Insality/druid | 17,001 | 33,323 | 190 | 88.1% |
| 31 | FrancescoDerme/tuna.nvim | 16,432 | 26,796 | 51 | 98.7% |
| 32 | ProgUn1corn/qlourie_astral_r | 15,998 | 16,715 | 62 | 7.6% |
| 33 | danreeves/darktide-mods | 15,882 | 19,665 | 138 | 95.6% |
| 34 | sindrets/diffview.nvim | 15,393 | 22,618 | 78 | 99.8% |
| 35 | Ozz-Modding/FS25_MoistureSystem | 15,234 | 20,846 | 85 | 66.2% |
| 36 | Ozz-Modding/FS25_RedTape | 13,595 | 15,973 | 89 | 67.8% |
| 37 | palepine/GDDumper | 13,340 | 17,243 | 11 | 100.0% |
| 38 | Frydac/dotfiles | 12,984 | 20,355 | 238 | 81.4% |
| 39 | vuki656/review.nvim | 11,215 | 15,361 | 41 | 99.8% |
| 40 | nvim-lua/plenary.nvim | 10,432 | 14,913 | 92 | 99.7% |
| 41 | saghen/blink.cmp | 9,275 | 16,370 | 136 | 90.5% |
| 42 | zion-off/diff | 8,932 | 12,761 | 33 | 100.0% |
| 43 | cloudwu/abcm | 8,480 | 8,588 | 7 | 98.9% |
| 44 | miscusi-peek/cheatengine-mcp-bridge | 8,348 | 19,336 | 15 | 57.6% |
| 45 | lua-stdlib/lua-stdlib | 7,479 | 12,611 | 47 | 28.1% |
| 46 | ch4xer/dev | 6,589 | 8,821 | 50 | 15.6% |
| 47 | z13ak/OmniStore | 5,829 | 6,660 | 58 | 96.6% |
| 48 | Jonathan-Rowles/muxim | 5,075 | 5,736 | 23 | 100.0% |
| 49 | blackhat-7/vellum.nvim | 4,269 | 5,050 | 24 | 51.9% |
| 50 | bennypowers/noctalia-plugins | 4,066 | 5,639 | 47 | 83.8% |
Ranking rule: a repository belongs to Lua when Lua 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. "Lua share" is the share of the repository's code lines written in Lua. 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.
Lua leaderboard FAQ
Which Lua repository has the most lines of code?
PathOfBuildingCommunity/PathOfBuilding is the largest Lua repository in OctoCounts' index, with 5,408,844 code lines out of 5,476,834 total lines across 534 files, counted on November 24, 2026. gaboolic/rime-shuangpin-fuzhuma follows with 3,785,696 code lines. Code size is not code quality: a larger count only means more source material.
How does a repository join the Lua leaderboard?
Lua 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 Lua repositories has OctoCounts measured?
80 public GitHub repositories have Lua as their primary programming language in OctoCounts' index. This page lists the 50 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.