
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
ghostty-web
Advanced tools
Ghostty for the web with xterm.js API compatibility — giving you a proper VT100 implementation in the browser.
@xterm/xterm → ghostty-webOriginally created for Mux (a desktop app for isolated, parallel agentic development), but designed to be used anywhere.
Live Demo on an ephemeral VM (thank you to Greg from disco.cloud for hosting).
On your computer:
npx @ghostty-web/demo@next
This starts a local HTTP server with a real shell on http://localhost:8080. Works best on Linux and macOS.
xterm.js is everywhere—VS Code, Hyper, countless web terminals. But it has fundamental issues:
| Issue | xterm.js | ghostty-web |
|---|---|---|
| Complex scripts (Devanagari, Arabic) | Rendering issues | ✓ Proper grapheme handling |
| XTPUSHSGR/XTPOPSGR | Not supported | ✓ Full support |
xterm.js reimplements terminal emulation in JavaScript. Every escape sequence, every edge case, every Unicode quirk—all hand-coded. Ghostty's emulator is the same battle-tested code that runs the native Ghostty app.
npm install ghostty-web
ghostty-web aims to be API-compatible with the xterm.js API.
import { init, Terminal } from 'ghostty-web';
await init();
const term = new Terminal({
fontSize: 14,
theme: {
background: '#1a1b26',
foreground: '#a9b1d6',
},
});
term.open(document.getElementById('terminal'));
term.onData((data) => websocket.send(data));
websocket.onmessage = (e) => term.write(e.data);
For a comprehensive client <-> server example, refer to the demo.
ghostty-web builds from Ghostty's source with a patch to expose additional functionality.
Requires Zig and Bun.
bun run build
Mitchell Hashimoto (author of Ghostty) has been working on libghostty which makes this all possible. The patches are very minimal thanks to the work the Ghostty team has done, and we expect them to get smaller.
This library will eventually consume a native Ghostty WASM distribution once available, and will continue to provide an xterm.js compatible API.
At Coder we're big fans of Ghostty, so kudos to that team for all the amazing work.
FAQs
Web-based terminal emulator using Ghostty's VT100 parser via WebAssembly
The npm package ghostty-web receives a total of 92,213 weekly downloads. As such, ghostty-web popularity was classified as popular.
We found that ghostty-web demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.