hn.today

SSH is a GUI framework

zydra.sh6 points0 comments
Screenshot of SSH is a GUI framework

SSH can function as a cross-platform graphics and interaction layer, not merely a way to access command lines. The piece demonstrates this with zydra.sh, a desktop environment running inside a microVM and rendered entirely through an SSH session, which can be tried without signing up. Its interface combines terminal protocols: Kitty Graphics Protocol, with older Sixel and iTerm2 alternatives, displays images and animation; OSC protocols provide notifications and clipboard sharing; mouse escape sequences support pointer input; and synchronized output reduces flicker. Kitty also enables file uploads, letting users transfer projects to their VMs. Together, these features make a remote desktop possible without a conventional web browser or VNC client.

The key engineering challenge is making the experience responsive and compatible. The compositor sends text as text, layers it over graphics, and transmits only changed regions rather than full frames. It also reduces transparency and adjusts resolution in response to network conditions, while reusing graphics stored by the terminal. It detects client capabilities and falls back to older protocols or text-only rendering. The author argues this approach can outperform VNC, because applications report changes directly and text remains selectable, while SSH offers convenient authentication, access from pure terminals, and filesystem mounting through sshfs. Limitations remain: SSH can be awkward on Android, audio support is weak, and graphics streaming could be more efficient. A web-based mobile option addresses some access issues.

Read on zydra.sh0 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Web

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.