Skip to content

How It Works ​

You don't need to know anything about cryptography or peer-to-peer networks to use Molecular every day. This page gives a quick mental model of where your data lives and how updates move between devices.

Public vs. Private data ​

Every app inside a Space uses one of three visibility modes:

  1. Public Read — Things you explicitly choose to publish (your Storefront profile, service list, hours, public photos, and public Feed posts). Anyone with your link can view them in a normal browser.
  2. Public Drop-Box (Write-Only Encrypted) — Your booking/contact form on your public storefront. Visitors can send you a request without logging in, and the message is encrypted in their browser so only your Space can read it.
  3. Private (End-to-End Encrypted) — Your Inbox, Live Chats, Group Discussions, Collaborative Docs, P2P Files, and Habits & Tasks. Only authorized members of that Space can decrypt them.

How syncing works across devices ​

  • When you edit a doc, approve a booking, or post a message, it is saved immediately on your device.
  • Your browser then syncs the encrypted change to your other devices and to the blind-seeding relay so your data is waiting when your phone wakes up.
  • When two devices or group members are online at the same time (for example, in a live chat or when transferring P2P files), Molecular can connect your browsers directly peer-to-peer.

How files work differently from text ​

  • Small structured data (storefront settings, bookings, chats, docs, tasks) syncs automatically through the encrypted relay so it is always available, even when your other devices are offline.
  • Public storefront images are optimized (converted to WebP with location/EXIF metadata stripped) and stored in object storage so your public page loads fast.
  • Private P2P Files live on your Browser P2P Disk and transfer directly between online peers in your Space—never uploaded to a central cloud server. See P2P Files for details.

Storage quotas & staying light ​

Because the helper relay stores encrypted sync data for your spaces, free accounts have a lightweight live-sync quota (2 MB for synced records + 10 MB for public storefront images). You can export and clear old bookings anytime in one click to reclaim space immediately.

Under the hood (Technical details)
  • Local-first storage & sync: Powered by @molecular/core over the Willow protocol (@earthstar/willow) backed by IndexedDB in the browser.
  • Identity & device keys: Each browser generates a non-extractable WebCrypto device_did. Your active spaces and personas are tracked in an encrypted RootManifest synced across your devices.
  • Drop-Box cryptography: Storefront booking/contact submissions are sealed in the visitor's browser using RFC 9180 HPKE to a Space-bound encryption keypair (decoupled from your root identity), paired with stateless SHA-256 Proof-of-Work anti-spam and content-free VAPID Web Push wake alerts.
  • Direct P2P transport: Live chats, collaborative docs, and P2P file transfers layer WebRTC DataChannels (WebRtcP2pTransport) over the relay's EphemeralChannel signaling, capped at 16 concurrent peers per browser to protect CPU and RAM.
  • Scoped capabilities: Group permissions and external apps use UCAN-aligned capability tokens enforced both locally and at the /ws/sync relay path boundary.

Local-first digital homesteads & private group spaces.