SagerNet/sing-box

SagerNet/sing-box has 170,854 source lines of code out of 193,509 total lines across 1,220 files, counted with tokei from the testing ref at commit 3cc357d1bd40 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

SagerNet/sing-box: 170,854 code lines at commit 3cc357d1bd40, counted with tokei-15.0.0 on 2026-11-16. Saved result b314394b0c218444a7bf0879bcd9cd6f35835028e0c090347ac80504925f5e5e.

OctoCounts produced this report by resolving SagerNet/sing-box to commit 3cc357d1bd40, 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.

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
Go1184186663166141334417178
BASH11580128941250
Objective-C412941203388
Protocol Buffers511209493168
YAML132731629
Makefile1296220373
Shell8228166854
Zsh12121463630
Fish12351404946
C Header4141116619
C210491013
JSON1414100
Dockerfile1262600
XML1101000
Markdown44102813
Plain Text111910968223

Top language: Go 97.2%. Generated on .

Counting rules and retention

SagerNet/sing-box: 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.

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 170,854 lines of code, plus 4,491 comment lines and 18,164 blank lines, for 193,509 total lines at commit 3cc357d1bd40 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

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

OctoCounts resolved the public GitHub repository to commit 3cc357d1bd40, 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 3cc357d1bd40 on November 16, 2026.

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,854 code lines across 16 languages, counted by tokei.