Every layer of Svalinn was picked for one reason: to avoid the trade-off that made desktop chat bloated in the first place.
| Layer | What it is | Why |
|---|---|---|
| Desktop client | Tauri, wrapping the OS's native webview (WebView2 on Windows, WebKit on macOS/Linux) | No bundled Chromium — the single biggest lever on idle RAM |
| Frontend | Svelte, compiled away at build time | Near-zero JS payload, no virtual-DOM overhead |
| Backend | Rust (Axum) over WebSockets | Memory-safe, high-concurrency connection handling |
| Persistent data | PostgreSQL | User accounts, servers, channels, membership, bans |
| Local cache | Client-side cache for recent history | Instant UI on startup, no network round-trip to render |
| Voice/video | WebRTC, with a self-hosted coturn TURN server as NAT fallback | Peer-to-peer by default; only relays when a strict NAT forces it |
Worth being precise about, since encryption claims are easy to overstate: direct-message encryption is public-key authenticated encryption — X25519 key agreement with XSalsa20-Poly1305 (libsodium's crypto_box construction) — per device, not per conversation. It gives strong confidentiality and authenticity today; it does not yet give the forward secrecy a Double Ratchet scheme would. That upgrade is a real future item, listed on the roadmap rather than claimed early.
X25519 + XSalsa20-Poly1305. The server stores and forwards ciphertext only; private keys never leave the device that generated them.
No phone number is collected or required at any point in the signup flow.
An AES-256-GCM ciphertext of the real address (used only to show it back to its owner), plus a separate one-way HMAC-SHA256 blind-index hash used only for equality checks — login, uniqueness, and ban matching — without the database ever holding, or needing to decrypt, the address itself.
The client is intended to be fully open source; trust is meant to be verified through code, not asserted in a document like this one.
Stated deliberately, because a threat model that only lists what a system defends against isn't a threat model: the ban-hash defense catches someone re-registering with the same real email, not someone using a genuinely different one — a harder problem that would need a separate signal, such as device fingerprinting, which is not implemented. And DM encryption today lacks Double Ratchet-style forward secrecy.
The whitepaper covers the economic model, the self-hosting plan, and the complete roadmap.