SagerNet/sing-box SLOC report

As of 2026-09-06 (commit 60b504a1c74a), SagerNet/sing-box contains 185,420 total lines: 163,314 code, 4,556 comments, 17,550 blank, across 1,173 files in 17 languages (top: Go 97.0%). Counted with tokei via OctoCounts.

As of 2026-09-06 (commit 60b504a1c74a), SagerNet/sing-box contains 185,420 total lines: 163,314 code, 4,556 comments, 17,550 blank, across 1,173 files in 17 languages (top: Go 97.0%). Counted with tokei via OctoCounts.

OctoCounts produced this report by resolving SagerNet/sing-box to commit 60b504a1c74a, 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 88.1% of all lines, comments represent 2.5%, and the repository averages 139 code lines per file. Go accounts for 97.0% of counted code.

LanguageFilesLinesCodeCommentsBlanks
Go1135178323158349340916565
BASH11580128941250
Objective-C412861195388
Protocol Buffers511209493168
YAML132331229
JSON229829800
Makefile1293218372
Shell8228166854
Zsh12121463630
Fish12351404946
C Header4137112619
C210491013

Top language (Go 97.0%). Generated at 2026-09-06T12:39:27.754450563+00:00.

Report FAQ

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

SagerNet/sing-box has 185,420 total lines, including 163,314 code lines, 4,556 comment lines, and 17,550 blank lines.

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

OctoCounts resolved the public GitHub repository to commit 60b504a1c74a, 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 60b504a1c74a33fe24872c8144c8f0b7d3d61b2a at commit 60b504a1c74a on 2026-09-06T12:39:27.754450563+00:00.

Similar repository reports

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