Appearance
P2P Files (Browser P2P Disk)
Molecular lets you share files inside your personal Homestead (across your own devices) and inside Group Spaces directly peer-to-peer, without uploading your private files to a central cloud server.
How the Browser P2P Disk works
Unlike Google Drive or Dropbox, there is no cloud server holding your private files:
- When you add a file to a Space, it is stored locally in your browser's private Browser P2P Disk.
- Only the small encrypted file index (file name, folder, size, and integrity hash) syncs through the relay so everyone in the Space can see what files exist.
- While your tab is open, your browser acts as a seeder—sharing the file directly with other authorized members who request it.
- Once another member fetches the file, their browser becomes a seeder too, making the file faster and more resilient for the rest of the group.
Understanding file status badges
| Status | What it means |
|---|---|
| On your P2P Disk · Seeding | You already have the full file locally and are sharing it with online peers in this Space. |
| Online · N seeding | One or more peers who have this file are currently online. You can fetch it right now. |
| Offline | No one who holds a copy of this file is currently online. As soon as a peer with the file opens the Space, it becomes available. |
Tip: Want always-on seeding even when your browser is closed? See the upcoming Companion Sync Node.
Two-step download: Fetch → Save to Device
- Fetch to P2P Disk: Click Fetch to pull the file peer-to-peer into your Browser P2P Disk. Molecular verifies the file's integrity automatically and begins seeding it to the rest of your Space.
- Save to Device: Once fetched, click Save to Device to export a regular copy into your computer or phone's Downloads folder (or preview images directly inline in Docs!).
Folders & managing local disk space
- Organize files into folders using the folder filter and path controls.
- Keep an eye on the Browser P2P Disk usage meter at the top of the panel.
- You can Clear from P2P Disk on individual files (or clear local cache) anytime to free browser storage. Removing your local copy stops your browser from seeding it, without deleting the file entry for peers who still have a copy.
Under the hood (Technical details)
- Storage engine: Uses the browser's Origin Private File System (OPFS via
OpfsFileStorage, with an in-memory fallback when OPFS is unavailable). - Transfer protocol:
SpaceFileTransferEngine(@molecular/app-files) announces seeder presence overEphemeralChannel, streams 64 KB binary chunks over direct peer-addressed WebRTC DataChannels (WebRtcP2pTransport.sendToPeer) with bounded sliding windows, automatic peer failover, and full-file SHA-256 verification before marking a file complete. - Zero base64 overhead: Binary chunks transfer natively over WebRTC DataChannels, bypassing the sync relay completely.