As of 2026-06-14 (commit 5659cef41f4f), ghostty-org/ghostty contains 365,880 total lines: 255,243 code, 63,627 comments, 47,010 blank, across 1,149 files in 26 languages (top: Zig 75.1%). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving ghostty-org/ghostty to commit 5659cef41f4f, 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.8% of all lines, comments represent 17.4%, and the repository averages 222 code lines per file. Zig accounts for 75.1% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| Zig | 671 | 267425 | 191699 | 41158 | 34568 |
| Swift | 189 | 35705 | 25189 | 5228 | 5288 |
| C Header | 52 | 25204 | 13239 | 9245 | 2720 |
| Python | 2 | 11025 | 10883 | 76 | 66 |
| PO File | 32 | 11454 | 5960 | 3096 | 2398 |
| Nix | 32 | 2324 | 2024 | 99 | 201 |
| C | 30 | 2224 | 1579 | 324 | 321 |
| C++ | 9 | 1248 | 872 | 199 | 177 |
| JSON | 27 | 871 | 871 | 0 | 0 |
| GLSL | 14 | 940 | 539 | 241 | 160 |
| Metal Shading Language | 1 | 853 | 471 | 258 | 124 |
| Shell | 5 | 609 | 345 | 180 | 84 |
Top language (Zig 75.1%). Generated at 2026-06-14T16:17:15.236734410+00:00.
ghostty-org/ghostty has 365,880 total lines, including 255,243 code lines, 63,627 comment lines, and 47,010 blank lines.
OctoCounts resolved the public GitHub repository to commit 5659cef41f4f, 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 5659cef41f4f on 2026-06-14T16:17:15.236734410+00:00.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity: