← All projectsReal-time web
CREATOR2023 — 2024

PeerPlay

Watch videos in sync with friends from anywhere.

Preview / PeerPlayOpen source

PeerPlay is a watch-party web app I built to watch videos with friends remotely. Play, pause, and seek events sync across everyone in the room alongside live chat and presence. It turned into a fun deep dive into handling flaky connections.

Try it outInteractive preview
You1:25
Friend1:25

Drag the slider to scrub both players together. In the real app, seek events sync over WebSockets.

01

Keeping playback in sync

When someone pauses or scrubs the video, that event has to reach everyone else without triggering an endless echo loop of socket updates. Keeping the controls responsive while handling network drift was the main engineering puzzle.

02

Chat and who’s in the room

Each room has live chat and shows who’s currently watching. Syncing the video is the technical bit, but chatting while watching is what actually makes it fun to use.

03

Open source

Both the Next.js frontend and the socket server are on GitHub. Building it also led to a longer write-up on real-time collaborative systems, state conflicts, and unreliable networks.

Built with
Next.jsTypeScriptWebSocketsReact Player
Next project

UseUI

An MCP server that lets AI agents inspect and control Mac apps and browsers safely.