libp2p WebRTC QR

Connect two browsers directly by exchanging signed WebRTC offer and answer QR codes.

1. Start browser peer

Peer ID: not started

2. Exchange QR payloads

Browser A: create an offer. Browser B: scan A's offer and show the generated answer. Browser A: scan B's answer. Do not process a browser's own QR code.


For reliable scanning, turn up the other screen's brightness, keep the QR code flat, and let it fill about half of the camera view.

3. Send data over libp2p

Not connected