ghostty-web brings Ghostty's VT100 terminal emulator to the browser via WebAssembly, offering an xterm.js-compatible API. Unlike xterm.js which reimplements terminal emulation in JavaScript, ghostty-web uses the same WASM-compiled parser from the native Ghostty app, providing proper support for RTL languages, complex scripts, and advanced escape sequences that xterm.js struggles with. The library is designed as a drop-in replacement requiring only an import change, ships with zero runtime dependencies in a ~400KB bundle, and aims to eventually consume official Ghostty WASM distributions.
1 Comment
Sort: