Screen sharing between computers, phones and TVs from the browser. No account, no subscription.
Node.js
WebRTC
WebSocket
WebCodecs
ADB · scrcpy
UxPlay
mac-demo.local · Mirror Cast
Why
Screen mirroring apps charge for the number of devices, USB, AirPlay, remote casting and phone control. I wanted all of that with no account, no subscription and no limits, so I built it.
What it does
One computer receives with a 6-digit code and a QR code. Other devices cast their screen, a window, a tab or the camera, with two-way audio. Several senders at once in a grid, full-screen TV mode, Android mirroring and control, an AirPlay receiver, recording and screenshots.
Architecture
Node.js with no framework and only 3 dependencies (ws, qrcode, selfsigned). Audio and video travel peer-to-peer over WebRTC, encrypted with DTLS-SRTP. The server only does signaling over WebSocket: rooms by code and an optional password, in about 130 lines. It runs on HTTPS with a local certificate, because screen capture requires it.
Android and AirPlay
For Android I use ADB and the scrcpy protocol: the phone encodes H.264, the server forwards the packets and the browser decodes them with WebCodecs. Taps, swipes and typing go back to the phone on the control channel. AirPlay runs through UxPlay, an open source project started from the UI.
From another network
A free Cloudflare tunnel creates a temporary public link. It relies on public STUN servers, and a TURN server can be configured.
Security
The receiver asks for confirmation for every new cast and can set a password. Phone control, AirPlay and the tunnel only answer from the host computer: from the network or the tunnel they return 403 and Android WebSockets are closed.
Tests and limits
About 3,400 lines and 14 passing tests, including the Android protocol checked byte by byte. iPhone control is missing, because it would need a native app. Android mirroring and AirPlay were tested with simulated devices, not yet on a real phone. IP and hostname in the screenshots are fake.