Dev.to WebDev 🛠 Dev 👁 0 📖 2 min read

I built an open-source, self-hosted alternative to Riverside. Here's how it never loses a recording

Remote recording tools like Riverside record each person locally and upload the files. It's a good idea, but your recordings then live on someone else's servers. I wanted the same thing on my own machine, so I built Tapr

Remote recording tools like Riverside record each person locally and upload the files. It's a good idea, but your recordings then live on someone else's servers. I wanted the same thing on my own machine, so I built Tapry.

What it does

  • Guests join from a link in their browser
  • Each person is recorded on their own device at full quality
  • You get separate audio and video per person, a combined video and transcripts
  • It runs with Docker Compose on your own server

The interesting part: not losing recordings

The live call (LiveKit) is only for talking. The recording never comes from it.

  1. Record locally. MediaRecorder captures the camera and microphone in the browser.
  2. Buffer in IndexedDB. Every few seconds a chunk is written to disk in the browser, so a crashed tab loses nothing already written.
  3. Upload one object per chunk. Each chunk goes straight to S3-compatible storage with a signed URL. Uploads are idempotent, so retrying is always safe.
  4. Never delete before the server confirms. A chunk leaves the browser only after the server has it.
  5. Recover. If a guest drops, their device keeps recording. When they return, the leftover chunks upload and the files are made again.

A few decisions I'd defend:

  • Jobs in Postgres with FOR UPDATE SKIP LOCKED, not Redis. One less service to self-host.
  • One storage object per chunk, not multipart uploads. Simpler recovery.
  • Sync from clocks, not audio. Each device estimates the server's clock; in my tests two people stay within about 5 ms over an hour.

What it doesn't do

No editor, no live streaming, no mobile apps. It's tested in desktop Chrome, Firefox and Safari's engine with test devices, and not yet on real phones. That's the next thing I'm verifying.

Try it

git clone https://github.com/tapry/tapry
cd tapry/deploy/compose
./setup.sh localhost
docker compose up -d

Code and docs: https://github.com/tapry/tapry

I'd like to hear what breaks, and what you'd need before using it for real.

📰 Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.