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.
sgl-project/sglang: 1,740,273 code lines at commit 8cd3c494a3aa, counted with tokei-14.0.0 on 2026-10-22. Saved result 0f92f7d8ac04ddc27070e19631cc1c2a51f576e3e28810fa99bd2f3944af33ab.
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.
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 | 4336 | 1647227 | 1382840 | 85432 | 178955 |
| Rust | 489 | 200937 | 174132 | 8503 | 18302 |
| JSON | 626 | 90121 | 90121 | 0 | 0 |
| CUDA | 55 | 26921 | 22021 | 2536 | 2364 |
| C++ | 53 | 25676 | 20637 | 2262 | 2777 |
| C Header | 82 | 22640 | 16957 | 2828 | 2855 |
| Shell | 79 | 11890 | 8353 | 2204 | 1333 |
| Go | 22 | 7598 | 5877 | 770 | 951 |
| YAML | 59 | 4819 | 3415 | 1129 | 275 |
| JavaScript | 8 | 3580 | 3350 | 8 | 222 |
| C++ Header | 11 | 3931 | 2882 | 558 | 491 |
| Dockerfile | 19 | 3464 | 2375 | 734 | 355 |
| TOML | 40 | 2702 | 2180 | 257 | 265 |
| Protocol Buffers | 9 | 1555 | 945 | 369 | 241 |
| GNU Style Assembly | 2 | 1025 | 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 | 11251 | 0 | 8356 | 2895 |
| Plain Text | 2 | 650 | 0 | 541 | 109 |
Top language (Python 79.5%). Generated at .
sgl-project/sglang has 2,069,803 total lines, including 1,740,273 code lines, 116,792 comment lines, and 212,738 blank lines.
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.
This OctoCounts report was generated from main at commit 8cd3c494a3aa on 2026-10-22T15:41:59.051572139Z.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for sgl-project/sglang on this page — 1,740,273 code lines across 28 languages, counted by tokei.