Whitepaper

Svalinn Whitepaper

Updated 2026-11-24

Modern desktop chat forces a trade: cripple your hardware with an Electron app bundling a full Chromium browser, or hand your data to a platform that monetizes it. Svalinn is a privacy-focused, desktop-first chat client built in Rust and Tauri that refuses that trade — targeting under 35MB of idle RAM, true end-to-end encrypted direct messages, no phone number requirement, and no paywalling of core communication. Unlike most project whitepapers, this one distinguishes clearly between what is live and running today and what remains on the roadmap — because a privacy and performance promise is only worth as much as the code that backs it.

The Problem

Desktop chat has converged on a bad trade.

Hardware exhaustion. The industry standard bundles an entire Chromium browser into every app instance via Electron, pushing idle memory use past 400–800MB and draining CPU and battery during voice and video.

Privacy erosion. To fund that infrastructure, platforms monetize behavior: metadata harvesting, AI-driven message scanning, and increasingly invasive identity checks. Users are the product, not the customer.

Predatory monetization. Core communication features — screen share resolution, file upload size, even custom emoji — are throttled specifically to pressure free users into subscriptions, creating friction at the exact moment people are trying to talk to each other.

Our Approach

Svalinn is built on four pillars, held without exception:

  1. Performance is sacred. No Electron. Native OS webviews and compiled Rust, targeting idle RAM in the tens of megabytes, not hundreds.
  2. Privacy by default. No phone number required. Direct messages are end-to-end encrypted. Nothing is scanned, harvested, or sold.
  3. Familiar, not foreign. Servers, channels, and voice rooms — the paradigm millions already know — so migrating a community costs no learning curve.
  4. No artificial degradation. Messaging, E2EE direct messages, and voice/video are full-quality on the free tier — not a limited preview of a paid feature. Paid tiers add cosmetics and, at Guild and above, the ability to create a server; they never unlock a capped or throttled core feature, because none of the core features are capped to begin with.

What's Live Today

This is pre-alpha software, and we'd rather say that plainly than oversell it. But the following is implemented, tested, and runs end-to-end against a real server today — not a projection:

  • Accounts, servers, and channels. Full server/channel CRUD, role-based permissions, invites, and real-time WebSocket text chat.
  • End-to-end encrypted direct messages, with a per-device key model: every device a user logs in on holds its own keypair, and messages fan out encrypted separately to each recipient device.
  • Voice and video calls, with mute state, WebRTC signaling, TURN relay fallback for strict NATs, and a permission-aware participant roster.
  • Email privacy and ban-evasion defense: signup requires a real, non-disposable email (checked against a vendored blocklist of ~10,000 known disposable domains) and a one-time verification link before an account can join a server. The email itself is never stored in plaintext — it's kept as an AES-256 ciphertext plus a separate one-way hash used only for matching. That hash is what lets a ban stick: delete the account and re-register with the same real email, and both a per-server ban and a platform-wide ban still block you, without the server ever holding your address in the clear.
  • Account administration: a tiered badge/emblem system tied to patron tier, and an operator CLI for site management.

What's not in this list — screen sharing, mobile/web clients, billing, self-hosting documentation — is covered in the Roadmap, not quietly implied here.

Technical Architecture

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, not a solved problem, and it's listed as such in the Roadmap rather than claimed early.

Security & Privacy Model

Direct messages are end-to-end encrypted using X25519 + XSalsa20-Poly1305 (see Technical Architecture for the forward-secrecy caveat). The server stores and forwards ciphertext only; private keys never leave the device that generated them.

Data minimization is enforced, not promised. No phone number is collected or required at any point in the signup flow.

Email privacy uses a two-secret design, deliberately chosen to match the project's own E2EE posture rather than bolt on a weaker standard elsewhere in the stack:

  • An AES-256-GCM ciphertext of the real address, used only to show it back to its owner (account settings, re-sending a verification link).
  • A separate, one-way HMAC-SHA256 blind-index hash, used only for equality checks — login lookup, uniqueness, and ban matching. The hash can prove "this is the same email as a banned account" 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 here 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, as noted above, lacks Double Ratchet-style forward secrecy.

Economic Model & Pricing

Svalinn does not throttle core communication to sell a subscription. The tier system below already exists as a data model and permission layer on the server — an account's tier gates badge cosmetics and (for Guild and above) server creation — but no payment or billing flow is wired up to it yet. Today, a tier is a value an operator sets by hand; nothing in this table currently has a checkout.

TierPriceWhat it unlocksBuilt today?
Core (Free)$0, foreverUnlimited servers to join, E2EE DMs, low-latency voice/video, no adsYes — this is the default account
Patron$5/mo (voluntary)Cosmetic badge emblems, early beta access — zero functional advantage over FreeTier + emblem picker exist; no payment flow
Guild$20/mo per serverServer creation, advanced moderation tooling, a wider emblem setTier + server-creation gate exist; no payment flow
EnterpriseCustomSSO, SLAs, dedicated TURN relays, compliance exportsNot started

Payment rail (planned, not built): a self-hosted BTCPay Server instance, accepting Monero as the primary method (for its default transaction privacy) and Bitcoin Lightning as a secondary fast/low-fee option. The intended flow never links a wallet address to an account: a user requests a tier, the backend generates an anonymous redemption code against a BTCPay invoice, and the code is redeemed in-app on payment confirmation. None of this — BTCPay integration, invoice generation, redemption codes — exists in the codebase yet.

Self-hosting (in progress): a docker-compose.yml already exists in the repository as a starting point for self-hosted deployment, but the full guide — TURN setup, reverse proxy examples, backup/restore, security hardening — is not yet written.

Roadmap

Phases, not calendar months — an early-stage project's own date estimates are usually wrong, and we'd rather be right later than confident now.

Phase 2 — Community Foundations (next up): richer moderation and audit logs, a full role hierarchy, screen sharing, self-hosting documentation, public beta builds.

Phase 3 — Sustainability: the BTCPay/Monero/Lightning payment rail described above, turning the existing Patron/Guild/Enterprise tiers from a data model into something a user can actually buy; hosted community plans; creator and organization tooling.

Phase 4 — Expansion: native mobile clients, a web client, Double Ratchet-style forward secrecy for DMs, device-fingerprint-based ban evasion defense (complementing the email-hash defense already live), larger voice rooms, and research into Matrix bridging for interoperability.

No user-count or revenue targets are stated here. At pre-alpha stage, with zero of the payment infrastructure built, a specific MAU or MRR figure would be a guess dressed up as a forecast, so none is given.

Conclusion

The case against bloated, surveillance-funded chat platforms doesn't need restating — most people who've used one already feel it. What's harder to find is a project willing to say, in the same document, both what it has actually built and what it hasn't gotten to yet. Svalinn is further along than a typical pre-alpha project on the things that are hardest to fake — real E2EE, real voice and video, a genuinely novel privacy-preserving ban-evasion system — and openly behind on the things that take time regardless of intent: payments, mobile, self-hosting docs.

None of this is finished, and it isn't meant to be read as final. The project is still evolving quickly, priorities will shift as real usage surfaces real problems, and community feedback on what to build next — or what's broken — genuinely shapes the roadmap rather than just being acknowledged and set aside.

"Your voice. Your data. Zero bloat."

Links

  • Source: repository private during pre-alpha; public release planned alongside self-hosting documentation
  • Download: a native Linux build is available now — see the Download page. Windows and macOS builds are planned for the public beta in Phase 2.