A simple P2P chat webpage based on WebRTC and PeerJS, supporting text chat and video call features.
The current project development goals have been largely completed, and there will be no major updates in the future...
🌐 Online Access
Visit p2p-chatroot to experience the application.
✨ Features
- Real-time text chat
- Real-time video calls
- Simple and clean user interface
- P2P connection, no central server required
- Support for Chinese, English, and Japanese language switching
📚 Basic Usage
- You can switch languages in the top right corner of the left chat interface.
- The Peer ID is a unique identifier for communication with other users. You can customize your Peer ID or have it generated by the system.
- Before obtaining a Peer ID, you need to specify a username. After confirming the username, you will receive a Peer ID.
- Enter the Peer ID of the user you want to connect to and click the button to add the corresponding user.
- In the "More Users" list, you can find other users connected to the user you are connected to.
- Once you successfully add a user, you can start text and video chats.
🚀 Project Setup
bash
# Install dependencies
npm install
# Start the development server
npm run dev
# Build the production version
npm run build