gameawaypublic
by @imkylejk
GameWay: a self-hosted, invite-only play-money game night (live roulette, blackjack, crash, Dos, cases and more). Remix it and open /setup to create your Game Master.
gameawaypublic.noconfig.online
README.md
# GameWay: a private play-money game night GameWay is a self-hosted, invite-only "casino night" site for you and your friends. It uses **play money only**: there are no deposits, payouts or real money anywhere. Everyone starts with $100 of fake cash, and the Game Master (you) can top people up. **Live multiplayer** - Roulette with three public tables: Main, Turbo and High Roller - Wheel - Crash - Live Keno - Blackjack tables with spectating and replays - **Dos**, a 2–6 player card game with bet tiers and private tables - Tower Duel (1v1) - Coinflip with items **Solo** - Mines, Tower, Hi-Lo, Limbo, Slots, Dice and Plinko (low/medium/high risk) **Social** - Global chat plus a chat room for each game, with emotes, effects and a bad-word filter - Profiles with stock-style balance charts and per-game stats, and comparisons against other players - Case openings with collectible avatars and chat cosmetics - 1v1 friend rooms (Tic-Tac-Toe, Connect Four, Rock Paper Scissors) **Game Master tools** - One-time invite links - Add or remove money and refill power - Suspend, reset or delete players - Switch games on and off - Open and disband matches - Moderate chat - Change the site's **name, colours and SEO**, all from the browser ## Setting up your own copy (remix) 1. **Remix this project** on noconfig. Your copy gets its own empty database. 2. Open your new site. It sends you straight to **`/setup`** (e.g. `https://your-project.noconfig.online/setup`). 3. Fill in your site name, a Game Master username and a password, then click **Create my site**. This creates the database and your Game Master account and signs you in. > Whoever completes `/setup` first becomes the Game Master, so do it straight after remixing. > Once a Game Master exists, `/setup` is locked. 4. A short **guided tour** shows you around: games, chat, invites, game switches and site settings. You can replay it any time from **Game Master → Site settings → Take the tour**. 5. Go to **Game Master → Create invite link** and send the link to your friends. Each link works once. That's it. There's nothing to install or configure by hand. ## Customising Everything is in **Game Master → Site settings**: | Setting | What it changes | | --- | --- | | Site name & tagline | The logo text, loading screen, sign-in page and browser tab | | Page title & description | SEO tags and link previews when you share the site | | Theme presets / colours | Accent, highlight, background and panel colours, previewed live | Changes apply for everyone as soon as you save. ## Optional environment variables You don't need any of these. They're useful if you'd rather manage the Game Master account from config: | Variable | Purpose | | --- | --- | | `GM_USERNAME` / `GM_PASSWORD` | Creates (or re-syncs the password of) a Game Master on every start. If they're set, the `/setup` page isn't needed. | | `SESSION_SECRET` | Signs login cookies. If it's not set, a random secret is generated and stored in `.data/`. | | `DATA_DIR` | Where the JSON database lives (defaults to `.data/`). | Put them in `.env` or your host's environment settings. Never commit real secrets. ## Running locally ```bash npm install npm start # http://localhost:3000, then open /setup ``` Requires Node 22+. Data is stored in `.data/db.json`, so delete that folder to start fresh. ## How it's built - **Server:** Node + Express, a small JSON-file database, and bcrypt-hashed passwords. Every game outcome is decided on the server, and the browser only sends moves. Live games advance from the wall clock, so they pick up correctly after the app sleeps. - **Client:** dependency-free vanilla JS modules (`public/js/*`) with a hash router. All artwork (game icons, avatars, emotes and cards) is hand-built inline SVG. - **Security:** invite-only sign-up, JSON-only POSTs (CSRF protection), per-IP login throttling, suspended accounts are blocked at the API, and chat, usernames and bios go through a regex word filter. Have fun, and remember it's all play money!
Comments 0
- No comments yet. Say something nice.
Sign in or create an account to comment and react.