Here are the three most prevalent themes from the Hacker News discussion:
1. Significant Interest in Browser-Based Terminal Capabilities and Demos
The core of the discussion revolves around deploying and interacting with Ghostty via WebAssembly (WASM) in a browser environment. Users are actively seeking and creating hosted demos to try the technology without local setup.
- Supporting Quote: Regarding the difficulty of getting a full shell experience online, Kyle stated, "It's tricky to do without a compute environment. We can easily make a browser shell that let's people run basic commands, but presumably most want to try
vimand other commands they'd typically invoke." - Supporting Quote: This was resolved by community effort: "Here's v86 running in your browser with ghostty-web: https://bow-wrinkle-13326.ondis.co/" (gregsadetsky).
2. Performance Optimization and Comparison with xterm.js
A major technical tangent explores the performance characteristics of Ghostty-Web compared to the incumbent, xterm.js. Key areas of scrutiny include rendering speed and the adoption of high-performance APIs.
- Supporting Quote: Mitchellh questioned the current state: "I'm guessing that performance of this relative to xterm right now isn't... the best, mainly because the way you're grabbing the viewport seems expensive. I'm curious though if you did any benchmarks?"
- Supporting Quote: The author acknowledged this initial focus: "We spent little time on performance so far, this is more of a POC that will hopefully become a drop-in replacement for xterm.js over time." (kylecarbs). Mitchellh then suggested using the "RenderState API" for better results.
3. Integration into Existing Web/Editor Ecosystems
Users are keenly interested in using Ghostty Web as a drop-in replacement for terminals within existing applications, particularly IDEs and web-based coding environments like VS Code server installations.
- Supporting Quote: VikingCoder asked directly about integration: "So, could someone now make a Visual Studio Code (and specifically code-server) that has ghostty-web as the Terminal?"
- Supporting Quote: The author confirmed this was the intention: "Yup, that's the idea!" (kylecarbs). Separately, thoughtfulchris noted success integrating it into their own project: "I got ghostty-web working with this and it is great."