# sgl-project/sglang SLOC report

> sgl-project/sglang: 1,740,273 code lines at commit 8cd3c494a3aa, counted with tokei-14.0.0 on 2026-10-22. Saved result 0f92f7d8ac04ddc27070e19631cc1c2a51f576e3e28810fa99bd2f3944af33ab.

sgl-project/sglang has 1,740,273 source lines of code out of 2,069,803 total lines across 6,022 files, counted from the main ref at commit 8cd3c494a3aa by the OctoCounts tokei engine on 2026-10-22. 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 sgl-project/sglang to commit 8cd3c494a3aa, 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 very large codebase by counted code lines. Code represents 84.1% of all lines, comments represent 5.6%, and the repository averages 289 code lines per file. Python accounts for 79.5% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Python | 4,336 | 1,647,227 | 1,382,840 | 85,432 | 178,955 |
| Rust | 489 | 200,937 | 174,132 | 8,503 | 18,302 |
| JSON | 626 | 90,121 | 90,121 | 0 | 0 |
| CUDA | 55 | 26,921 | 22,021 | 2,536 | 2,364 |
| C++ | 53 | 25,676 | 20,637 | 2,262 | 2,777 |
| C Header | 82 | 22,640 | 16,957 | 2,828 | 2,855 |
| Shell | 79 | 11,890 | 8,353 | 2,204 | 1,333 |
| Go | 22 | 7,598 | 5,877 | 770 | 951 |
| YAML | 59 | 4,819 | 3,415 | 1,129 | 275 |
| JavaScript | 8 | 3,580 | 3,350 | 8 | 222 |
| C++ Header | 11 | 3,931 | 2,882 | 558 | 491 |
| Dockerfile | 19 | 3,464 | 2,375 | 734 | 355 |
| TOML | 40 | 2,702 | 2,180 | 257 | 265 |
| Protocol Buffers | 9 | 1,555 | 945 | 369 | 241 |
| GNU Style Assembly | 2 | 1,025 | 925 | 69 | 31 |
| CSS | 2 | 963 | 902 | 0 | 61 |
| CMake | 4 | 929 | 706 | 113 | 110 |
| Jinja2 | 9 | 664 | 614 | 32 | 18 |
| Makefile | 4 | 637 | 502 | 48 | 87 |
| HTML | 2 | 293 | 291 | 0 | 2 |
| Metal Shading Language | 1 | 262 | 194 | 37 | 31 |
| BASH | 2 | 46 | 33 | 5 | 8 |
| Autoconf | 3 | 15 | 14 | 1 | 0 |
| INI | 1 | 5 | 5 | 0 | 0 |
| SVG | 2 | 2 | 2 | 0 | 0 |
| Jupyter Notebooks | 2 | 0 | 0 | 0 | 0 |
| Markdown | 98 | 11,251 | 0 | 8,356 | 2,895 |
| Plain Text | 2 | 650 | 0 | 541 | 109 |

Top language (Python 79.5%). Generated at 2026-10-22T15:41:59.051572139Z. Canonical report: https://octocounts.com/github/sgl-project/sglang/commit/8cd3c494a3aa3ae56dfd76f51bab6912234914dc?reportId=0f92f7d8ac04ddc27070e19631cc1c2a51f576e3e28810fa99bd2f3944af33ab&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/sgl-project/sglang/commit/8cd3c494a3aa3ae56dfd76f51bab6912234914dc?reportId=0f92f7d8ac04ddc27070e19631cc1c2a51f576e3e28810fa99bd2f3944af33ab&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 sgl-project/sglang have?

sgl-project/sglang has 2,069,803 total lines, including 1,740,273 code lines, 116,792 comment lines, and 212,738 blank lines.

### How was the sgl-project/sglang line count measured?

OctoCounts resolved the public GitHub repository to commit 8cd3c494a3aa, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

### What commit was counted for sgl-project/sglang?

This OctoCounts report was generated from main at commit 8cd3c494a3aa on 2026-10-22T15:41:59.051572139Z.

## Similar repository reports

- [BerriAI/litellm](https://octocounts.com/github/BerriAI/litellm) — Python, 1,749,068 code lines
- [home-assistant/core](https://octocounts.com/github/home-assistant/core) — Python, 1,655,962 code lines
- [NousResearch/hermes-agent](https://octocounts.com/github/NousResearch/hermes-agent) — Python, 1,925,263 code lines
- [vllm-project/vllm](https://octocounts.com/github/vllm-project/vllm) — Python, 1,420,031 code lines
- [unslothai/unsloth](https://octocounts.com/github/unslothai/unsloth) — Python, 1,406,112 code lines
- [houmo-ai/postmo-quantflow](https://octocounts.com/github/houmo-ai/postmo-quantflow) — Python, 1,321,386 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)
- [TensorFlow vs PyTorch](https://octocounts.com/compare/tensorflow-vs-pytorch)
- [Django vs Ruby on Rails](https://octocounts.com/compare/django-vs-rails)
- [Laravel vs Django](https://octocounts.com/compare/laravel-vs-django)
- [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)
