Skip to content

PeerChat is a lightweight, browser-based peer-to-peer messaging application built with PeerJS. This application allows users to establish direct connections and chat with each other without requiring a central server to relay messages.

Notifications You must be signed in to change notification settings

ahmed0saber/peer-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

be04956 · Mar 20, 2025

History

4 Commits
Mar 20, 2025
Mar 20, 2025
Mar 20, 2025
Mar 20, 2025

Repository files navigation

PeerChat: Browser-Based P2P Messaging

PeerChat is a lightweight, browser-based peer-to-peer messaging application built with PeerJS. This application allows users to establish direct connections and chat with each other without requiring a central server to relay messages.

Features

  • Real-time messaging between peers with direct P2P connections
  • Auto-generated unique peer IDs for simple connection setup
  • Modern WhatsApp-inspired chat interface
  • Connection status indicators and notifications
  • Mobile-responsive design for use on any device
  • No message storage - conversations remain private between peers

Perfect for quick, secure conversations or as a foundation for more complex P2P applications. Simply share your ID, connect with a peer, and start chatting instantly.

TURN server

This project uses a free TURN server with quota usage of 500MB from Metered:

https://dashboard.metered.ca/turnserver/app/67dbe7d060a12544f83187fb

If you are looking for a self-hosted solution, please check the following resourses:

https://github.com/coturn/coturn

https://github.com/Atlantis-Software/node-turn

Disclaimer

This project was developed with the support of AI tools to boost productivity and assist in different areas of the code and documentation.

About

PeerChat is a lightweight, browser-based peer-to-peer messaging application built with PeerJS. This application allows users to establish direct connections and chat with each other without requiring a central server to relay messages.

Resources

Stars

Watchers

Forks