Repolode
coder

coder/ghostty-web

A browser terminal emulator built on Ghostty's WASM-compiled VT parser, with an xterm.js-compatible API.

Estrelas
2,980
Forks
186
Issues abertas
69
Último commit
há 4 dias

O que é?

ghostty-web brings Ghostty's terminal emulator to the browser as an npm package. The parser is compiled to WebAssembly from Ghostty's own source, so it is the same VT100 implementation used by the native Ghostty app, rather than a JavaScript reimplementation.

The library aims to be API-compatible with xterm.js, so existing projects can switch by changing the import from `@xterm/xterm` to `ghostty-web`. It has no runtime dependencies and ships a WASM bundle of roughly 400KB. The README notes better handling of complex scripts such as Devanagari and Arabic, and support for XTPUSHSGR/XTPOPSGR, which xterm.js does not implement.

The project was created for Mux, a desktop app for parallel agentic development, and is designed for general use. An npx demo starts a local shell served on a loopback address, protected by a per-run token.

Recursos principais

  • 01Parser compiled to WebAssembly from Ghostty's source code
  • 02xterm.js-compatible API for easy migration
  • 03Zero runtime dependencies and a WASM bundle of about 400KB
  • 04Proper grapheme handling for complex scripts
  • 05Supports XTPUSHSGR/XTPOPSGR escape sequences

Casos de uso

  • Replacing xterm.js in a web-based terminal or IDE panel
  • Building browser-based shells that connect to a server over WebSocket
  • Embedding a terminal in a desktop app built with web technologies
  • Rendering terminal output with complex non-Latin scripts

Tópicos

Perguntas frequentes

O que é ghostty-web?
A browser terminal emulator built on Ghostty's WASM-compiled VT parser, with an xterm.js-compatible API. ghostty-web brings Ghostty's terminal emulator to the browser as an npm package. The parser is compiled to WebAssembly from Ghostty's own source, so it is the same VT100 implementation used by the native Ghostty app, rather than a JavaScript reimplementation.
ghostty-web é gratuito? Qual é a licença?
ghostty-web é open source sob a licença MIT. Confira os termos da licença antes de usá-lo em produtos comerciais.
ghostty-web ainda é mantido?
Manutenção ativa. O último commit de ghostty-web foi em 15 de out. de 2026.
Para que posso usar ghostty-web?
Replacing xterm.js in a web-based terminal or IDE panel Building browser-based shells that connect to a server over WebSocket Embedding a terminal in a desktop app built with web technologies Rendering terminal output with complex non-Latin scripts
Onde consigo ghostty-web?
O código-fonte e as instruções de instalação estão no GitHub: https://github.com/coder/ghostty-web

Resumo gerado por IA a partir do README do projeto. As estatísticas do GitHub são atualizadas diariamente.

Projetos relacionados