Inspiration

Reddit is the home of thousands of gaming subreddits where users chat, argue, and share memes about their favorite games. We wanted to take the passive scrolling experience of reading threads and turn it into a high-fidelity, interactive, and communal game night embedded directly in the feed. Texas Hold'em was the perfect fit: it's easy to play, feeds on social banter, and translates perfectly to quick community sessions. By building on the Reddit Developer Platform (Devvit), we created a zero-install poker room that sits inside standard Reddit posts, making community gaming as frictionless as upvoting.

What it does

PokerParty is a multiplayer Texas Hold'em web application built on top of the Reddit Devvit platform. It allows Reddit users to host, join, and spectate multiplayer poker tables directly in their subreddits. Key features include:

  • Instant Matchmaking & Open Tables: Players can quickly click "Quick Play" to be placed at an active table or browse a live registry of active open games via an auto-refreshing public lobby.
  • Intelligent Bot Players: Hosts can choose to fill empty seats by adding intelligent bot players that play with randomized strategies and sport Reddit-inspired taunts ("Downvoting your chips, upvoting my stack!").
  • Rich Web Audio Synthesizer: Realtime sound effects (dealing card swooshes, chip stacks, folding, and check knocks) are synthesized entirely programmatically via the Web Audio API with no asset-loading overhead.
  • Daily Login Streaks & Milestone Rewards: A daily check-in mechanic offering progressive coin rewards, tracked with an interactive S-shaped timeline showing upcoming Bronze, Silver, Gold, and Diamond milestones, alongside a live countdown timer ticking down to the daily UTC midnight reset.
  • High-Stakes Dynamics: When the pot crosses $2,000 chips, the table transitions to a pulsating hot-red neon glow, accompanied by custom octave-sub-blended arpeggiated victory audio.

How we built it

We utilized a robust stack fully integrated with the Reddit sandboxed ecosystem:

  • Frontend: Vite, React, and a custom Phaser 2D canvas overlay (PhaserOverlay.tsx) for chip-throwing, card-dealing, and action animations.
  • Backend: A Hono API server instance running inside Devvit (src/server/index.ts) handling all REST endpoints and realtime channel broadcasts.
  • State Management & Synchronization: Devvit Redis for atomic persistence of room and profile states. We implemented CAS (Check-and-Set) transaction blocks (withRoomTransaction) to handle concurrent actions and avoid race conditions during wagers and seat joins.
  • Realtime Networking: Devvit Realtime subscriptions that securely push pre-masked payloads to each client so users cannot inspect opponent cards in the network traffic.
  • Dynamic Audibles: Synthesized audio frequencies generated on the fly via the browser's native Web Audio API.

Challenges we ran into

  • Sandboxed Env Limitations: Running a real-time multiplayer card game inside Devvit's sandbox means strict execution constraints. We bypassed heavy asset bundle sizes by programmatically synthesizing all game sounds and generating user avatar graphics dynamically using HSL-based initials.
  • Mobile vs. Desktop Responsive Styling: On mobile screens, player action selectors, community cards, and speech bubbles are prone to getting cut off. We developed a custom responsive layout system that renders bot speech bubbles sideways on wide desktop viewports but positions them directly above/below the avatars on mobile.
  • Atomic State Updates & Race Conditions: Having multiple players act in milliseconds could lead to corrupted stacks or double buy-ins. We solved this by executing all state changes inside Redis transactions, ensuring buy-ins and state changes are serializable and error-resilient.

Accomplishments that we're proud of

  • Zero Asset Size: Creating a fully-voiced, sound-effects-enabled game with animations that fits into a tiny network footprint and loads instantly inside the Reddit client wrapper.
  • Atomic Matchmaking: Writing a reliable Hono/Redis matchmaking algorithm that automatically pools random users into active lobbies, handles player heartbeats, and cleans up empty/finished tables securely.
  • Slick & Premium UX: Elevating the UI with rich HSL theme palettes, a glassmorphic lobby widget, pulsating glow effects for high-stakes play, and smooth transition animations that feel premium.

What we learned

  • Web Audio Capabilities: We learned how powerful the Web Audio API is. Rather than relying on traditional MP3 files, we learned to harness custom oscillators, gain nodes, and wave shapers to craft satisfying game sounds programmatically.
  • Multiplayer Sync Patterns: Building for the Reddit client taught us how to optimize state synchronization. Masking server-side room states before broadcasting was key to avoiding cheating while maintaining real-time fluid gameplay.

What's next for PokerParty

  • ELO Liquidation & Trophies: Expanding the competitive leaderboard by allowing players to "liquidate" opponent ELO ratings during high-stakes games to unlock custom collectible profile trophies.
  • Community Tournaments: Introducing scheduled poker tournaments pinned to the top of subreddits, driven by the Devvit Scheduler, complete with Leaderboards.
  • Custom Card Backs & Deck Cosmetics: Allowing users to spend their streak-earned coins on custom felt designs, card backs, and interactive tables.
  • Voice and Richer Banter Channels: Integrating Devvit's media features to allow voice chat or preset audio reactions during intense showdowns.

Built With

Share this project:

Updates

Submission history