sgl-project/sglang has 1,677,022 source lines of code out of 1,996,978 total lines across 5,814 files, counted from the main ref at commit bab9c81fea62 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.
As of 2026-10-14 (commit bab9c81fea62), sgl-project/sglang contains 1,996,978 total lines: 1,677,022 code, 113,349 comments, 206,607 blank, across 5,814 files in 28 languages (top: Python 78.8%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving sgl-project/sglang to commit bab9c81fea62, 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.0% of all lines, comments represent 5.7%, and the repository averages 288 code lines per file. Python accounts for 78.8% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| Python | 4131 | 1576348 | 1321194 | 82372 | 172782 |
| Rust | 517 | 202173 | 175087 | 8576 | 18510 |
| JSON | 613 | 88352 | 88352 | 0 | 0 |
| CUDA | 55 | 27629 | 22619 | 2569 | 2441 |
| C++ | 52 | 25159 | 20251 | 2201 | 2707 |
| C Header | 82 | 22662 | 16984 | 2827 | 2851 |
| Shell | 73 | 11003 | 7715 | 2030 | 1258 |
| Go | 22 | 7598 | 5877 | 770 | 951 |
| YAML | 58 | 4745 | 3361 | 1115 | 269 |
| JavaScript | 5 | 3532 | 3312 | 1 | 219 |
| C++ Header | 11 | 3931 | 2882 | 558 | 491 |
| Dockerfile | 16 | 3239 | 2234 | 668 | 337 |
Top language (Python 78.8%). Generated at .
sgl-project/sglang has 1,996,978 total lines, including 1,677,022 code lines, 113,349 comment lines, and 206,607 blank lines.
OctoCounts resolved the public GitHub repository to commit bab9c81fea62, 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 bab9c81fea62 on 2026-10-14T11:52:30.581924443+00:00.
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,677,022 code lines across 12 languages, counted by tokei.