Libghostty 1.0: stable C library for terminal emulation extracted from Ghostty
Libghostty 1.0 is out: a portable, high-performance C library for terminal emulation extracted directly from the core of Ghostty, with both the library and its C ABI[1] now stable. A year ago only the Zig module had been merged and no C API existed; today the C API is a complete terminal emulator running in production for millions of people across hundreds of free and commercial products. The terminal in JetBrains IDEs now runs on libghostty, which a JetBrains report puts at over 12.5 million active users, and Neovim has an approved pull request replacing libvterm with libghostty-vt, closing a 10-year-old issue about reflowing scrollback on resize; maintainers were waiting for a tagged release so distributions could package the dependency separately. Other users include KDE developers experimenting with a Konsole replacement, Vercel's Turborepo, devenv, Antithesis, which used it for fuzzing[2] TUI[3] programs and found real bugs in btop, Ghostel for Emacs, the WASM[4] build ghostty-web, OrbStack, and new terminals and agentic coding tools such as herdr and cmux. There are community bindings for Rust, Go, JavaScript, Swift, Python, .NET, Elixir, Dart, Java, and more, and the awesome-libghostty list tracks well over a hundred projects.
Every object is an opaque handle, values are read and written through a small set of enum-keyed getters and setters, and programs with newer headers linked against an older library get GHOSTTY_UNSUPPORTED results instead of crashes. CI enforces the ABI policy with libabigail against a committed baseline on Linux and golden type manifests on macOS and WebAssembly, and on ELF platforms every exported symbol is versioned so the dynamic loader refuses mismatched libraries. The release adds signed source tarballs, a companion dependencies tarball that allows fully offline builds, pkg-config and CMake files, and machine-readable licensing manifests; the library is MIT licensed, needs nothing beyond libc at runtime, and has no copyleft code anywhere in its dependency tree.
Tested platforms receive per-platform artifacts: an XCFramework for macOS, iOS and the iOS simulator, a Windows DLL whose import library MSVC programs can link against, Android builds with the 16 KB page size support required by Android 15+, and two WebAssembly flavors, the smaller one under a megabyte with every feature enabled. The library creates no threads and allocates only through a customizable allocator, and the author ran 10,000 active terminals, each with a live shell producing output, on a Linux server with 4 cores and 8 GB of RAM.
Read the original mitchellh.comDiscussion
Discussion
Commenters largely praise the release, with several saying they built their own terminals and tools on libghostty, including a terminal for Emacs and Android experiments. One commenter asks how it compares to libvte, the GTK-tied library behind many thin terminal wrappers, and another highlights inline images via the Kitty graphics protocol and OSC-8 hyperlinks. A popular comment notes that Mitchell Hashimoto resisted promoting his own competing terminal product, Rex.
Sources
-
mitchellh.com
Ghostty Terminal's libghostty reached 1.0, and is now ABI stable
OriginalDiscussion · 181Discussion · 17Discussion · 16Discussion · 13Discussion · 7


