ziglang/zig SLOC report

As of 2026-08-15 (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: C Header 63.1%). Counted with tokei via OctoCounts.

As of 2026-08-15 (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: C Header 63.1%). Counted with tokei via OctoCounts.

OctoCounts produced this report by resolving ziglang/zig to commit 738d2be9d6b6, downloading the repository source archive, and counting every source file 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, so counting the same revision again reproduces exactly these numbers.

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.

LanguageFilesLinesCodeCommentsBlanks
C Header1147633591422458606503208397328
Zig1159121244810638026824880398
Module-Definition2653172058148096223371625
C2295131013972802083412899
C++206720515539886987955
Bitbake252310721331923853
GNU Style Assembly336220471746932071371
Autoconf27132171276237283
C++ Header25144721203910361397
Alex23559049390651
CMake51552134178133
Python51379118734158

Top language (C Header 63.1%). Generated at 2026-08-15T03:55:12.610257402+00:00.

Report FAQ

How many lines of code does ziglang/zig have?

ziglang/zig has 5,035,229 total lines, including 3,895,862 code lines, 632,640 comment lines, and 506,727 blank lines.

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 master at commit 738d2be9d6b6 on 2026-08-15T03:55:12.610257402+00:00.

Similar repository reports

Other public repositories with an OctoCounts report, ranked by top language and code size similarity: