Libghostty 1.0 released as a terminal library with a stable C ABI
Mitchell Hashimoto released libghostty 1.0, a C-ABI library extracted from the Ghostty terminal emulator so that other terminals and "agentic" programming tools can build directly on it instead of implementing an emulator themselves. The author says its design referred from the start to C libraries he liked, with the goal of a strong and stable ABI; the specific practices mentioned include representing objects with opaque handles and using enum-keyed getters/setters. The text names herdr, cmux and a group of new terminals and agentic programming tools as already built on it.
libghostty is a portable C library extracted from the core of the Ghostty terminal emulator, offering terminal emulation, font handling and rendering, with the goal of letting other applications embed the terminal core directly instead of rewriting an emulator themselves. Zhidaily's October 28 daily report noted that the Ghostty 1.4 release notes, beyond GUI improvements, highlighted progress on libghostty since 1.3, with author mitchellh saying a reusable lightweight terminal emulation core is more valuable than any single GUI application. What is different about this 1.0 is that both the library itself and the C ABI are declared stable.
For projects planning to integrate terminal capabilities, libghostty 1.0 offers a ready-made option whose selling point is a stable C ABI, avoiding reimplementing an emulator; but the stable ABI promise also means callers need to follow the library's interface conventions, accessing through opaque handles and enum keys rather than relying on internal structures.
One commenter noticed that when listing projects built on libghostty, Hashimoto did not also mention his own competitor Rex, and considered that worthy of respect. Another developer, currently writing an interpreter in Zig, said the designs described in the text such as "opaque handles" and "enum-keyed getters/setters" made him realise his current C interface leaks too many implementation details and looks clumsy. Users also shared hands-on experience: one has used Ghostty for a long time and once tried using libghostty in an Android project; another said that after switching to kitty they found its rendering and animation better, but still regarded Ghostty's performance in complex TUI programs such as the pi agent and in Kitty graphics protocol inline images as an advantage.