Card night, but everyone is at home.

Stackd

Blackjack, Hold'em and roulette with friends in your browser toolbar. Play money only.

A Stackd Hold'em table in Chrome's side panel, next to a web page
Type
Chrome extension
Status
Live since 2026
Users
296, rated 5.0
Works on
Chrome on a computer

How it works

Open the panel. Deal.

The popup with bonuses, the three games and the season rank

Under the hood

The server deals

Side panel ↔ Table on a Worker: WebSocket, one action at a time. D1 ledger: every chip written down. The extension is a thin client. Shuffling, dealing and payouts happen on the server, and hidden cards never reach a browser that should not see them.

The server deals

The extension is a thin client. All shuffling, dealing, spinning and payouts happen in a Cloudflare Worker, and hidden cards (the dealer’s hole card, other players’ hands, the deck) are never sent to a browser that should not see them. Each player has a Durable Object for solo games, and each multiplayer table has its own, so every action on a table runs one at a time. Chip balances live in D1, and every debit is a guarded update written together with a ledger row, so a balance can never go negative or drift.

The game engines are pure TypeScript packages with no Cloudflare or browser code, tested with a seeded random generator: every blackjack payout path, a 7-card hand evaluator checked against known hands, and side pots with three and four all-ins at different sizes.

Bots that fit a budget

Empty seats fill with bots at three levels. Easy calls too much, Normal plays position ranges and pot odds, and Hard runs a Monte Carlo equity estimate on every decision. All of it runs on the Workers free plan, so the Hard bot’s simulation count was set from CPU times measured on the live deploy, not on a laptop.

A table in a side panel

A side panel is about 320 pixels wide and the extension cannot change that. The tables are CSS size containers that scale seats, cards and chips to the room they actually get, and an automated layout test checks laptop-sized panels for overlapping text and scrolling at every stage of a hand.

Built with

  • TypeScript
  • Preact
  • Chrome MV3
  • Cloudflare Workers
  • Durable Objects
  • D1
  • WebSocket

What I learned

  1. The client never decides anything. Every shuffle, deal and payout happens on the server, so a cheater has nothing to edit.

  2. One Durable Object per player and per table means no race conditions: a double-clicked bet simply queues.

  3. A free hosting tier is a real budget. Password hashing and bot simulations were measured in CPU milliseconds on a live deploy before they were tuned.