Systems · Rust
streammm
Streams my screen to any browser with about half a second of delay, remote control included.
~0.45 s
behind live in the viewer’s browser
My role
When
What it is
streammm streams my screen to anyone’s browser with about half a second of delay. People I trust can also control my computer from their browser, and so can an AI.
Why I built it
Normal tunnels buffer video until the connection closes, so nothing ever shows up live. I wanted every chunk of video sent the moment it’s encoded, to as many viewers as I want.
How I built it
A Rust program encodes my screen to H.264 and pushes it over a WebSocket. A Cloudflare Worker takes that single upload and fans it out to every viewer, who joins with a 6-digit PIN. Remote control is the same path in reverse: the browser sends mouse and keyboard events back.
What it can do.
One upload, many viewers
My machine sends the stream once and Cloudflare copies it to everyone watching, so more viewers don’t slow my computer down.
An AI can drive it
It can send a screenshot to a vision model and carry out whatever actions the model returns. It’s off unless I turn it on.
It moves files too
Trusted viewers can send files up to 2 GB and share the clipboard.
Technical details.
- Video
- 30 fps H.264, fragmented MP4 over WebSocket
- Bitrate
- 20 Mbps by default, up to 50 Mbps
- Fan-out
- Cloudflare Worker and Durable Object
- Access
- 6-digit PIN, good for about 5 minutes
- Control
- remote and AI control, both off by default
- Tested
- 16 viewers on a 1080p 30 fps stream
What I used
- Rust
- ffmpeg
- WebSocket
- Cloudflare Workers
- Durable Objects