Live Autumn 2026 successor of Federation
Reverie
A self-hosted chat app for my friends, with channels, DMs, voice and video calls, screen sharing and file sharing. Everything is end-to-end encrypted, and one Flutter app runs on Windows, Android and the web.
Reverie replaced Federation. Federation had the features, but seven microservices on Kubernetes were far more than a group of friends needs, and the server could still read every message. Reverie keeps the features, runs as one ASP.NET Core app with Postgres and LiveKit, and encrypts everything so the server can't read it.
Encryption
Messages, files and calls are encrypted on the device with Olm and Megolm, the protocols Matrix uses. I wrote a Rust wrapper around vodozemac, Matrix's implementation, that runs natively on Windows and Android and as WebAssembly in the browser. The server only stores ciphertext. It knows who is in which room and when something was sent, but not what was said.
Every device has its own keys, signed with the account key, and a recovery key brings the history back on a new device. Room keys only go to verified devices and change when someone leaves, so people who leave can't read new messages and people who join can't read old ones. Each attachment gets its own AES-256-GCM key, and calls use LiveKit's end-to-end encryption.
One app instead of seven services
| Federation | Reverie | |
|---|---|---|
| Processes | 7 services + gateway, SQL Server ×6, RabbitMQ, Redis, MinIO, Seq, Prometheus, Grafana, Jaeger | 1 app, Postgres, LiveKit |
| Idle memory | several GB | ~130 MB in total (measured) |
| Deploy | k3s manifests, CI per service | docker compose up -d |
The app
The Flutter app has two layouts that you pick per device: Community, which looks like Discord, and Conversations, which looks like a messenger. For Windows I added a tray icon, start with Windows, a remembered window position and screen sharing with system sound in C++. Reverie's own voices are left out of that sound. On Android, calls continue picture-in-picture.
Every user has a storage limit, and files are removed after 30 days unless you keep them. The server can't read file names, so searching your files happens on your own device.
Gallery
The same book club chat on Windows (Community design) and on a phone (Conversations design).
App
Windows app: room rail, channels, a conversation with a reaction, members and a custom background. On a phone: the same chat in the Conversations design, with bubbles.
Storage
Your files: storage used, Free up space, filters and expiry per file. Search runs on the device, because only the device can read the names.