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.
- Website and downloads: https://joinrift.app
- Self-hosting guide: https://docs.joinrift.app
- Code: https://github.com/awais-amjed/rift
I'd love feedback, especially from people who self-host or have tried to move a group off Discord.
Top comments (5)
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?
Thanks, good questions!
Losing your device: your identity comes from one seed, and every channel key is wrapped for that identity, so the server still has everything you need, just encrypted. Get the seed back on a new device and you can read your history again. There are two ways to get it back: an optional account backup (the seed is encrypted with your password before it leaves the device, so the backup service can't open it), or the recovery key shown once when you create your vault. If you lose your device, your password and the recovery key, then nothing can recover it, and that's on purpose.
Android: the Rust core is desktop only. On Android, sharing and watching go through LiveKit's SDK and the phone's own hardware codecs. A phone's share is H264 on its hardware encoder (libwebrtc has no software H264 on Android), at the screen's resolution and 30/60 fps, or 120 where the screen supports it. For watching, the phone decodes H264 in hardware, and H265 if it has a hardware decoder for it. Each viewer tells the call which codecs it can play, and a desktop share steps down to one everyone watching can decode, so a phone usually gets H264 or H265 and decodes it in hardware. Most of my phone testing was on a Galaxy A56, which is mid-range. I haven't tried many other phones yet, so the platform/codec table is a good idea, I'll add one to the docs.
Feedback: it's early, this is one of the first posts, so not much yet. I have tried to keep the setup as simple as possible - just 2 commands, so hopefully its easy for people.
The line that stopped me was that the server only stores ciphertext and never holds a key that opens it, even for the person who runs it. That is a hard promise to keep for a self-hosted app.
In a self-hosted Slack-like app I built, search is SQLite FTS5 on the server, which only works because the server can read the text. Rift can't do that, by design. So where does search live: an index on each device? And when someone restores their seed on a new phone, can they search their old history right away, or does it rebuild first?
There is no search by design. But if there is a huge demand for search, then it would be something like whatsapp, each device keeps a copy of their messages and can search them.
Moving a whole group off Discord is the hard part, more than the hosting. I would test Rift with five people who have never seen it and watch where the invite and first voice call go wrong. That is what builders do for each other on TestMyBuild, which I run, if you want that kind of feedback written down. testmybuild.app