# ziglang/zig SLOC report

> ziglang/zig: 3,895,862 code lines at commit 738d2be9d6b6, counted with tokei-15.0.0 on 2026-11-09. Saved result 9fd74890632a274913bb504b204e1207f9ab462c1109dab9769708736588bf50.

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.

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.

## Counting rules and retention

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.

## Repository size insights

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 | 11,476 | 3,359,142 | 2,458,606 | 503,208 | 397,328 |
| Zig | 1,159 | 1,212,448 | 1,063,802 | 68,248 | 80,398 |
| Module-Definition | 2,653 | 172,058 | 148,096 | 22,337 | 1,625 |
| C | 2,295 | 131,013 | 97,280 | 20,834 | 12,899 |
| C++ | 206 | 72,051 | 55,398 | 8,698 | 7,955 |
| Bitbake | 25 | 23,107 | 21,331 | 923 | 853 |
| GNU Style Assembly | 336 | 22,047 | 17,469 | 3,207 | 1,371 |
| Autoconf | 27 | 13,217 | 12,762 | 372 | 83 |
| C++ Header | 25 | 14,472 | 12,039 | 1,036 | 1,397 |
| Alex | 23 | 5,590 | 4,939 | 0 | 651 |
| CMake | 5 | 1,552 | 1,341 | 78 | 133 |
| Python | 5 | 1,379 | 1,187 | 34 | 158 |
| Shell | 15 | 1,010 | 694 | 130 | 186 |
| JavaScript | 1 | 366 | 338 | 3 | 25 |
| CSS | 2 | 283 | 280 | 0 | 3 |
| PowerShell | 3 | 306 | 247 | 19 | 40 |
| HTML | 1 | 59 | 41 | 4 | 14 |
| JSON | 2 | 12 | 12 | 0 | 0 |
| Markdown | 2 | 88 | 0 | 67 | 21 |
| Plain Text | 6 | 5,029 | 0 | 3,442 | 1,587 |

Top language: C Header 63.1%. Generated on November 9, 2026. Canonical report: https://octocounts.com/github/ziglang/zig/commit/738d2be9d6b6ef3ff3559130c05159ef53336224?reportId=9fd74890632a274913bb504b204e1207f9ab462c1109dab9769708736588bf50&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/ziglang/zig/commit/738d2be9d6b6ef3ff3559130c05159ef53336224?reportId=9fd74890632a274913bb504b204e1207f9ab462c1109dab9769708736588bf50&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

### How many lines of code does ziglang/zig have?

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.

### How was the ziglang/zig line count measured?

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.

### What commit was counted for ziglang/zig?

This OctoCounts report was generated from 738d2be9d6b6ef3ff3559130c05159ef53336224 at commit 738d2be9d6b6 on November 9, 2026.

## Similar repository reports

- [espressif/esp-idf](https://octocounts.com/github/espressif/esp-idf) — C Header, 2,946,214 code lines
- [nodejs/node](https://octocounts.com/github/nodejs/node) — C Header, 10,506,289 code lines
- [nanomatters/proton-salkim](https://octocounts.com/github/nanomatters/proton-salkim) — C Header, 1,433,882 code lines
- [TGX-Android/tdlib](https://octocounts.com/github/TGX-Android/tdlib) — C Header, 1,283,438 code lines
- [turanszkij/WickedEngine](https://octocounts.com/github/turanszkij/WickedEngine) — C Header, 1,168,314 code lines
- [grpc/grpc](https://octocounts.com/github/grpc/grpc) — C Header, 909,445 code lines

## Related OctoCounts pages

- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [How to count lines of code in a GitHub repository](https://octocounts.com/docs/count-lines-of-code-github)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [OctoCounts API docs](https://octocounts.com/docs/api)
- [All OctoCounts guides](https://octocounts.com/docs)
