Back to Requiem

Jam

Listening with friends from an invite link, kept within about 0.3 s, with no accounts.

You start a jam and send the invite link. Anyone in the jam can play, pause, seek, skip or change the queue, and volume is set per person.

The relay

No audio goes through the relay. It's a small Cloudflare Worker in server/worker.js that holds the shared queue and clock, and each member streams the same upload themselves.

An invite link has the form https://host/j/<room>#<secret>. The link opens Requiem through a landing page, and requiem:// links join directly.

Keeping clocks in sync

Each client pings the relay and works out a clock offset from every reply, as the server time minus the send time plus half the round trip.

It stores the last 10 samples and uses the one with the lowest round trip, because that sample has the least network delay in it. The relay's clock then provides the same reference for playback position to every member, and the app holds members within about 0.3 s of each other.