The app

Built different, layer by layer

Every layer of Svalinn was picked for one reason: to avoid the trade-off that made desktop chat bloated in the first place.

Technical architecture

Why each layer exists

LayerWhat it isWhy
Desktop clientTauri, wrapping the OS's native webview (WebView2 on Windows, WebKit on macOS/Linux)No bundled Chromium — the single biggest lever on idle RAM
FrontendSvelte, compiled away at build timeNear-zero JS payload, no virtual-DOM overhead
BackendRust (Axum) over WebSocketsMemory-safe, high-concurrency connection handling
Persistent dataPostgreSQLUser accounts, servers, channels, membership, bans
Local cacheClient-side cache for recent historyInstant UI on startup, no network round-trip to render
Voice/videoWebRTC, with a self-hosted coturn TURN server as NAT fallbackPeer-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.

Security & privacy model

Verified, not just asserted

✓

End-to-end encrypted direct messages

X25519 + XSalsa20-Poly1305. The server stores and forwards ciphertext only; private keys never leave the device that generated them.

✓

Data minimization, enforced not promised

No phone number is collected or required at any point in the signup flow.

✓

A two-secret email privacy design

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.

✓

Auditability

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.

Known, acknowledged limits

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.

Want the full picture?

The whitepaper covers the economic model, the self-hosting plan, and the complete roadmap.