MITANSHU P2P: Building a Zero-Server, 100% Browser-Native Enterprise Suite
🚀 The Future of Decentralized Communication
Privacy and data sovereignty are no longer optional features; they are foundational requirements. MITANSHU P2P Enterprise Suite v14.0 is an architectural response to centralized data harvesting, providing a professional-grade communication platform built entirely in a single HTML file. By leveraging WebRTC, it establishes a direct encrypted tunnel between browsers with no backend requirements.
🛠Architectural Mastery: Full Mesh Topology
Unlike traditional client-server models, this suite utilizes a Full Mesh Network
Every peer connects directly to every other peer in the network
. This architecture ensures a self-healing system with no single point of failure.
Data flows exclusively between peers, never touching a central server
. Connection complexity follows the $N(N-1)/2$ formula for true decentralization
.
💎 Key Technical Modules
1. Swarm Engine (Decentralized File Sharing)
Inspired by BitTorrent protocols, the Swarm Engine optimizes file transfers across the mesh.
Files are split into 16KB/64KB chunks locally using the Array Buffer API
. A Round-Robin seeding protocol is used to distribute chunks across connected peers
. Peers broadcast
SWARM_HAVEsignals, allowing others to pull missing data directly. This decentralized approach spreads the bandwidth load across the entire network
.
2. WASM-Powered Code Studio
The Code Studio transforms the browser into a high-performance IDE.
It uses Pyodide (Web Assembly) to execute a full Python runtime natively.
Ala SQL is integrated for in-memory SQL query execution.
The ACE Editor provides professional syntax highlighting and autocomplete
. All coding sessions are synchronized in real-time via WebRTC Data Channels
.
3. Hardened Security & Encrypted Media
Security is baked into the protocol layer rather than added as an afterthought.
Audio and video streams are encrypted using SRTP (Secure Real-time Transport Protocol)
. Text messages, voice notes, and data packets utilize DTLS encryption
. The app features ephemeral storage, where data exists only in the browser's RAM
. Refreshing the page permanently wipes all session metadata and history
.
🎮 Beyond Communication: The Integrated Workspace
MITANSHU P2P is a comprehensive productivity hub.
Multi-Gaming Hub: Includes a full-rules Chess engine
and four other real-time P2P games
. Watch Party: Synchronized media playback ensuring all peers view frames simultaneously
. Infinite Whiteboard: A collaborative drawing canvas with zero-latency synchronization
. Task Board: A decentralized Kanban board for managing shared project agendas
.
🔬 Tech Stack & PWA Integration
The suite is a fully installable Progressive Web App (PWA).
Core Libraries: Peer JS for WebRTC abstraction and Tailwind CSS for UI.
Service Worker: A custom
sw.jsmanages a cache-first strategy for offline shell access.Mapping: Leaflet.js handles real-time GPS broadcasting.
Try the Live Demo: Project
Explore the Source: Git Repo
Architect: Mitanshu Bhasin
