SagerNet/sing-box

SagerNet/sing-box has 170,455 source lines of code out of 193,094 total lines across 1,219 files, counted from the testing ref at commit dfb80349bf57 by the OctoCounts tokei engine on 2026-10-14. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.

SagerNet/sing-box: 170,455 code lines at commit dfb80349bf57, counted with tokei-14.0.0 on 2026-10-14. Saved result 477e3192b7e3910a6dc0357f84c4ce2fe55e632dc4e1feaf313c6d546c8a3e47.

OctoCounts produced this report by resolving SagerNet/sing-box to commit dfb80349bf57, 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.3% of all lines, comments represent 2.3%, and the repository averages 140 code lines per file. Go accounts for 97.2% of counted code.

LanguageFilesLinesCodeCommentsBlanks
Go1182186237165731334117165
BASH11580128941250
Objective-C412921201388
Protocol Buffers511209493168
YAML132731629
Makefile1296220373
Shell8228166854
Zsh12121463630
Fish12351404946
C Header4141116619
C210491013
JSON1414100
Dockerfile1262600
XML1151500
Snakemake18800
Markdown44102813
Plain Text111910968223

Top language (Go 97.2%). Generated at .

Reproduce this report

Reproduce this exact report and configuration.

Report FAQ

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

SagerNet/sing-box has 193,094 total lines, including 170,455 code lines, 4,488 comment lines, and 18,151 blank lines.

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

OctoCounts resolved the public GitHub repository to commit dfb80349bf57, 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 dfb80349bf57 on 2026-10-14T11:03:05.608235401Z.

Similar repository reports

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

Play the growth animation for SagerNet/sing-box on this page — 170,455 code lines across 17 languages, counted by tokei.