Back to Projects
Projects/DecentChat
Privacy-First P2P

DecentChat

Semi-Decentralized Encrypted Terminal Chat

A privacy-first, terminal-based peer-to-peer messenger with end-to-end encryption. DecentChat enables secure, direct communication between users without relying on a central server for message storage or relay.

Tech Stack
GoBubbleTeaP2PE2EESupabase
Links

Problem

Traditional messaging relies on centralized servers that store messages and collect metadata

Approach

Terminal P2P messenger with X25519, AES-256-GCM, and Ed25519 encryption

Impact

True zero-trace, privacy-first messaging with no accounts required

System Architecture

Interactive diagram — zoom, pan, and explore the system layers

DecentChat Architecture Diagram
Click & drag to pan

Technical Implementation

E2E Encryption

X25519 for secure Diffie-Hellman key exchange, combined with AES-256-GCM for authenticated symmetric encryption of all messages. Local keys never touch a server.

P2P Tunnels

Built-in support for Cloudflare tunnels provides robust NAT traversal without exposing your local network, enabling connections even behind firewalls.

Key Features

  • X25519 Key Exchange
  • AES-256-GCM Encryption
  • Ed25519 Message Signing
  • Trust-on-First-Use (TOFU) model
  • Terminal-native interaction via BubbleTea
  • No Account Verification required
Prasad Hiwarkhede | Full-Stack Developer & AI Engineer