ghostty-webgpu
v0.1.2
Published
Ghostty for the web with a damage-aware WebGPU renderer and xterm-compatible API
Maintainers
Readme
ghostty-webgpu
an unofficial ghostty for the web, inspired by ghostty-web and powered by libghostty-vt
damage-aware rendering with webgpu, webgl2, and canvas2d fallbacks. byte-based pty traffic, automatic fitting, and live themes
still a preview. compatibility gaps and migration status
try it
npm install ghostty-webgpugive it somewhere to live
<div id="terminal" style="height: 32rem; width: 100%"></div>import { Terminal } from 'ghostty-webgpu'
const host = document.getElementById('terminal')
if (!host) throw new Error('missing terminal mount')
const terminal = await Terminal.create()
await terminal.open(host)
terminal.write('hello from ghostty\r\n')
terminal.focus()call terminal.dispose() when you're done with it
more
- pty wiring and the xterm-shaped api
- live demo, built from site/ with
bun run site:dev - optional native ghostty config
- replacement roadmap
