As of 2026-09-07 (commit cd4ce973e9f6), xtls/xray-core contains 154,701 total lines: 129,332 code, 6,527 comments, 18,842 blank, across 1,017 files in 6 languages (top: Go 98.4%). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving xtls/xray-core to commit cd4ce973e9f6, 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 large codebase by counted code lines. Code represents 83.6% of all lines, comments represent 4.2%, and the repository averages 127 code lines per file. Go accounts for 98.4% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| Go | 930 | 151232 | 127251 | 5825 | 18156 |
| Protocol Buffers | 78 | 2672 | 1954 | 200 | 518 |
| BASH | 2 | 88 | 65 | 5 | 18 |
| GNU Style Assembly | 2 | 65 | 51 | 3 | 11 |
| HTML | 1 | 11 | 11 | 0 | 0 |
| Markdown | 4 | 633 | 0 | 494 | 139 |
Top language (Go 98.4%). Generated at 2026-09-07T06:23:49.107603748+00:00.
xtls/xray-core has 154,701 total lines, including 129,332 code lines, 6,527 comment lines, and 18,842 blank lines.
OctoCounts resolved the public GitHub repository to commit cd4ce973e9f6, 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 cd4ce973e9f6ef3a7acf9a7030927b4143f9ea47 at commit cd4ce973e9f6 on 2026-09-07T06:23:49.107603748+00:00.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity: