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.
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.
| Language | Files | Lines | Code | Comments | Blanks |
|---|
| Go | 1016 | 158538 | 140460 | 3124 | 14954 |
| BASH | 1 | 1580 | 1289 | 41 | 250 |
| Objective-C | 3 | 1165 | 1086 | 3 | 76 |
| Protocol Buffers | 5 | 972 | 823 | 3 | 146 |
| YAML | 1 | 323 | 312 | 2 | 9 |
| JSON | 2 | 298 | 298 | 0 | 0 |
| Makefile | 1 | 294 | 219 | 3 | 72 |
| Shell | 8 | 228 | 166 | 8 | 54 |
| Zsh | 1 | 212 | 146 | 36 | 30 |
| Fish | 1 | 235 | 140 | 49 | 46 |
| C Header | 3 | 130 | 108 | 6 | 16 |
| C | 2 | 104 | 91 | 0 | 13 |
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.