# xtls/xray-core SLOC report

> 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%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

xtls/xray-core has 129,332 source lines of code out of 154,701 total lines across 1,017 files, counted from the cd4ce973e9f6ef3a7acf9a7030927b4143f9ea47 ref at commit cd4ce973e9f6 by the OctoCounts tokei engine on 2026-09-07. 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 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.

## Repository size insights

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 | 151,232 | 127,251 | 5,825 | 18,156 |
| Protocol Buffers | 78 | 2,672 | 1,954 | 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. Canonical report: https://octocounts.com/github/xtls/xray-core

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/xtls/xray-core/commit/cd4ce973e9f6ef3a7acf9a7030927b4143f9ea47?analysis=%7B%22ignoredDirs%22%3A%5B%5D%2C%22ignoredLanguages%22%3A%5B%5D%2C%22profile%22%3A%22default%22%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

### How many lines of code does xtls/xray-core have?

xtls/xray-core has 154,701 total lines, including 129,332 code lines, 6,527 comment lines, and 18,842 blank lines.

### How was the xtls/xray-core line count measured?

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.

### What commit was counted for xtls/xray-core?

This OctoCounts report was generated from cd4ce973e9f6ef3a7acf9a7030927b4143f9ea47 at commit cd4ce973e9f6 on 2026-09-07T06:23:49.107603748+00:00.

## Similar repository reports

- [agent-substrate/substrate](https://octocounts.com/github/agent-substrate/substrate) — Go, 131,479 code lines
- [charmbracelet/crush](https://octocounts.com/github/charmbracelet/crush) — Go, 126,445 code lines
- [alibaba/open-code-review](https://octocounts.com/github/alibaba/open-code-review) — Go, 126,205 code lines
- [Busnes-app/KyPost-Server](https://octocounts.com/github/Busnes-app/KyPost-Server) — Go, 125,831 code lines
- [Busness-app/KyPost-Server](https://octocounts.com/github/Busness-app/KyPost-Server) — Go, 124,706 code lines
- [shsuishang/golershop](https://octocounts.com/github/shsuishang/golershop) — Go, 134,136 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)
