How-to guides
Small recipes for changing the shipped proof.
Render your OpenTUI application
Edit container/server.ts. The callback passed to .serve() receives a renderer already bound to the SSH channel. Add core renderables or adopt it with OpenTUI React or Solid.
Restrict SSH keys
createServer({
auth: {
publicKey: { authorizedKeys: '/app/authorized_keys' }
}
}) Run the complete loop locally
git clone https://github.com/acoyfellow/tuiport
cd tuiport && bun install
bun run local
# in another terminal
ssh -p 2222 localhostbun run local builds and runs the same container image used by Cloudflare. Docker is required.
Change the hostname
The web/docs hostname is a Worker custom domain. The SSH hostname is a Spectrum application; it can be the same DNS name because HTTPS and SSH use different ports.