ziglang/zig has 3,895,862 source lines of code out of 5,035,229 total lines across 18,267 files, counted with tokei from the 738d2be9d6b6ef3ff3559130c05159ef53336224 ref at commit 738d2be9d6b6 on November 9, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
As of 2026-11-09 (commit 738d2be9d6b6), ziglang/zig contains 5,035,229 total lines: 3,895,862 code, 632,640 comments, 506,727 blank, across 18,267 files in 20 languages (top language: C Header 63.1%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving ziglang/zig to commit 738d2be9d6b6, downloading the repository source archive, and counting files selected by the effective rules with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options; an exact reproduction needs the same commit, engine version, and effective counting rules.
This is a very large codebase by counted code lines. Code represents 77.4% of all lines, comments represent 12.6%, and the repository averages 213 code lines per file. C Header accounts for 63.1% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C Header | 11476 | 3359142 | 2458606 | 503208 | 397328 |
| Zig | 1159 | 1212448 | 1063802 | 68248 | 80398 |
| Module-Definition | 2653 | 172058 | 148096 | 22337 | 1625 |
| C | 2295 | 131013 | 97280 | 20834 | 12899 |
| C++ | 206 | 72051 | 55398 | 8698 | 7955 |
| Bitbake | 25 | 23107 | 21331 | 923 | 853 |
| GNU Style Assembly | 336 | 22047 | 17469 | 3207 | 1371 |
| Autoconf | 27 | 13217 | 12762 | 372 | 83 |
| C++ Header | 25 | 14472 | 12039 | 1036 | 1397 |
| Alex | 23 | 5590 | 4939 | 0 | 651 |
| CMake | 5 | 1552 | 1341 | 78 | 133 |
| Python | 5 | 1379 | 1187 | 34 | 158 |
Top language: C Header 63.1%. Generated on .
ziglang/zig: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.
Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.
ziglang/zig has 3,895,862 lines of code, plus 632,640 comment lines and 506,727 blank lines, for 5,035,229 total lines at commit 738d2be9d6b6 on November 9, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
OctoCounts resolved the public GitHub repository to commit 738d2be9d6b6, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
This OctoCounts report was generated from 738d2be9d6b6ef3ff3559130c05159ef53336224 at commit 738d2be9d6b6 on November 9, 2026.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for ziglang/zig on this page — 3,895,862 code lines across 20 languages, counted by tokei.