DEV Community

bingkahu
bingkahu

Posted on

How I Built a Serverless P2P Chat with Zero Backend 🚀

The Concept

I wanted to build a chat application that doesn't rely on a central database or server. No messages are stored in the cloud—they travel directly from one browser to another.

How it Works

Using PeerJS and WebRTC, CodeChat creates a direct link between nodes.

  • Decentralized: No middleman.
  • Glassmorphism UI: A sleek, modern dark theme.
  • Identity Vault: Local authentication simulated via browser storage.

Why Contribute?

I've just open-sourced the project and I'm looking for help with:

  1. File Sharing: Implementing P2P data transfer.
  2. End-to-End Encryption: Adding an extra layer of security.
  3. Group Mesh: Moving from 1-on-1 to multi-user rooms.

Check out the repo here: https://github.com/bingkahu/p2p-comms

I'd love to hear your feedback or see your Pull Requests!

Top comments (0)