Skip to content

sumingcheng/PeerChat

Repository files navigation

PeerChat

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.

Features

Decentralized Communication

  • Direct P2P communication via WebRTC

  • No central server for message storage, protecting user privacy

  • NAT traversal support for various network environments

Group Chat

  • Create and join group chats

  • Host/member role distinction

  • Real-time online member display

User-Friendly Interface

  • Intuitive chat interface with message type differentiation

  • Special indicators for host messages

  • Message status display (sending, sent, etc.)

Instant Sharing

  • Generate shareable group chat links

  • Quick join via links or IDs

Tech Stack

  • React + TypeScript + Vite
  • PeerJS (WebRTC)
  • Tailwind CSS

Local Development

# 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

Live Demo

Visit https://sumingcheng.github.io/PeerChat/ for live demo. image image image image

License

Apache License Version 2.0

Architecture Overview

1

Donation

About

Direct browser-to-browser P2P connections, no server relay, no data stored

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published