Native Swift screen streaming, keyboard & mouse control, and lossless remote terminal — powered by an open, reusable Cloudflare Edge + self-hosted ECS hybrid relay.
Zero-copy ScreenCaptureKit + VideoToolbox H.264/HEVC encoding with live quality & FPS switching, paired with low-latency CGEvent mouse & keyboard control.
Dedicated WebRTC DataChannel bridging native SwiftTerm to a real remote PTY shell. Zero video blur, instant keystroke echo, minimal bandwidth.
Every Mac is both Controller and Host by default. Designate an Admin Device to govern screen, input, terminal, and port-forwarding permissions across your fleet.
P2P hole-punching first. Falls back automatically to Cloudflare Realtime TURN globally or your own Aliyun ECS coturn nodes in Mainland China.
@yygo/relay is completely decoupled from the macOS app. Deploy your own signaling + hybrid TURN cluster on Cloudflare Workers + Durable Objects in 3 minutes — and plug in Aliyun ECS coturn nodes anytime.
cd relay && pnpm install && pnpm deploy
wrangler secret put CF_TURN_KEY_ID
wrangler secret put CF_TURN_API_TOKEN
# Optional: attach Aliyun ECS coturn nodes in China
wrangler secret put EXTRA_TURN_NODES