One of the first things I talked about with regards to Rex is the very different architecture compared to traditional multiplexers. I posted that video before we had any testers, and now we've had over 100,000 daily active testers proving the model works and is better. These diagrams* explain, but let me share more again.
One of the first questions I often get asked is: "How is Rex different from tmux/zellij/screen/whatever?" And starting at the lowest layers, it is fundamentally, architecturally different.
Tmux, zellij, screen all share the same underlying architectural design: a separation of terminal + transport + multiplexer, a screen diff based approach (render only the viewport to the user), etc. I believe this is an architectural dead end.
Rex on the other hand: merge terminal/transport/multiplexer (although, you can optionally use ssh as a transport) and ship the full pty stream to the clients and expect the clients to run full terminal emulators.
The diagrams attached explain best.
The obvious result is less resource usage across all dimensions. But, there are also feature differences that make this, I believe, the better architecture going forward. Examples:
- By shipping the full pty stream, the client can allow native scrolling, text selection, desynced scrolling (so different clients can be at different places), etc.
- Rex has full visibility into what you're doing across terminals, so we can do things like prioritize network traffic for the focused terminal in poor network conditions. Traditional architecture can't do this due to the separation (Note: this is all self-hosted, no data leaves your devices).
- Without the terminal nesting, we don't need to complicate keybindings with leader keys and prefixes and things like that. Cmd/Ctrl-T just makes a tab, as you'd expect. (Note: we support leader keys though, if you want!)
The ramificiations of this architectural difference will only continue to become more apparent over time. :)
*: I apologize, these diagrams were created with AI, but they're pretty simple and the information is more important than the admittedly shitty design and the information is directly mine.