It doesn't. What's good about SSH is that it doesn't do any interpreting of the bytes sent on its own, so we're free to build our own protocols for accessibility over time, and it'll be part of the evolution of Zydra depending on how far it goes. We only have reduced motion for now on SSH, unfortunately, though our webapp streaming elements as HTML helps on that front too.
Kitty's graphics protocol isn't being "abused" to render graphics, that's kind of its entire use case, but I get your point.
I could make an ultra-complete, elegant client that uses RDP, or tunnel RDP over SSH as you said, but in practice I've found SSH with optimizations fast enough to practically use. The point was proving that it's actually accessible to a large number of people and surprisingly capable, not demonstrating that SSH is the perfect UI framework sent down from the heavens.
I treat the desktop like a "multiplexer-on-steroids" with a microVM and graphics built in behind the scenes to turbocharge it. I don't run my multiplexers on RDP.
Also, we're not making UI primitives from scratch, we have a custom Wayland compositor built upon Smithay, so any Wayland app works on SSH (XWayland is also automatically included, and WebKit has a custom implementation that bypasses display servers via DMABUFs).
Very cool project! I got absorbed in NetHack for a bit haha. I'm really excited for a time where SSH-based frameworks make it increasingly doable to build hosted "applets" like this.
Indexed PNGs are really clever for DOS, cool optimization :) I'm intrigued by whether it's possible to create a set of optimized Kitty graphics adapters as a library, that would open the door for a lot more people to build graphical SSH apps.
And thanks, flattered that you found my optimization work impressive. A lot of it was necessary to get a smooth enough experience over SSH for VMs when rendering a full GUI.
I'm not necessarily saying SSH wins on a raw codec benchmark against wayvnc (I'd be glad to test it though, and I am working on a faster native client).
It's that the whole workflow has been built around SSH. I haven't just bolted a VM's "display_1920x1080" onto a Kitty stream and called it a day. Here I have a microVM that in and of itself renders natively to SSH, bringing with that SSH's key auth, and a universal client you can run on any terminal (with a text-only fallback).
Put simply, I don't enjoy remotely streaming a clunky desktop display, even if it's technically "fast". SSH feels at home, and that's why I built desktop VM infra on it natively.
I mean, one could argue that the web is just a remotely accessible hypertext protocol we've been increasingly abusing to make whatever arbitrary GUIs we want.
I've always wanted a styling-independent protocol, which led me to the Gemini protocol (not the AI) for one, although I find that all such "next-generation" protocols don't see much traction.
I picked SSH as a convenient option that people already use to log into VMs.
"Worse-is-better" is really perceptive. Using SSH as a GUI is admittedly a dirty solution, but I find it practical. See, if I tried to build a cross-platform app supporting X11, Wayland, Windows, and macOS, then I'd really be making a GUI framework, and if I tried to abstract all of those universally, well, I'd still be making a GUI framework. Thus the case for SSH presents itself.
That said, current terminals definitely have rough edges. Being somewhat "dumb" clients keeps the attack surface smaller, but it's also quite limiting. To address this (while keeping standard terminals working), I've been working internally on a prototype terminal client to hopefully get things smoother, which I'll share updates when it's ready, along with any open-source projects that come out of the infrastructure it needs.
I heard of Superlogical whilst initially working on Zydra, though I somehow missed the release of Rex, it's definitely something I'll have to look into.
It's a fun experiment but I would never do this. You lose all the magic of "just ssh hostname" when you only work properly with a few terminal emulators. Rolling your own terminal emulator is an extra step in the wrong direction.
On the flip side, cross-platform GUI frameworks already exist. HTML+CSS are really great, with everything you need and more built-in already, and none of the jank running in a 1970s-based terminal brings. If you want reduced attack surface I would say it makes more sense building (or forking) a browser engine with just the features you need, keeping compatibility with other browsers so nobody is forced to use yours.
Kitty is only the first-class option; Sixel and iTerm2 are available, and even in text-only terminals (or a TTY), we stream the entire GUI as ASCII (like a TUI), and you still get the other features. "Just ssh hostname" remains.
And we actually do have a webapp too, and it's alright, but I prefer SSH. To me, the project is more of a "multiplexer-on-steroids" with a built-in microVM to hold its apps and graphics, rather than a simple remote desktop. You wouldn't run a multiplexer over the browser just because it technically has everything built-in.
In the case of VNC/other protocols, there is an asymmetry: if you embed text in VNC, it still has to be streamed as graphics, whereas if you embed graphics in SSH, you can still stream text as actual text.
Fun fact: Our webapp does stream many elements as HTML (including even Wayland apps) rather than just streaming them using a codec.
That's a fair concern. Any escape-sequence parser can have unknown vulnerabilities, and terminals don't have browser-grade sandboxing. Still, it's quite a different, much smaller attack surface than a browser downloading and running untrusted client-side code (JS, WASM), and a much easier one to harden over time.
I do really like x11 forwarding, but unless you're on Linux, you'd need to download an X server, so I thought this would be interesting as something anyone could try from almost any machine.
Braille is really interesting as something more universal. Cool project.
It's true, SSH is just the tool of choice to move bytes around, and it's up to your terminal emulator and the server to decide what those bytes mean. In practice, SSH gives you encryption, key auth, and a way past restrictive firewalls (we listen on port 443 for this exact reason).
reply