ghostty-org/ghostty has 399,385 source lines of code out of 570,992 total lines across 1,341 files, counted with tokei from the main ref at commit d4cf6ec225dc on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
As of 2026-11-16 (commit d4cf6ec225dc), ghostty-org/ghostty contains 570,992 total lines: 399,385 code, 101,331 comments, 70,276 blank, across 1,341 files in 27 languages (top language: Zig 69.7%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving ghostty-org/ghostty to commit d4cf6ec225dc, downloading the repository source archive, and counting files selected by the effective rules 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; an exact reproduction needs the same commit, engine version, and effective counting rules.
This is a large codebase by counted code lines. Code represents 69.9% of all lines, comments represent 17.7%, and the repository averages 298 code lines per file. Zig accounts for 69.7% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| Zig | 775 | 390725 | 278531 | 63448 | 48746 |
| C Header | 68 | 49828 | 30396 | 15449 | 3983 |
| Swift | 200 | 38525 | 27077 | 5822 | 5626 |
| PO File | 35 | 40999 | 21837 | 10027 | 9135 |
| JSON | 32 | 19395 | 19395 | 0 | 0 |
| Python | 4 | 11797 | 11537 | 84 | 176 |
| C | 36 | 3578 | 2469 | 627 | 482 |
| Nix | 32 | 2408 | 1967 | 221 | 220 |
| HEX | 32 | 1607 | 1440 | 0 | 167 |
| C++ | 9 | 1376 | 959 | 230 | 187 |
| Shell | 6 | 1280 | 728 | 411 | 141 |
| GLSL | 15 | 944 | 543 | 241 | 160 |
Top language: Zig 69.7%. Generated on .
ghostty-org/ghostty: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.
Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.
ghostty-org/ghostty has 399,385 lines of code, plus 101,331 comment lines and 70,276 blank lines, for 570,992 total lines at commit d4cf6ec225dc on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
OctoCounts resolved the public GitHub repository to commit d4cf6ec225dc, 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 d4cf6ec225dc on November 16, 2026.
Play the growth animation for ghostty-org/ghostty on this page — 399,385 code lines across 27 languages, counted by tokei.