Here is an implementation you might like
https://github.com/artpar/terminal-tunnel
P2P with webrtc (pion ftw) with e2ee
client side is webui so you can use on any device
ps: the default Cloudflare Worker from my account is already maxed out so you will need your own exchange (self host on your account)