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.
ghostty-org/ghostty: 368,822 code lines at commit 8ef0ec123822, counted with tokei-14.0.0 on 2026-10-24. Saved result 08241e29df7014d1204a1cf5bfc4ed25958d4e0eb268ae0385d2a92905338cbb.
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.
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 | 374638 | 267581 | 59890 | 47167 |
| C Header | 67 | 49540 | 30347 | 15323 | 3870 |
| Swift | 199 | 38194 | 26847 | 5780 | 5567 |
| PO File | 35 | 39681 | 21152 | 9709 | 8820 |
| Python | 4 | 11797 | 11537 | 84 | 176 |
| C | 34 | 3254 | 2256 | 564 | 434 |
| Nix | 32 | 2275 | 1881 | 186 | 208 |
| HEX | 32 | 1607 | 1440 | 0 | 167 |
| JSON | 28 | 1393 | 1393 | 0 | 0 |
| C++ | 9 | 1332 | 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 | 2852 | 0 | 2147 | 705 |
| Plain Text | 9 | 1236 | 0 | 1208 | 28 |
Top language (Zig 72.6%). Generated at .
ghostty-org/ghostty has 533,102 total lines, including 368,822 code lines, 96,293 comment lines, and 67,987 blank lines.
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.
This OctoCounts report was generated from main at commit 8ef0ec123822 on 2026-10-24T10:30:34.083384481Z.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for ghostty-org/ghostty on this page — 368,822 code lines across 27 languages, counted by tokei.