it is annoying how poorly web browsers support the local or ssh tunneled application use case though. it would be nice if there was a way to get browsers to work more like X servers, presenting an unix socket that applications (either local or ssh-tunneled) could connect to. Or something along those lines.
Basically wireguard + Apache httpd with cgi-bin or websockets?
I've actually recently shipped something along these lines, now supported on all platforms. It's an SSH client fused with a browser: https://probablymarcus.com/blocks/2026/11/20/ssh-tunneling-h...