Number 19

MacStream

Use my Mac from an iPad, or any browser, with video-call delay. Nothing to install on the iPad; it's just a web page.

ShippedSoftware2026
Frame rate
60fps
Top bitrate
30Mbps
Fallback bitrate
3Mbps
Permissions needed
2
Role
Sole developer. Wrote the Go streaming engine, the Swift capture helper and menu bar app, the iPad web page, and the installer.
Built with
  • Go
  • Swift
  • WebRTC
  • ScreenCaptureKit
  • VideoToolbox
  • Tailscale
Started
Oct 2026
Finished
Oct 2026

Story

I wanted to use my Mac from the couch with an iPad, without the lag of the usual screen-sharing apps. Video calls already solve low-delay video, so MacStream borrows their approach: hardware-encode the screen and send it over WebRTC.

On the iPad it’s a web page you add to the home screen. On the Mac it’s a small menu bar app that starts at login, shows when someone is connected, and can pause remote access with one click.

How it works

Mac: ScreenCaptureKit → VideoToolbox H.264 → WebRTC ══ end-to-end encrypted ══▶ Safari <video>
     real mouse and keyboard (CGEvent)  ◀═══ WebRTC data channels ═══ touch layer + key bar
  • Capture (Swift): ScreenCaptureKit grabs the screen and VideoToolbox encodes it to H.264 with a low-latency setting.
  • Engine (Go): serves the page, handles the handshake and PIN, sends the video over WebRTC, and turns taps and keys from the iPad into real mouse and keyboard events.
  • Page: plays the stream with the iPad’s hardware decoder. A key bar along the bottom has the keys an iPad lacks (esc, ⌘, ⌥, arrows) and shortcuts for Android Studio.

Every device needs the PIN before it can see or control the Mac. Away from home it connects through Tailscale, with a slower 30 fps fallback that works on any network. You set a top bitrate between 4 and 30 Mbps, and it adapts below that on its own.

The page also has clock.html, a stopwatch for measuring the real delay: photograph the Mac and the iPad side by side and subtract.

Devlog

  1. MacStream 1.0

    My Mac on the iPad, over WebRTC, with a PIN and a key bar. Version 1.0 is out as a DMG.