Product Launch
anonymous
1 points
2 comments
Postedabout 2 months agoActiveabout 2 months ago
Show HN: P2P poker chip tracker built with vanilla JavaScript and WebRTC
livepokerchips.comWebRTCP2PJavaScript
Discussion (2 comments)
Showing 2 comments
about 2 months ago
Its kinda neat. But also if you played or tracked a game or two with it you'd run into it not letting you go all in if you can't raise as much as your opponent raised, which is a game breaking bug that would be found pretty early if you tried to use it for a whole game.
about 2 months ago
Hey HN! I built this for my weekly poker games because I was tired of chip counting arguments.
TECH STACK:
• Pure vanilla JavaScript (no frameworks, ~25KB total)
• PeerJS for P2P multiplayer (no backend needed)
• WebRTC for device sync
• Service worker PWA
• Hosted on GitHub Pages
WHY NO FRAMEWORK:
Wanted to keep it dead simple and fast. No build step, no dependencies, just open the HTML file and it works.
MULTIPLAYER ARCHITECTURE:
The interesting part was implementing peer-to-peer state sync without a central server. One player hosts, generates a 6-char room code, others join directly via
WebRTC. All game state syncs in real-time across devices with 50ms debouncing.
CHALLENGES:
• Handling disconnections gracefully
• Keeping poker betting logic accurate (min raise rules, side pots)
• Making WebRTC reliable across different networks
Open source on GitHub: https://github.com/quinnrallen-hub/pokerchips-site