SameMoon

Two-person watch rooms

A movie for two.Miles apart.

Pick the same film on two computers. Pause for a cup of tea, skip back a scene, and pick up together. Invite your partner with a four-digit room code.

Playback demoShared timeline
Viewer A00:38
Viewer B00:38

Architecture

Where’s the film?

We both have itEach browser plays its own copy. Play, pause, seek and speed changes travel between viewers.
Browser ⇄ WebSocket ⇄ Browser

Fastify matches the filenames and byte sizes. Each player opens its local file and the sync engine uses timed peer messages to correct drift.

Only I have itOffer the file to your partner. Compatible formats can start playing while the rest arrives.
File → DataChannel → Player

The room relays WebRTC signaling. The browser sends the bytes over the negotiated connection, with TURN relay support when configured. Other containers finish transferring before playback.

Share my screenChoose a window or screen on your desktop. Your partner watches the live stream.
Screen → MediaStream → Viewer

The sharing browser captures the selected surface with your permission. The receiving player follows the stream. Available audio sources depend on your browser and operating system.

Sync lab

When two clocks disagree.

Compare two revisions on the same simulated network. Each trace follows the difference between the two playback positions after an imposed offset. Select a case to inspect its recovery.

Time to settle · before → after

36.1 s → 2.1 s

Overshoot · before → after

849.75 ms → 8.527 ms

Follower minus leader (ms)

backup1126refactor/1126
All measurements and definitions
Both revisions, fixed offline fixtures. Time in seconds, overshoot in milliseconds.
CaseSettle beforeSettle afterOvershoot beforeOvershoot after
Heartbeat blackout36.1 s2.1 s849.75 ms8.527 ms
Ahead at 1.5×Unsettled6.8 s4,175.148 ms0 ms
Behind at 0.75×Unsettled9.4 s2,838.879 ms0 ms
Normal speed at 1×8.1 s8.1 s0 ms0 ms
Large initial gap0.1 s0.1 s8.497 ms8.497 ms
Already within tolerance0 s0 s0 ms0 ms

Settling starts at the first sample inside ±300 ms that stays inside through the 60-second finish, with at least 5 seconds left. Overshoot is the largest excursion across zero, opposite the initial error. The shaded band marks ±300 ms. Each trace uses every 100 ms sample. Each case has its own symmetric vertical scale.

A separate asymmetric-network stress profile settled 0/4 cases before and 2/4 after. Long blackout and near-threshold failures remained. Stress traces. No live browser, decoder, WAN or TURN measurements are included in this simulation. Baseline JSON · Candidate JSON · Engineering report ↗

Self-host

Your own screening room.

Clone the repository and run this command inside it with Docker Compose. Open localhost:3000 in two separate browser sessions.

docker compose -f compose.local.yml up --build