# tree-sitter/tree-sitter SLOC report

> As of 2026-09-02 (commit c206ad1e6a4a), tree-sitter/tree-sitter contains 86,400 total lines: 72,382 code, 6,693 comments, 7,325 blank, across 284 files in 22 languages (top: Rust 56.7%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

tree-sitter/tree-sitter has 72,382 source lines of code out of 86,400 total lines across 284 files, counted from the master ref at commit c206ad1e6a4a by the OctoCounts tokei engine on 2026-09-02. 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 tree-sitter/tree-sitter to commit c206ad1e6a4a, 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 medium-sized codebase by counted code lines. Code represents 83.8% of all lines, comments represent 7.7%, and the repository averages 255 code lines per file. Rust accounts for 56.7% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Rust | 86 | 46,106 | 41,030 | 1,257 | 3,819 |
| C | 48 | 17,146 | 14,917 | 817 | 1,412 |
| C Header | 47 | 8,904 | 5,496 | 2,512 | 896 |
| JSON | 9 | 5,000 | 5,000 | 0 | 0 |
| TypeScript | 18 | 4,112 | 2,411 | 1,257 | 444 |
| JavaScript | 12 | 1,072 | 934 | 16 | 122 |
| Nix | 5 | 708 | 563 | 68 | 77 |
| TOML | 12 | 606 | 524 | 6 | 76 |
| Python | 8 | 455 | 324 | 59 | 72 |
| Zig | 4 | 261 | 224 | 2 | 35 |
| Bitbake | 1 | 286 | 214 | 35 | 37 |
| Makefile | 2 | 259 | 198 | 14 | 47 |

Top language (Rust 56.7%). Generated at 2026-09-02T09:23:43.846852247+00:00. Canonical report: https://octocounts.com/github/tree-sitter/tree-sitter

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/tree-sitter/tree-sitter/commit/c206ad1e6a4af428942acdd81dbadce9922a72c2?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 tree-sitter/tree-sitter have?

tree-sitter/tree-sitter has 86,400 total lines, including 72,382 code lines, 6,693 comment lines, and 7,325 blank lines.

### How was the tree-sitter/tree-sitter line count measured?

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

### What commit was counted for tree-sitter/tree-sitter?

This OctoCounts report was generated from master at commit c206ad1e6a4a on 2026-09-02T09:23:43.846852247+00:00.

## Similar repository reports

- [Ranrar/Marco](https://octocounts.com/github/Ranrar/Marco) — Rust, 72,645 code lines
- [niri-wm/niri](https://octocounts.com/github/niri-wm/niri) — Rust, 71,809 code lines
- [3899/SimAdmin](https://octocounts.com/github/3899/SimAdmin) — Rust, 73,025 code lines
- [acsandmann/rift](https://octocounts.com/github/acsandmann/rift) — Rust, 71,487 code lines
- [sxyazi/yazi](https://octocounts.com/github/sxyazi/yazi) — Rust, 70,628 code lines
- [lark-sh/lark](https://octocounts.com/github/lark-sh/lark) — Rust, 74,907 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)
