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.
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.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| Go | 1135 | 178323 | 158349 | 3409 | 16565 |
| BASH | 1 | 1580 | 1289 | 41 | 250 |
| Objective-C | 4 | 1286 | 1195 | 3 | 88 |
| Protocol Buffers | 5 | 1120 | 949 | 3 | 168 |
| YAML | 1 | 323 | 312 | 2 | 9 |
| JSON | 2 | 298 | 298 | 0 | 0 |
| Makefile | 1 | 293 | 218 | 3 | 72 |
| Shell | 8 | 228 | 166 | 8 | 54 |
| Zsh | 1 | 212 | 146 | 36 | 30 |
| Fish | 1 | 235 | 140 | 49 | 46 |
| C Header | 4 | 137 | 112 | 6 | 19 |
| C | 2 | 104 | 91 | 0 | 13 |
Top language (Go 97.0%). Generated at 2026-09-06T12:39:27.754450563+00:00.
SagerNet/sing-box has 185,420 total lines, including 163,314 code lines, 4,556 comment lines, and 17,550 blank lines.
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.
This OctoCounts report was generated from 60b504a1c74a33fe24872c8144c8f0b7d3d61b2a at commit 60b504a1c74a on 2026-09-06T12:39:27.754450563+00:00.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity: