v0.6.0
SSH Mode
This version introduces a new "SSH mode" to terminal-browser that allows you to access websites available on a remote machine, while running locally on your computer. Practically, this means if you have a dev server running on a remote machine somewhere, you can load the website on your computer by running terminal-browser --ssh user@host and entering the localhost url into the browser!
Previously, terminal-browser already worked over ssh if you simply ran terminal-browser while in an ssh shell. But, this had limitations:
- all frames of terminal-browser needed to be streamed over the network
- all user interactions needed to travel over the network before the website could react
- it missed out on some extra optimizations
With terminal-browser --ssh, the browser runs locally on your device. The only difference is all network requests are proxied over an SSH connection to the remote machine, and the result sent back to your device.
This release also includes SSH support for app mode. If you want to run an app built on top of terminal browser over ssh, you can pair the new --ssh flag with --ssh-bundle which copies a bundle over the ssh connection, and executes it. This lets programs run their backends on a remote machine, and frontends locally on the users device. A real example of this is terminal-code's --ssh option, where the vscode frontend runs locally, and the backend runs on the remote machine (so all the files being viewed come from the remote machine!)
Install:
curl -fsSL https://terminal-browser.sh/install | bashPinned to this version:
curl -fsSL https://terminal-browser.sh/install/v/v0.6.0 | bash