1 comments

  • quinns_tech 10 hours 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