DEV Community

Awais Amjed
Awais Amjed

Posted on

I built a self-hosted, open source Discord alternative

Hi DEV! I've been building Rift for a while: an open source, self-hostable alternative to Discord.

Why I built it

When Discord announced the age verification changes (around 8–9 months ago), I went looking for a self-hostable alternative, and I couldn't find anything that came close in features. It was either P2P streaming, no group chats, or streaming and watching done on the CPU instead of the GPU, which loses frames, and so on. I've been building Rift since then, and I think it's now ready for everyone to try.

Notable features

  • End-to-end encrypted: messages, files, voice notes and calls are encrypted and signed on your device. The server only stores ciphertext and never holds a key that opens it, including for the person who runs it.
  • Easy to self-host: a Docker Compose stack (Postgres via Supabase, LiveKit for calls). A setup page generates every secret and gives you the first invite link. It's basically 2 commands to install, and 1 click for each update after that. A small VPS with ~4 GB RAM is enough to start.
  • Screen sharing built for games: encoding (streaming) and decoding (watching) are done fully on your GPU (NVENC, AMF, VAAPI/Quick Sync) in H264 or H265, up to 4K, or 120 fps at 1440p, with the game's sound.
  • Voice: noise suppression runs locally, up to the DPDFNet neural model. Push-to-talk and global mute/deafen keys work while a game has focus.
  • Everything else: bots in TypeScript or Rust, webhooks, roles and per-channel permissions, polls, pins, a soundboard, and a public directory you can opt into.

The stack

The app is Flutter with a Rust core for capture, encoding and audio. It runs on Windows, Linux, Android and the web; macOS is in progress. Everything is open source: the client is GPL-3.0, the servers AGPL-3.0, and the bot SDKs Apache-2.0.

Try it

To try it without setting anything up, there's a public server, the Rift Lobby. Open this link with the Rift app installed: https://joinrift.app/join#https://lobby.joinrift.app#cY2KkGZvAS

It's small and shared, so the limits are lower than on your own server. It's fine for a quick test, but for the best experience I highly recommend setting up your own server: it's quick and easy.

The web app works, but has limits: streams mostly go out as VP9, which runs on the CPU, and noise suppression is Standard only (no RNNoise or DPDFNet). For now, the best way to try every feature is the native app on Windows or Linux.

I'd love feedback, especially from people who self-host or have tried to move a group off Discord.

Top comments (1)

Collapse
 
userxnom profile image
Abdullah Naseer •

Awais, this is the rare Discord alternative that does not make you pick between self-hosting and encryption — most of them give you one and quietly drop the other. The line that decides whether the E2EE claim survives contact with real users is the one about the server never holding a key that opens messages, including for the person who runs it. That is exactly right, and it is also where the hard question lives: when a user loses their only device, what recovers their history? If the answer is "nothing can," that is honest — but it is also the first thing a group moving off Discord will hit, and it is worth saying in the post itself.

The other detail I would love to see measured is the GPU screen sharing. You list NVENC, AMF and VAAPI/Quick Sync for desktop, and the web app falls back to VP9 on the CPU. Where does Android sit in that table — does the Rust core get a hardware encode path there too, or is a phone watching a stream doing CPU decode? I ask because my own users are mostly on mid-range Android phones, and a share that is smooth on a desktop GPU and a slideshow on a phone is the kind of gap that only shows up after the move. A small matrix of platform versus encode/decode path would make the self-hosting guide much more convincing. What has the move-off-Discord feedback been so far — is the encryption or the setup the part people stumble on?