# SagerNet/sing-box SLOC report

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

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.

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.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Go | 1,182 | 186,237 | 165,731 | 3,341 | 17,165 |
| BASH | 1 | 1,580 | 1,289 | 41 | 250 |
| Objective-C | 4 | 1,292 | 1,201 | 3 | 88 |
| Protocol Buffers | 5 | 1,120 | 949 | 3 | 168 |
| YAML | 1 | 327 | 316 | 2 | 9 |
| Makefile | 1 | 296 | 220 | 3 | 73 |
| Shell | 8 | 228 | 166 | 8 | 54 |
| Zsh | 1 | 212 | 146 | 36 | 30 |
| Fish | 1 | 235 | 140 | 49 | 46 |
| C Header | 4 | 141 | 116 | 6 | 19 |
| C | 2 | 104 | 91 | 0 | 13 |
| JSON | 1 | 41 | 41 | 0 | 0 |
| Dockerfile | 1 | 26 | 26 | 0 | 0 |
| XML | 1 | 15 | 15 | 0 | 0 |
| Snakemake | 1 | 8 | 8 | 0 | 0 |
| Markdown | 4 | 41 | 0 | 28 | 13 |
| Plain Text | 1 | 1,191 | 0 | 968 | 223 |

Top language (Go 97.2%). Generated at 2026-10-14T11:03:05.608235401Z. Canonical report: https://octocounts.com/github/SagerNet/sing-box/commit/dfb80349bf5779ec0a3f834c9ec2794345bff8f0?reportId=477e3192b7e3910a6dc0357f84c4ce2fe55e632dc4e1feaf313c6d546c8a3e47&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/SagerNet/sing-box/commit/dfb80349bf5779ec0a3f834c9ec2794345bff8f0?reportId=477e3192b7e3910a6dc0357f84c4ce2fe55e632dc4e1feaf313c6d546c8a3e47&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D).

## 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

- [kubernetes-sigs/kustomize](https://octocounts.com/github/kubernetes-sigs/kustomize) — Go, 170,131 code lines
- [evanw/esbuild](https://octocounts.com/github/evanw/esbuild) — Go, 171,984 code lines
- [redis/agent-filesystem](https://octocounts.com/github/redis/agent-filesystem) — Go, 174,494 code lines
- [MengMengCode/VoCat](https://octocounts.com/github/MengMengCode/VoCat) — Go, 166,169 code lines
- [trefeon/freebucks-proxy](https://octocounts.com/github/trefeon/freebucks-proxy) — Go, 175,392 code lines
- [alibaba/open-code-review](https://octocounts.com/github/alibaba/open-code-review) — Go, 163,224 code lines

## Related OctoCounts pages

- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [Rust vs Go](https://octocounts.com/compare/rust-vs-go)
- [Deno vs Node.js](https://octocounts.com/compare/deno-vs-node)
- [Kubernetes vs Terraform](https://octocounts.com/compare/kubernetes-vs-terraform)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [OctoCounts API docs](https://octocounts.com/docs/api)
