A real-time peer-to-peer chat application built with WebRTC technology. Enables direct communication between users without requiring a central server, featuring a clean interface and smooth chat experience.
-
Direct P2P communication via WebRTC
-
No central server for message storage, protecting user privacy
-
NAT traversal support for various network environments
-
Create and join group chats
-
Host/member role distinction
-
Real-time online member display
-
Intuitive chat interface with message type differentiation
-
Special indicators for host messages
-
Message status display (sending, sent, etc.)
-
Generate shareable group chat links
-
Quick join via links or IDs
- React + TypeScript + Vite
- PeerJS (WebRTC)
- Tailwind CSS
# Install dependencies
pnpm install
# Start development server
pnpm run dev
# Build for production
pnpm run build
# Preview production build
pnpm run preview
# Deploy to GitHub Pages
pnpm run deploy
Visit https://sumingcheng.github.io/PeerChat/ for live demo.
Apache License Version 2.0