SS

SUMIT SHARMA

Portfolio0%
SS
SUMIT SHARMA
Back to Projects Archive (12)
Real-Time / P2PP2P WEBRTC

Aether

Peer-to-Peer File Transfer Engine with WebSocket Relay Fallback

Aether preview
Highlight 01WebRTC DataChannels
Highlight 02Socket.IO Signaling
Highlight 03QR Code Pairing

Project Overview & Problem Statement

A local-first browser-to-browser file synchronization system using direct encrypted WebRTC DataChannels, equipped with an automated Socket.IO relay fallback for strict corporate NAT networks.

The Engineering Problem:Transferring files between personal devices often requires uploading to cloud drives or installing third-party software that collects user data.

System Architecture & Data Flow

Implements a hybrid peer-to-peer transport protocol. The client initiates signaling via Node.js / Socket.IO to exchange ICE candidates and SDP offers. If a direct WebRTC DataChannel connection succeeds, files stream directly between browsers. If symmetric NAT restricts direct P2P connections, traffic falls back smoothly to an encrypted WebSocket relay.

Architectural Solution:Designed a browser-native WebRTC data pipeline that transfers files directly between devices with instant QR pairing and zero cloud storage.

Key Engineering Challenges

Achieving reliable browser-to-browser peer negotiation across heterogeneous network topologies (e.g. cellular mobile devices, university Wi-Fi, and corporate firewalls).

Implementation Decisions:Built STUN-assisted WebRTC peer connection pipelines, integrated dynamic QR code session handshakes for frictionless mobile-to-desktop pairing, and added automatic transport fallback.

Feature Implementation & Capabilities

Direct encrypted P2P data channels with zero intermediate cloud file storage
Automated Socket.IO relay fallback when strict symmetric NAT blocks direct P2P
Frictionless QR code pairing between mobile devices and desktop browsers
Chunked array buffer streaming for multi-hundred-megabyte transfers

Technology Stack

WebRTCSocket.IONode.jsExpressTypeScript
Next Project

SmartSlot

Appointment Booking Engine with Database Concurrency Control