Ghostty-web exists and is even API compatible with xterm.js (same engine that powers Ghostty):
https://github.com/coder/ghostty-web/
In fact, it looks like wterm's 12KB plugin doesnt offer full term emulation and uses ghostty to support everything else:
https://wterm.dev/ghostty
This seems like a useful discussion of the relationship between wterm and xtermjs:
https://github.com/agent-of-empires/agent-of-empires/issues/...