SagerNet/sing-box SLOC report
As of 2026-08-11 (commit 4902660f8424), SagerNet/sing-box contains 165,866 total lines: 145,599 code, 4,368 comments, 15,899 blank, across 1,048 files in 17 languages (top: Go 96.8%). Counted with tokei via OctoCounts.
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 139 code lines per file. Go accounts for 96.8% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|
| Go | 1012 | 159044 | 140872 | 3221 | 14951 |
| 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.8%). Generated at 2026-08-11T05:50:59.527947966+00:00.
Report FAQ
How many lines of code does SagerNet/sing-box have?
SagerNet/sing-box has 165,866 total lines, including 145,599 code lines, 4,368 comment lines, and 15,899 blank lines.
How was the SagerNet/sing-box line count measured?
OctoCounts resolved the public GitHub repository to commit 4902660f8424, 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 4902660f8424 on 2026-08-11T05:50:59.527947966+00:00.