A web-based, free-play, multiplayer social casino game.
All In is a free game. No real money is ever used. Play chips only: no gambling, no purchases, nothing to pay for, ever. Chips have no cash value and can't be exchanged, transferred, sold or redeemed.
- No real money. No payments, store, payment libraries, cash-out or prizes. Cosmetics are earned, never sold.
- Server-authoritative. Shuffles, rolls, spins, rules, bet validation and every chip change run in Postgres
functions called with
supabase.rpc(). The browser can read its own balance and can never write it. - Hidden information stays hidden. Hole cards and the undealt deck are protected by RLS, not by the UI.
- Bot protection. Cloudflare Turnstile guards sign-up, log-in, code resends and password resets. Supabase Auth verifies the tokens, so the Turnstile secret never touches the front end.
- Publishable key only in the client. The secret / service-role key is never used in front-end code.
npm run check:copy scans the UI and email templates for currency symbols and words like
"deposit", "withdraw", "cash out", "buy" or "purchase" (the required "No purchases" disclaimers are allowed).
Vite · React 19 · TypeScript · Tailwind CSS v4 · Framer Motion · Zustand · @supabase/supabase-js v2.
It builds to a static site.
- 57 games. Live tables for blackjack, roulette, craps, nine kinds of poker and Teen Patti; live rooms for Crash, Bingo and horse racing; seven slot machines with a shared jackpot, one of them a seasonal machine that changes with the month; and about thirty solo games against the house (baccarat, video poker, dealer poker games, blackjack variants, keno, Plinko, Mines and more).
- Tournaments: Sit & Go poker, a multi-table Main Event, Slot Showdowns, a Daily Freeroll, and private tournaments and club events you set up yourself.
- Practice: step-by-step walkthroughs of blackjack, Hold'em, craps, roulette, baccarat and video poker, and seven drills to test yourself. Nothing is bet.
- Progress: XP and 100 levels, 85 achievements, earned cosmetics, daily and weekly missions, monthly seasons.
- Social: friends, clubs, leaderboards, profiles with records, and chat: typed (filtered, with a reputation that good and bad behaviour moves) and quick preset phrases.
- Moderation: reports, blocks, appeals, an admin page (site statistics, chat log search), and site notices and maintenance that can be switched by hand or scheduled.
- Music: a playlist shuffled on every screen, and a theme of its own for the seasonal slot (
src/assets/music/, with the licences inCREDITS.txt). - Terms of Service and Privacy Policy at
/termsand/privacy, agreed to at sign-up (their shared facts, such as the contact address and effective date, are insrc/lib/legal.ts).
.
├── .github/workflows/ deploy-pages.yml (GitHub Pages)
├── index.html
├── public/ favicon, CNAME, _redirects (Netlify SPA fallback)
├── vercel.json SPA fallback for Vercel
├── scripts/
│ ├── check-copy.mjs "no real money" copy guard
│ ├── test-sql.sh runs the SQL and its tests against a throwaway local Postgres
│ ├── gen-db-check.sh regenerates supabase/maintenance/check_database.sql
│ └── e2e/ local two-browser end-to-end tests (see CLAUDE.md)
├── src/
│ ├── App.tsx, main.tsx, index.css (design tokens)
│ ├── assets/music/ the game's music, and its licences in CREDITS.txt
│ ├── components/
│ │ ├── ui/, layout/, auth/, economy/, onboarding/, settings/, account/
│ │ ├── table/ what every live table shares (header, timers, quick chat, seats)
│ │ ├── blackjack/, roulette/, craps/, poker/, teenpatti/ the live table games
│ │ ├── slots/, solo/, more/, tablepoker/, stage10/ solo games and live rooms
│ │ ├── tournaments/, progress/, lounge/, cards/
│ ├── hooks/ useLiveTable (tables), useLiveRoom (shared rooms), useLobby, …
│ ├── lib/ supabase client, friendly errors, formatting, sound, per-game helpers
│ ├── pages/ one file per route
│ ├── routes/ auth guards
│ └── stores/ auth, wallet, progress, account, live data, settings, toasts
└── supabase/
├── sql/ 25 numbered, re-runnable SQL files and their README
├── maintenance/ scripts run by hand: database check, cleanup, maintenance off
├── email-templates/ confirm-signup.html, reset-password.html (+ subjects)
└── tests/ local-only Supabase stub and 20 SQL test files
Requirements: Node 22 (what CI uses) and a Supabase project.
npm install
cp .env.example .env # already filled in with the project URL and publishable key
npm run dev # http://localhost:5173Then follow SETUP.md to run the SQL files and configure the Supabase dashboard
(email OTP, password rules, email templates, SMTP, Realtime). supabase/maintenance/check_database.sql tells you
whether a database has everything the SQL files create.
| Command | What it does |
|---|---|
npm run dev |
Start the dev server |
npm run build |
Typecheck and build to dist/ |
npm run preview |
Serve the production build locally |
npm run typecheck |
TypeScript only |
npm run check:copy |
Copy guard for the "no real money" rules |
npm run check |
Typecheck + copy guard |
npm run test:sql |
Apply supabase/sql twice to a throwaway Postgres and run the SQL tests (needs Postgres 15+ binaries locally) |
bash scripts/gen-db-check.sh |
Regenerate supabase/maintenance/check_database.sql after changing any SQL file |
.github/workflows/deploy-pages.yml builds and deploys on every push to main, or on demand from the Actions tab.
- Repo Settings → Pages → Source: GitHub Actions.
- Push or merge to
main. The site appears at https://allin.carterscoding.com/ (custom domain, set in Settings → Pages and inpublic/CNAME). Without a custom domain it would behttps://cksarge.github.io/All-In/. - In Supabase, set Site URL to that address (see SETUP.md).
How it works on Pages: the workflow asks GitHub for the site's base path (/ on the custom domain, /All-In/
on a plain github.io project site) and builds with it,
and the build copies index.html to 404.html so deep links like /All-In/lounge still load the app
(GitHub Pages has no rewrite rules).
npm run build produces a static site in dist/. The two VITE_* variables are baked in at build time,
so set them in your host's build environment:
VITE_SUPABASE_URL=https://irwctaccrxtcoqsskjpy.supabase.co
VITE_SUPABASE_PUBLISHABLE_KEY=sb_publishable_16Wb-YS3WD6d6iq93tDRpA_pdMlm7xT
VITE_TURNSTILE_SITE_KEY=0x4AAAAAAFSY1ZizIBVxN3W0
# Only when serving from a sub-path (e.g. GitHub Pages project sites):
VITE_BASE=/All-In/
- Netlify: build command
npm run build, publish directorydist.public/_redirectshandles SPA routes. - Vercel: framework preset Vite.
vercel.jsonhandles SPA routes. - Cloudflare Pages: build command
npm run build, outputdist. SPA fallback is automatic. - Anything else: serve
dist/and rewrite unknown paths to/index.html.
After deploying, set Authentication → URL Configuration → Site URL in Supabase to your live URL.
| Phase | Scope | Status |
|---|---|---|
| 1 | Scaffold, design system, landing, auth (OTP), email templates, profiles, chip economy, SQL | ✅ Done |
| 2 | Lobby, tables & seats, Realtime plumbing, multiplayer blackjack | ✅ Done |
| 3 | Roulette, craps | ✅ Done |
| 4 | Poker: Hold'em, Omaha, Omaha Hi-Lo, Stud, Draw | ✅ Done |
| 5 | Six slot machines + shared progressive jackpot | ✅ Done |
| 6 | Baccarat, video poker, Three Card Poker, Pai Gow, Sic Bo, Keno, Big Six | ✅ Done |
| 6.5 | Ultimate Texas Hold'em, Dragon Tiger, Casino War, Crash, Plinko, Mines, Scratch Cards, Power Draw, Bingo | ✅ Done |
| 7 | XP, achievements, cosmetics, locker, leaderboards, profile, friends | ✅ Done |
| 8 | Tournaments (Sit & Go poker, Slot Showdowns, Daily Freeroll), game guides, sounds, animations, accessibility, mobile | ✅ Done |
| 9 | Admin and moderation, missions, monthly seasons, inbox, clubs, records, multi-table tournaments, quality of play | ✅ Done |
| 10 | 23 more games: six dealer poker games, four blackjack variants, four more poker games, three video pokers, Red Dog, Hi-Lo, Andar Bahar, Chuck-a-Luck, horse racing and Teen Patti tables | ✅ Done |
| 11 | Reputation and typed chat, Terms of Service and Privacy Policy | ✅ Done |
Free to play. No real money. No purchases. Chips have no cash value.