Skip to content
Swoosh

Swoosh

Secure P2P file transfer

Created on 25th January 2026

•

Swoosh

Swoosh

Secure P2P file transfer

The problem Swoosh solves

Swoosh is a secure, browser-based peer-to-peer (P2P) file transfer application designed to solve the limitations of sending large files over the web. Unlike traditional cloud storage services (like Google Drive or WeTransfer) that require uploading to a central server, Swoosh streams data directly between devices using WebRTC.
The application is engineered specifically for heavy-duty transfers (50GB+), bypassing browser memory limits by writing data directly to the user's disk. With a focus on privacy and resilience, Swoosh ensures data never touches a server ("server-blind") and features robust crash recovery that allows users to resume interrupted transfers exactly where they left off.
Key capabilities include:

  • Zero-Server Storage: Direct device-to-device streaming.
  • Unlimited File Size: Capable of handling 50GB+ files via the File System Access API.
  • Security: TOFU (Trust On First Use) authentication with URL fragment secrets.
  • Resilience: Auto-resume functionality for network drops or browser crashes.

Challenges we ran into

1. Zero-RAM Overhead (Infinite File Size)

  • Challenge: Loading large files (50GB+) into RAM crashes browsers.
  • Solution: Implemented direct-to-disk streaming using the File System Access API. The sender streams chunks from the disk, and the receiver writes them immediately to the drive, keeping RAM usage constant and low.

2. I/O Throttling & Optimization

  • Challenge: WebRTC prefers small packets (16KB), but disks prefer large writes. Mismatches cause bottlenecks.
  • Solution: Built an Adaptive Buffering System that transmits 16KB chunks over the network but aggregates them into 64KB blocks for efficient disk writing.

3. Bit-Perfect Integrity

  • Challenge: P2P streams are susceptible to packet corruption.
  • Solution: Integrated a Chunk Verification Engine. Every chunk includes a SHA-256 checksum; the receiver validates data before writing and automatically re-requests corrupted packets.

4. Crash Recovery & Resumption

  • Challenge: Browser crashes usually result in total data loss for active transfers.
  • Solution: Utilized IndexedDB Persistence to continuously save transfer metadata. On reload, the app detects incomplete states and resumes exactly where it left off.

5. Universal Compatibility Strategy

  • Challenge: The File System Access API is not supported on Firefox or Safari.
  • Solution: Designed a Graceful Fallback Mechanism. The app uses direct-disk writing on supported browsers (Chrome/Edge) and automatically switches to in-memory storage for others, ensuring functionality everywhere.

Discussion

Builders also viewed

See more projects on Devfolio