# ghostty-org/ghostty SLOC report

> ghostty-org/ghostty: 399,385 code lines at commit d4cf6ec225dc, counted with tokei-15.0.0 on 2026-11-16. Saved result fc9c891e645a51071a6e3200c85539e3d4eda07c65dde684e4f620d01c5f5d50.

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.

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.

## Counting rules and retention

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.

## Repository size insights

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 | 390,725 | 278,531 | 63,448 | 48,746 |
| C Header | 68 | 49,828 | 30,396 | 15,449 | 3,983 |
| Swift | 200 | 38,525 | 27,077 | 5,822 | 5,626 |
| PO File | 35 | 40,999 | 21,837 | 10,027 | 9,135 |
| JSON | 32 | 19,395 | 19,395 | 0 | 0 |
| Python | 4 | 11,797 | 11,537 | 84 | 176 |
| C | 36 | 3,578 | 2,469 | 627 | 482 |
| Nix | 32 | 2,408 | 1,967 | 221 | 220 |
| HEX | 32 | 1,607 | 1,440 | 0 | 167 |
| C++ | 9 | 1,376 | 959 | 230 | 187 |
| Shell | 6 | 1,280 | 728 | 411 | 141 |
| GLSL | 15 | 944 | 543 | 241 | 160 |
| XML | 2 | 552 | 529 | 9 | 14 |
| Metal Shading Language | 1 | 853 | 471 | 258 | 124 |
| YAML | 4 | 369 | 321 | 24 | 24 |
| CMake | 4 | 493 | 280 | 153 | 60 |
| BASH | 1 | 283 | 161 | 92 | 30 |
| CSS | 1 | 232 | 146 | 55 | 31 |
| 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 | 97 | 68 | 25 | 4 |
| Objective-C | 2 | 83 | 62 | 8 | 13 |
| Makefile | 1 | 28 | 19 | 4 | 5 |
| Markdown | 62 | 3,458 | 0 | 2,629 | 829 |
| Plain Text | 11 | 1,453 | 0 | 1,425 | 28 |

Top language: Zig 69.7%. Generated on November 16, 2026. Canonical report: https://octocounts.com/github/ghostty-org/ghostty/commit/d4cf6ec225dc0398f3d46024b1437a7f5b0f8777?reportId=fc9c891e645a51071a6e3200c85539e3d4eda07c65dde684e4f620d01c5f5d50&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/d4cf6ec225dc0398f3d46024b1437a7f5b0f8777?reportId=fc9c891e645a51071a6e3200c85539e3d4eda07c65dde684e4f620d01c5f5d50&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 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.

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

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.

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

This OctoCounts report was generated from main at commit d4cf6ec225dc on November 16, 2026.

## Similar repository reports

- [zig-utils/zig-js](https://octocounts.com/github/zig-utils/zig-js) — Zig, 510,045 code lines
- [cataggar/wamr](https://octocounts.com/github/cataggar/wamr) — Zig, 272,753 code lines
- [lightpanda-io/browser](https://octocounts.com/github/lightpanda-io/browser) — Zig, 253,544 code lines
- [vercel-labs/fx](https://octocounts.com/github/vercel-labs/fx) — Zig, 737,937 code lines
- [ashhart/TensorFold](https://octocounts.com/github/ashhart/TensorFold) — Zig, 1,199,042 code lines
- [notactuallytreyanastasio/blimp](https://octocounts.com/github/notactuallytreyanastasio/blimp) — Zig, 71,488 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)
- [How to count lines of code in a GitHub repository](https://octocounts.com/docs/count-lines-of-code-github)
- [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)
- [All OctoCounts guides](https://octocounts.com/docs)
