2a39d594c7d4ae2baa849e66582b7db9cb909f89
P2P Poll App
Small peer-to-peer polling app built with Vite, TypeScript, Yjs, y-webrtc, and y-indexeddb.
Features
- single shared poll per room
- add options collaboratively
- one vote per user, changeable at any time
- peer-to-peer sync over WebRTC
- local browser persistence for refresh/reconnect recovery
- shareable room URL
Run locally
npm install
npm run dev
Open the local URL in two tabs or browsers and use the same ?room= query string to join the same poll.
Example:
http://localhost:5173/?room=poll-demo
Build
npm run build
Notes
- The app uses public signaling through
y-webrtcfor MVP simplicity. - Poll state is not stored on an application server.
- WebRTC connectivity can still depend on the network environment of the participating peers.
Description