# aptos-labs/aptos-core SLOC report

> As of 2026-09-16 (commit c266d21c0eda), aptos-labs/aptos-core contains 2,142,568 total lines: 1,870,288 code, 130,563 comments, 141,717 blank, across 6,538 files in 30 languages (top: Rust 48.7%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

aptos-labs/aptos-core has 1,870,288 source lines of code out of 2,142,568 total lines across 6,538 files, counted from the c266d21c0eda104a8f35967ead8cf55027ef9a16 ref at commit c266d21c0eda by the OctoCounts tokei engine on 2026-09-16. 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 aptos-labs/aptos-core to commit c266d21c0eda, 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 87.3% of all lines, comments represent 6.1%, and the repository averages 286 code lines per file. Rust accounts for 48.7% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Rust | 3,626 | 1,069,895 | 910,827 | 59,433 | 99,635 |
| JSON | 552 | 431,275 | 431,267 | 0 | 8 |
| SVG | 33 | 189,977 | 189,971 | 2 | 4 |
| Lean | 648 | 232,707 | 188,717 | 24,459 | 19,531 |
| YAML | 172 | 69,729 | 66,165 | 843 | 2,721 |
| Python | 177 | 41,786 | 35,335 | 2,146 | 4,305 |
| TypeScript | 58 | 18,606 | 16,132 | 772 | 1,702 |
| TOML | 622 | 15,428 | 13,492 | 338 | 1,598 |
| HCL | 90 | 8,462 | 7,126 | 234 | 1,102 |
| Shell | 103 | 8,143 | 5,795 | 1,262 | 1,086 |
| TSX | 14 | 1,131 | 1,002 | 22 | 107 |
| Protocol Buffers | 7 | 1,015 | 763 | 83 | 169 |

Top language (Rust 48.7%). Generated at 2026-09-16T20:16:21.783819058+00:00. Canonical report: https://octocounts.com/github/aptos-labs/aptos-core

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/aptos-labs/aptos-core/commit/c266d21c0eda104a8f35967ead8cf55027ef9a16?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 aptos-labs/aptos-core have?

aptos-labs/aptos-core has 2,142,568 total lines, including 1,870,288 code lines, 130,563 comment lines, and 141,717 blank lines.

### How was the aptos-labs/aptos-core line count measured?

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

### What commit was counted for aptos-labs/aptos-core?

This OctoCounts report was generated from c266d21c0eda104a8f35967ead8cf55027ef9a16 at commit c266d21c0eda on 2026-09-16T20:16:21.783819058+00:00.

## Similar repository reports

- [nicodunks/mog](https://octocounts.com/github/nicodunks/mog) — Rust, 1,568,608 code lines
- [openinterpreter/openinterpreter](https://octocounts.com/github/openinterpreter/openinterpreter) — Rust, 1,492,495 code lines
- [warpdotdev/warp](https://octocounts.com/github/warpdotdev/warp) — Rust, 1,470,282 code lines
- [oven-sh/bun](https://octocounts.com/github/oven-sh/bun) — Rust, 1,469,308 code lines
- [xai-org/grok-build](https://octocounts.com/github/xai-org/grok-build) — Rust, 1,458,593 code lines
- [openai/codex](https://octocounts.com/github/openai/codex) — Rust, 1,456,785 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)
- [Electron vs Tauri](https://octocounts.com/compare/electron-vs-tauri)
- [Deno vs Node.js](https://octocounts.com/compare/deno-vs-node)
- [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)
