High Performance Matrix Homeserver in Rust!
open sourceApache-2.0self-hostablefree
Tuwunel is a Matrix homeserver written in Rust and the official successor to conduwuit, meant as a replacement for Synapse that works with Matrix clients, bridges and bots. It runs as one process on an embedded RocksDB database, migrates Conduit and conduwuit databases in place on first boot, and has a built-in OAuth 2.0/OpenID Connect server, sign-in through upstream identity providers such as Keycloak, authentik, GitHub or Google, LDAP and JWT logins, and MatrixRTC calls for Element Call. It ships static binaries, Deb and RPM packages, Docker images and packages for Arch Linux, NixOS, Alpine, Gentoo and FreeBSD. Full-time staff develop it, and its README says it is primarily sponsored by the government of Switzerland, where it is deployed for citizens. Apache-2.0.
Ways to install
On your own server
Hosted for you
Problems it solves
- my conduwuit homeserver was archived and I need the maintained successor that keeps my database
- move my Conduit Matrix server to something actively developed without losing my rooms
- run a Matrix homeserver that uses far less RAM and CPU than Synapse on a small VPS
- a single-binary chat server in Rust that doesn't need PostgreSQL or a fleet of worker processes
- self-host a federated chat server for our family on our own domain
- let staff sign in to our Matrix server with our Keycloak, Authentik or Authelia accounts
- sign users in to our chat server against our company LDAP directory
- our Matrix clients need next-gen OAuth/OIDC login so Element X works with our homeserver
- group video and voice calls in Element Call on a homeserver we run ourselves
- a government-grade Matrix server that a national deployment already relies on
- install a Matrix homeserver from an apt repository on Debian or Ubuntu
- run our chat server as a rootless Podman container managed by systemd
- deploy a Matrix homeserver on NixOS with a module and a binary cache
- keep the Synapse admin tools we use working after switching homeserver
- connect bridges to WhatsApp, Telegram or Signal from a lightweight homeserver
- a homeserver an enterprise can sponsor for features and priority fixes from full-time staff
Features
- Matrix homeserver with federation, aiming at the full Matrix specification
- single process with an embedded RocksDB database
- migrates Conduit, conduwuit and conduwuit-fork databases in place on first boot
- built-in OAuth 2.0 / OpenID Connect authorization server for Matrix clients
- delegated sign-in through upstream identity providers (guides for Authelia, Authentik, Keycloak and Matrix Authentication Service; GitHub and Google examples)
- LDAP and JWT authentication
- MatrixRTC support for Element Call voice and video
- most Synapse Admin API endpoints
- appservices for bridges
- registration tokens; the first registered user becomes server admin
View 4 more
- static x86_64 binaries in CPU-optimised variants, Deb and RPM packages, an apt repository and a COPR repository
- Docker Hub and GHCR images, Podman quadlet guide
- packages for Arch (AUR), Nix/NixOS with a binary cache, Alpine, Gentoo and FreeBSD, and an Ansible playbook
- guides for Caddy, nginx and Traefik reverse proxies and root-domain delegation
Limitations
- Can't migrate from Synapse yet: moving a Synapse server's data to Tuwunel is planned but not supported34
- No clustering or high availability yet: multi-node scale-out, redundancy and failover are future plans45
Capabilities
| Has single sign-on | plan not known |
|---|
Alternatives
The same job
These do what Tuwunel does.
- Dendrite Dendrite is a second-generation Matrix homeserver written in Go!
- Continuwuity A community-driven Matrix homeserver
- Conduit A Matrix homeserver written in Rust
- Synapse Matrix homeserver written in Python/Twisted + Rust
- ejabberd Robust, scalable and extensible realtime platform: XMPP server, MQTT broker and SIP service
