🔬 v0.0.4 — Production Ready

The Poker Game Script
Built for Production

Full-stack online poker platform in TypeScript. Server-authoritative game engine, 7 poker variants, complete tournament system, and a 35-page admin panel. 8,400+ tests passing.

Explore Features →
docker compose up -d  # live in 5 minutes
213 Test Files 8,400+ Tests Passing TypeScript Strict Mode MIT License
8,400+
Tests Passing
7
Poker Variants
200
Concurrent Players Tested
35
Admin Panel Pages
Built on battle-tested technologies
Core Capabilities

Everything in one
poker game script

No feature flags, no upsells. Every feature listed below is included in a single licensed platform you self-host and control.

🎰

Server-Authoritative Engine

All game logic runs server-side. Clients send actions; the server validates everything. Zero client-side manipulation possible. Mutex-protected action processing prevents race conditions.

TableActionManager.ts
🔐

Cryptographic Card Shuffling

Fisher-Yates shuffle with Node.js crypto.randomInt() — the same cryptographic standard used by licensed online poker rooms. Not Math.random(). Provably fair.

DeckService.ts
🃏

7 Complete Game Variants

Texas Hold'em, Omaha PLO, Omaha Hi-Lo, Short Deck (6+), 7-Card Stud, Stud Hi-Lo, and Mixed Games (H.O.R.S.E. / 8-Game). All betting limits supported.

GameVariant.enum.ts
🏆

Full Tournament Engine

MTT, Sit & Go, Satellites. Auto table balancing, final table formation, rebuy/re-entry, guaranteed prize pools, up to 50 payout positions. Scale-tested to 200 players.

TournamentService.ts
🤖

AI Bot Players (6 Strategies)

Tight/Loose, Passive/Aggressive, Random, Heads-Up. Context-aware decision making with pot odds, position awareness, and human-like timing variance across 5 complexity levels.

BotStrategy.ts
🛡️

Enterprise Security

JWT dual-token rotation, TOTP 2FA mandatory for admins, AES-256-GCM encryption at rest, CSRF double-submit, multi-layer rate limiting, 7-tier RBAC with 50+ permissions.

AuthMiddleware.ts
💳

Multi-Currency Cashier

Stripe, Coinpayments (crypto), Bank Transfer, Manual — 4 payment providers. 9 currencies including BTC and ETH. KYC 4-tier, AML, sanctions screening, fraud detection.

PaymentGateway.ts
📊

35-Page Admin Panel

Real-time dashboard, user management, financial analytics, rake reporting, compliance tools, email campaigns, affiliate/agent systems, CMS, language management.

AdminRouter.tsx

Real-Time WebSocket Architecture

Single Socket.IO connection app-wide. Guaranteed delivery pipeline with client ACK and retry. Sequence tracking, 5-min reconnection window, Redis adapter for horizontal scaling.

SocketService.ts
// 10-state finite state machine
// Invalid transitions throw errors

enum GameState {
  WAITING    = 'WAITING',
  STARTING   = 'STARTING',
  PREFLOP    = 'PREFLOP',
  FLOP       = 'FLOP',
  TURN       = 'TURN',
  RIVER      = 'RIVER',
  SHOWDOWN   = 'SHOWDOWN',
  COMPLETE   = 'COMPLETE',
  PAUSED     = 'PAUSED',
  CLOSED     = 'CLOSED',
}

// Cryptographic shuffle
const i = crypto.randomInt(0, j + 1);
[deck[i], deck[j]] = [deck[j], deck[i]];
Game Engine

Production-grade poker logic, not a demo

The engine is built around a central Table class (~1,943 lines) with validated 10-state FSM transitions. Every hand follows the same deterministic path — impossible game states throw errors, not bugs.

  • Mutex-protected action processing — concurrent WebSocket actions cannot create race conditions
  • Two-layer validation: game state + bet validation on every player action
  • Automatic side pot calculation for unlimited all-in players simultaneously
  • Smart turn order per variant (UTG, bring-in by lowest card, etc.)
  • Configurable time bank with warning threshold and auto-fold grace period
Admin Panel

Run your poker room from one dashboard

A 35-page back-office management system organized into 8 navigation groups. Role-based access control, feature-gated visibility, and mobile-responsive design throughout.

  • Real-time platform metrics: users, tables, tournaments, withdrawals, system health
  • Full tournament lifecycle control: create, edit, start, pause, cancel
  • Fraud detection: collusion, multi-account, chip dumping, bot activity
  • Email campaign builder with audience targeting and deliverability tracking
  • 21 independently toggleable feature flags — turn any feature on/off live
// Feature toggle example
const features = {
  cashier:       true,
  tournaments:   true,
  privateGames:  true,
  bots:          true,
  affiliates:    true,
  realMoney:     true,
  virtualChips:  true,
  chat:          true,
  kyc:           true,
  aml:           true,
  // 21 total toggles...
}

// Revenue analytics
RakeAnalytics: {
  totalRake: "$12,847",
  avgPerHand: "$0.42",
  topTables: [...],
}
Tournament System

Every tournament format,
out of the box

Scale-tested to 200 concurrent players

Serializable transaction isolation prevents double-registration race conditions. Automatic table balancing, hand-aware safety (never moves players from active hands), and final table formation are all built in.

  • MTT, Sit & Go (auto-start), Satellite (ticket prizes)
  • 4 speed presets: Hyper-Turbo, Turbo, Regular, Deep Stack
  • Exponential blind escalation with pre-computed blind schedule preview
  • Level timer persisted in DB — survives server restarts
  • Rebuy & re-entry within configurable windows
  • Auto-renewal scheduling: daily, weekly, cron-like intervals
🏟️

Multi-Table MTT

Fixed start time, auto table creation, balancing

🎯

Sit & Go

Auto-start, template/instance arch, auto-replenish

🎫

Satellite

Win tickets to bigger tournaments, full lifecycle

💰

Prize Engine

50 payout positions, guaranteed pools, custom %

Licensing

Annual license. Self-hosted on your server.
No revenue share, ever.

Annual license. Self-hosted on your server. No revenue share, ever.

FAQ

Common questions

It's a self-hosted licensed platform — you deploy it on your own server and it runs entirely under your control. There's no SaaS dashboard to log into. Your player data never leaves your server. The license is annual; if you stop renewing, the platform continues to run as-is — you just won't receive updates or support.
The poker game script runs via Docker Compose. Minimum: 2 CPU cores, 4GB RAM, 20GB storage. The included docker-compose.yml handles PostgreSQL, Redis, Nginx, and the app container. A $20/month VPS is enough for a small launch. Scale with Redis adapter for horizontal scaling.
With Docker, you can have a test environment running in under 10 minutes with `docker compose up`. For a production deployment with SSL and a domain, plan for a few hours of configuration. The admin panel lets you configure everything — no code editing required for branding, game settings, or payment setup.
The poker game script is a software tool. Whether you operate it for real money gambling depends on your jurisdiction's licensing requirements — that's your responsibility. The script includes all the technical infrastructure: payment gateways (Stripe, crypto), KYC verification, AML reviews, and sanctions screening to support compliant operations.
The AI bots are designed to be human-like with 5 complexity levels of decision timing, +/-25% timing variance, and occasional "thinking pauses". They use separate bot accounts with dedicated avatars. Whether you disclose bot presence is your decision — the software supports transparent bot disclosure or silent table filling.
Developer license includes 6 months of email support for bugs and deployment questions. Professional license includes 12 months of priority support with 48-hour response. Enterprise includes dedicated Slack channel with SLA-backed response times and ongoing development assistance.

Ready to run your own poker script?

Join operators who chose a production-grade platform over vaporware. Self-hosted. No revenue share. No excuses.

View Licensing Options

Wait — see it in action first?

Get a live walkthrough of the game engine, admin panel, and tournament system before you go.

Have questions about our poker script? We reply fast.

Chat Now