The largest Zig repositories by lines of code
OctoCounts has measured 11 public GitHub repositories whose primary programming language is Zig. ashhart/TensorFold is the largest, with 1,375,459 code lines across 9,134 files, counted with tokei on November 24, 2026. The table ranks the 11 largest by code lines; each row links to a report pinned to the commit it counted.
| Rank | Repository | Code lines | Total lines | Files | Zig share |
|---|---|---|---|---|---|
| 1 | ashhart/TensorFold | 1,375,459 | 1,679,038 | 9,134 | 60.4% |
| 2 | vercel-labs/fx | 799,104 | 924,362 | 945 | 95.0% |
| 3 | zig-utils/zig-js | 510,045 | 571,247 | 537 | 91.1% |
| 4 | ghostty-org/ghostty | 402,154 | 575,481 | 1,347 | 69.7% |
| 5 | cataggar/wamr | 272,753 | 334,230 | 258 | 99.9% |
| 6 | lightpanda-io/browser | 262,369 | 363,941 | 742 | 95.1% |
| 7 | notactuallytreyanastasio/blimp | 71,488 | 82,002 | 108 | 47.4% |
| 8 | fubark/cyber | 62,740 | 77,915 | 128 | 91.7% |
| 9 | lalinsky/zio | 55,600 | 78,571 | 122 | 99.5% |
| 10 | tonybanters/oxwm | 9,532 | 12,063 | 45 | 86.0% |
| 11 | NoTimeDev/termy-zig | 2,595 | 3,219 | 16 | 100.0% |
Ranking rule: a repository belongs to Zig when Zig 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. "Zig share" is the share of the repository's code lines written in Zig. 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.
Zig leaderboard FAQ
Which Zig repository has the most lines of code?
ashhart/TensorFold is the largest Zig repository in OctoCounts' index, with 1,375,459 code lines out of 1,679,038 total lines across 9,134 files, counted on November 24, 2026. vercel-labs/fx follows with 799,104 code lines. Code size is not code quality: a larger count only means more source material.
How does a repository join the Zig leaderboard?
Zig 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 Zig repositories has OctoCounts measured?
11 public GitHub repositories have Zig as their primary programming language in OctoCounts' index. This page lists the 11 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.