A Holepunch based p2p chat application
- Clone the repo and go to commit ID 393e510d658a3dabcc83321bf7c9fa77c6b58e7f
- Start node server from /server using
npm run dev
- Start react server from /p2pchat using
npm start
- Click Join to create a publickey in console
- Use that console to chat from your cli (peer.mjs can be used to connect to the react instance)
node peer.mjs <remotePublicKey>
- Start sending messages from react frontend
- Messages for react + node instance will be received in console.
Demo: https://drive.google.com/file/d/1OPlKycOoMYgsRdohr9IvCjI1yuxZDt93/view?usp=sharing
Simplex communication from react to cli (for now).
- Use cli (peer.mjs) to create topic
- Enter topic in https://p2pchat-frontend.vercel.app/ and connect with CLI instance
- Send messages through the website and messages will be reflected in CLI
Demo: https://drive.google.com/file/d/17pk75MJ0b4QUCJQBOgiQ6YqzoUe567a9/view?usp=sharing
- Connect users by topic
- P2P Communication
- Hyperstore to store messages
- Reflection of messages in React frontend (Have to fix, temporary fix: console)
- Deployment
- UI
- Reflect publicKey generated in homepage