# ghostty-org/ghostty SLOC report

> As of 2026-09-16 (commit d4c88d806991), ghostty-org/ghostty contains 504,127 total lines: 350,076 code, 88,961 comments, 65,090 blank, across 1,294 files in 27 languages (top: Zig 71.7%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

ghostty-org/ghostty has 350,076 source lines of code out of 504,127 total lines across 1,294 files, counted from the d4c88d8069912b653d707191388ca98e24751f12 ref at commit d4c88d806991 by the OctoCounts tokei engine on 2026-09-16. 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 d4c88d806991, 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.4% of all lines, comments represent 17.6%, and the repository averages 271 code lines per file. Zig accounts for 71.7% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Zig | 751 | 350,975 | 251,028 | 55,248 | 44,699 |
| C Header | 67 | 46,561 | 30,034 | 12,830 | 3,697 |
| Swift | 198 | 37,893 | 26,705 | 5,648 | 5,540 |
| PO File | 35 | 39,449 | 20,792 | 9,837 | 8,820 |
| Python | 4 | 11,539 | 11,322 | 78 | 139 |
| Nix | 32 | 2,410 | 2,070 | 140 | 200 |
| C | 35 | 2,892 | 2,040 | 453 | 399 |
| JSON | 28 | 1,404 | 1,404 | 0 | 0 |
| C++ | 9 | 1,332 | 923 | 224 | 185 |
| GLSL | 14 | 940 | 539 | 241 | 160 |
| XML | 2 | 552 | 529 | 9 | 14 |
| Metal Shading Language | 1 | 853 | 471 | 258 | 124 |

Top language (Zig 71.7%). Generated at 2026-09-16T15:26:40.282058381+00:00. Canonical report: https://octocounts.com/github/ghostty-org/ghostty

## Reproduce this report

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

## Report FAQ

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

ghostty-org/ghostty has 504,127 total lines, including 350,076 code lines, 88,961 comment lines, and 65,090 blank lines.

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

OctoCounts resolved the public GitHub repository to commit d4c88d806991, 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 d4c88d8069912b653d707191388ca98e24751f12 at commit d4c88d806991 on 2026-09-16T15:26:40.282058381+00:00.

## Similar repository reports

- [cataggar/wamr](https://octocounts.com/github/cataggar/wamr) — Zig, 211,938 code lines
- [caudex-workout/engine](https://octocounts.com/github/caudex-workout/engine) — Zig, 62,231 code lines
- [notkisk/ziglings](https://octocounts.com/github/notkisk/ziglings) — Zig, 4,057 code lines
- [seatedro/glyph](https://octocounts.com/github/seatedro/glyph) — Zig, 2,445 code lines
- [x11libre/xserver](https://octocounts.com/github/x11libre/xserver) — C, 350,425 code lines
- [confident-ai/deepeval](https://octocounts.com/github/confident-ai/deepeval) — Python, 349,423 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)
