# ghostty-org/ghostty SLOC report

> ghostty-org/ghostty: 368,822 code lines at commit 8ef0ec123822, counted with tokei-14.0.0 on 2026-10-24. Saved result 08241e29df7014d1204a1cf5bfc4ed25958d4e0eb268ae0385d2a92905338cbb.

ghostty-org/ghostty has 368,822 source lines of code out of 533,102 total lines across 1,317 files, counted from the main ref at commit 8ef0ec123822 by the OctoCounts tokei engine on 2026-10-24. 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 ghostty-org/ghostty to commit 8ef0ec123822, 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 69.2% of all lines, comments represent 18.1%, and the repository averages 280 code lines per file. Zig accounts for 72.6% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Zig | 766 | 374,638 | 267,581 | 59,890 | 47,167 |
| C Header | 67 | 49,540 | 30,347 | 15,323 | 3,870 |
| Swift | 199 | 38,194 | 26,847 | 5,780 | 5,567 |
| PO File | 35 | 39,681 | 21,152 | 9,709 | 8,820 |
| Python | 4 | 11,797 | 11,537 | 84 | 176 |
| C | 34 | 3,254 | 2,256 | 564 | 434 |
| Nix | 32 | 2,275 | 1,881 | 186 | 208 |
| HEX | 32 | 1,607 | 1,440 | 0 | 167 |
| JSON | 28 | 1,393 | 1,393 | 0 | 0 |
| C++ | 9 | 1,332 | 923 | 224 | 185 |
| GLSL | 15 | 944 | 543 | 241 | 160 |
| XML | 2 | 552 | 529 | 9 | 14 |
| Metal Shading Language | 1 | 853 | 471 | 258 | 124 |
| Shell | 5 | 799 | 451 | 237 | 111 |
| YAML | 4 | 354 | 313 | 20 | 21 |
| CMake | 4 | 461 | 259 | 145 | 57 |
| BASH | 1 | 278 | 161 | 87 | 30 |
| CSS | 1 | 227 | 142 | 55 | 30 |
| Nushell | 2 | 203 | 136 | 39 | 28 |
| Fish | 1 | 178 | 118 | 34 | 26 |
| HTML | 3 | 118 | 100 | 0 | 18 |
| Elvish | 1 | 130 | 95 | 16 | 19 |
| TOML | 1 | 95 | 66 | 25 | 4 |
| Objective-C | 2 | 83 | 62 | 8 | 13 |
| Makefile | 1 | 28 | 19 | 4 | 5 |
| Markdown | 58 | 2,852 | 0 | 2,147 | 705 |
| Plain Text | 9 | 1,236 | 0 | 1,208 | 28 |

Top language (Zig 72.6%). Generated at 2026-10-24T10:30:34.083384481Z. Canonical report: https://octocounts.com/github/ghostty-org/ghostty/commit/8ef0ec1238220a5a714be452ed2844f0691fcf83?reportId=08241e29df7014d1204a1cf5bfc4ed25958d4e0eb268ae0385d2a92905338cbb&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/ghostty-org/ghostty/commit/8ef0ec1238220a5a714be452ed2844f0691fcf83?reportId=08241e29df7014d1204a1cf5bfc4ed25958d4e0eb268ae0385d2a92905338cbb&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

### How many lines of code does ghostty-org/ghostty have?

ghostty-org/ghostty has 533,102 total lines, including 368,822 code lines, 96,293 comment lines, and 67,987 blank lines.

### How was the ghostty-org/ghostty line count measured?

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

### What commit was counted for ghostty-org/ghostty?

This OctoCounts report was generated from main at commit 8ef0ec123822 on 2026-10-24T10:30:34.083384481Z.

## Similar repository reports

- [cataggar/wamr](https://octocounts.com/github/cataggar/wamr) — Zig, 247,051 code lines
- [lightpanda-io/browser](https://octocounts.com/github/lightpanda-io/browser) — Zig, 225,247 code lines
- [vercel-labs/fx](https://octocounts.com/github/vercel-labs/fx) — Zig, 654,865 code lines
- [notactuallytreyanastasio/blimp](https://octocounts.com/github/notactuallytreyanastasio/blimp) — Zig, 66,514 code lines
- [jundot/omlx](https://octocounts.com/github/jundot/omlx) — Python, 367,721 code lines
- [xiaoyang111222/cn-math-taxonomy](https://octocounts.com/github/xiaoyang111222/cn-math-taxonomy) — JSON, 370,017 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)
- [Bun vs Deno](https://octocounts.com/compare/bun-vs-deno)
- [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)
