Libghostty 1.0 mitchellh.com · 152 points · 17 comments · HN thread TL;DR Mitche...
HN Best 200 @best
Libghostty 1.0 mitchellh.com · 152 points · 17 comments · HN thread
TL;DR Mitchell Hashimoto announces libghostty-vt 1.0, a portable C library for terminal emulation extracted from Ghostty, with its C ABI now declared stable. He cites adoption by JetBrains IDEs (over 12.5 million recurring active users), Neovim (pending PR), and many third-party terminals and tools, plus CI-enforced ABI checks and packaging support.
- libghostty-vt 1.0 means the library and C ABI are stable, with semantic versioning and enforced ABI compatibility checked with libabigail on Linux and golden manifests on macOS and WebAssembly.
- The JetBrains IDE terminals now run on libghostty, which the post cites as over 12.5 million recurring active users.
- The API uses opaque handles, enum-keyed getters and setters, size-tagged structs, and GHOSTTY_UNSUPPORTED returns so newer headers work with older builds.
- The library is MIT licensed, depends on permissively licensed simdutf, Google Highway, a Unicode table and Wuffs, and needs only libc by default.
- Tested platforms include Linux, macOS, iOS, FreeBSD, Windows, Android and WebAssembly, and a 10,000-terminal stress test ran on a 4-core, 8 GB Linux server.
- Ghostty's own release cycle is separate, and each release ships signed source and offline dependency tarballs plus packaging docs.
Discussion The thread is short and mostly positive. Commenters praise the project and its contributors, share their own libghostty-based work, and welcome a 1.0 from a project that is rarely called production-ready. The main side discussion is about language choice (the library is Zig exposed through a C ABI) and the lack of an official Windows build of Ghostty.
- Praise for the project and its contributors (most): Several commenters thank Mitchell Hashimoto and contributors and say libghostty has made their own terminal or tooling work much easier. One says they had not understood the vision a year ago but now find it useful.
- Welcome a 1.0 release from a well-known project (some): Commenters note that many projects stay in 0.x for years and say it is good to see a widely used project take on the responsibility of declaring production readiness.
- Downstream uses like Emacs and JetBrains stand out (some): Users point to ghostel for Emacs as far better than other Emacs terminal options, and note that JetBrains IDE terminals now use libghostty.
- Why C rather than Zig (a few): One commenter asks why the library exposes a C interface instead of Zig. Replies clarify that it is Zig code with a C ABI.
- Windows support is still missing (a few): One commenter notes there is still no Ghostty for Windows. A reply lists several third-party Windows ports, including Noctty, GhosttyWin3 and ghostty-windows.