Watch Netflix, Disney+, Prime Video and more together on every Mac.
A Mac app (Apple silicon) for watching streaming services together across Macs, like Teleparty but yours. Each Mac runs the app, signs in to the service inside it, and joins the same party. Play, pause, seek and choosing a title on one Mac happen on all of them, with a chat, GIFs and reactions alongside.
Works with Netflix, Disney+, Prime Video, HBO Max, Apple TV+, YouTube, BBC iPlayer, Crunchyroll, Paramount+ and Hulu. CouchSync opens on Home, a TV-style launcher with a tile for each service (arrow keys and Return work like a remote); switch any time with the service menu in the toolbar or ⇧⌘H for Home. Everyone needs their own subscription to whatever you're watching, and some services are only available in some countries.
./build.sh
Needs the Xcode Command Line Tools and Rust (install it from https://rustup.rs),
which builds the networking library in net/. Produces build/CouchSync.app.
To turn on GIFs for everyone who gets this build, include a free GIPHY API key (create an app at https://developers.giphy.com and choose API):
GIPHY_API_KEY=yourkey ./build.sh # or put the key in giphy-key.txt
Without one, the GIF browser asks for a key the first time it's opened.
To share CouchSync, send https://henrybeedham.github.io/couchsync/. It's a
download page (in docs/, served by GitHub Pages) whose link preview shows the
CouchSync card, and its button always fetches the newest release. GitHub's own
release links always show GitHub's generic card instead.
Releases are on the Releases
page. They're made automatically: every push to main that changes the app
builds it on GitHub and publishes the next patch version (1.0.1, 1.0.2, …).
Pushes that only change Markdown files or docs/ don't make a release.
To choose the version yourself (say 1.1 or 2.0), open Actions → Release →
Run workflow on GitHub, or run ./release.sh 1.1 on your Mac.
For GIFs to work out of the box, add your GIPHY key as a repository secret
named GIPHY_API_KEY (Settings → Secrets and variables → Actions). Anyone who
downloads a release can extract the key from the app.
- Open CouchSync on every Mac, pick a service on Home and sign in.
- On one Mac: Party → Host a party.
- The host sends their invite code (Party shows it, with a Copy button). Every party gets a new code, and it stops working when the party ends. On the others: Party, paste the code into the box and Join. It works from any network, with no Tailscale or port forwarding. Parties you've joined before are under Recent. On a shared tailnet you can also pick the host from the list (marked Hosting when a party is running), or type a Tailscale name or IP.
- Start a title on any Mac. Everyone else's CouchSync opens the same title, on the same service, and keeps it in step. If a service opens the title's page without starting it, CouchSync asks you to press play.
- If someone gets a YouTube ad, or their video stalls loading for more than a moment, everyone pauses and waits for them ("Waiting for Sam's ad to finish"), then plays again together. Press play to go without them.
When you click into a sign-in box, a Fill from Passwords button appears at the top of the page (or use Edit → Fill from Passwords, ⌥⌘P). It opens Apple's Passwords picker; choose a login and it goes straight into the page. On sites that ask for your email first (Google, say), choose Fill from Passwords again when the password box appears; CouchSync holds the password for up to two minutes, for that site only, so it fills straight away. If Passwords only hands over the password, type your email, continue, and choose Fill from Passwords on the password step. It won't fill pages that aren't https.
Passkeys don't work in CouchSync. macOS only lets web pages in Apple-approved browsers use passkeys, which an app like this can't be. So CouchSync tells sites it has no passkey support, and they offer a password or a code instead. If a site (Google, say) still asks for a passkey, choose Try another way and sign in with your password.
Passwords can't fill boxes inside another app's web pages, only native ones, so CouchSync keeps an invisible pair of native fields for the picker to fill and passes the login to the page straight away. They can't be clicked or typed into, and they're cleared as soon as the login is handed over.
- Tested end to end with two copies: Netflix, YouTube and BBC iPlayer. Play, pause, seeking, joining late, following the party to a title and fullscreen all work. On YouTube, moving on to the next video takes the party with it, and ads are waited out (each viewer catches up when their ad ends).
- Not yet tested with a subscription: Disney+, Prime Video, HBO Max, Apple TV+, Crunchyroll, Paramount+ and Hulu. Their sites load in CouchSync, and they're followed through the page's video the same way, but one may need adjusting if it handles its player differently. Ads on their ad-supported plans aren't detected, so they can put viewers out of step until the next correction. Outside the US, hulu.com sends you to Disney+.
The sidebar on the right (⇧⌘C to show or hide) has the party's chat:
- messages, with a GIF button that opens a GIPHY search;
- hover a message to react to it, and click a reaction to add or remove yours;
- the emoji row above the message box sends a reaction floating up over everyone's video;
- play, pause, seek, joins and leaves are noted in the chat, as in Teleparty.
Someone who joins late gets the chat so far.
The player's fullscreen button, its f key and the green traffic light all do
the same thing: the window goes fullscreen with the chat still beside the video.
Esc leaves. The toolbar shows when the mouse reaches the top of the screen.
- Parties you join are remembered under Recent. Hover one and click × to forget it.
- If the connection drops, CouchSync keeps trying to get back in for about a minute, so a host restarting their app doesn't end the party.
- Quit while in a party and CouchSync picks up again on the next launch, either rejoining or hosting again. Leaving or ending the party stops that.
CouchSync checks GitHub for a new release when it opens and every six hours. New versions download in the background and install when you quit, or straight away with Restart to Update in the toolbar. You never get restarted in the middle of a film, and if you were in a party you rejoin it when CouchSync reopens. CouchSync → Check for Updates… checks now; turn automatic installs off in CouchSync → Settings, and you'll be asked instead.
Updates are checked against the SHA-256 that GitHub publishes for the download, must have the same bundle ID and a valid signature, and are swapped in only once CouchSync has quit. If the swap fails, the old app is put back.
The party uses TCP port 47800, directly between the Macs. There is no server.
The app is signed ad hoc, so a copy that arrives by AirDrop or a download is blocked by Gatekeeper. Either build it on that Mac, or clear the flag once:
xattr -dr com.apple.quarantine CouchSync.app
Services.swift: the streaming services: how to find the title in a page address and how to open a title. A peer can only ever send you to a watch page built here from a checked title ID.SyncScript.swift: JavaScript injected into the page and the services' player frames. Watches the<video>, reports changes, applies the party's state. On Netflix and YouTube it drives their own player objects (writingvideo.currentTimecrashes Netflix's). It also stands in for the page's fullscreen API so fullscreen means the window.PartySession.swift: the party. One Mac hosts and relays; every change carries a sequence number; the host sends its position every 2 s so the others can correct drift over 2.5 s. Also reconnection and remembered parties.Chat.swift,ChatPanel.swift,ReactionOverlay.swift: chat, reactions.Giphy.swift: GIF search, and a GIF view that animates.WebController.swift: the web view, the bridge to the script, fullscreen.Updater.swift,UpdatePanel.swift: update checks, download and install.WebCryptoKey.swift: gives WebKit its own key for data the page encrypts, so it doesn't use the keychain (which would ask for your password after every update, since each build has a new ad-hoc signature).Launcher.swift,IconStore.swift: the Home screen. The services' icons aren't bundled: like a browser, CouchSync reads them from the icons each service's site lists (on its home page, or on pages you open) and caches them in Application Support.PasswordFill.swift: Fill from Passwords.Tailscale.swift: reads the tailnet from the Tailscale CLI for the join list.Iroh.swift,net/(Rust): joining by invite code. Each party gets a fresh iroh endpoint with a new random key, and its id is the invite code, so the code dies with the party. iroh finds the host through n0's discovery service, connects directly through both routers when it can, and falls back to n0's free public relays when it can't. Either way the connection is end-to-end encrypted.Link.swiftruns the same messages over TCP (Tailscale, same network) or iroh.
Set COUCHSYNC_VERBOSE=1 to log sync activity to stderr. App.swift lists the
other environment overrides used for testing.