sagernet/sing-box SLOC report

As of 2026-08-08 (commit d51f03f428e4), sagernet/sing-box contains 165,360 total lines: 145,187 code, 4,271 comments, 15,902 blank, across 1,052 files in 17 languages (top: Go 96.7%). Counted with tokei via OctoCounts.

As of 2026-08-08 (commit d51f03f428e4), sagernet/sing-box contains 165,360 total lines: 145,187 code, 4,271 comments, 15,902 blank, across 1,052 files in 17 languages (top: Go 96.7%). Counted with tokei via OctoCounts.

OctoCounts produced this report by resolving sagernet/sing-box to commit d51f03f428e4, 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 large codebase by counted code lines. Code represents 87.8% of all lines, comments represent 2.6%, and the repository averages 138 code lines per file. Go accounts for 96.7% of counted code.

LanguageFilesLinesCodeCommentsBlanks
Go1016158538140460312414954
BASH11580128941250
Objective-C311651086376
Protocol Buffers59728233146
YAML132331229
JSON229829800
Makefile1294219372
Shell8228166854
Zsh12121463630
Fish12351404946
C Header3130108616
C210491013

Top language (Go 96.7%). Generated at 2026-08-08T14:07:56.528154436+00:00.

Report FAQ

How many lines of code does sagernet/sing-box have?

sagernet/sing-box has 165,360 total lines, including 145,187 code lines, 4,271 comment lines, and 15,902 blank lines.

How was the sagernet/sing-box line count measured?

OctoCounts resolved the public GitHub repository to commit d51f03f428e4, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

What commit was counted for sagernet/sing-box?

This OctoCounts report was generated from testing at commit d51f03f428e4 on 2026-08-08T14:07:56.528154436+00:00.

Similar repository reports

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