https://github.com/poran-dip/game-lobby
A clean, real-time lobby system for multiplayer games built with Node.js and Socket.IO. Perfect foundation for card games, board games, or any multiplayer experience!
https://github.com/poran-dip/game-lobby
card-game express game game-lobby lobby real-time socket-io
Last synced: about 14 hours ago
JSON representation
A clean, real-time lobby system for multiplayer games built with Node.js and Socket.IO. Perfect foundation for card games, board games, or any multiplayer experience!
- Host: GitHub
- URL: https://github.com/poran-dip/game-lobby
- Owner: poran-dip
- License: mit
- Created: 2025-09-07T15:05:00.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2026-03-29T17:08:38.000Z (3 months ago)
- Last Synced: 2026-03-29T19:27:55.172Z (3 months ago)
- Topics: card-game, express, game, game-lobby, lobby, real-time, socket-io
- Language: JavaScript
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Game Lobby System
A clean, real-time lobby system for multiplayer games built with Node.js and Socket.IO.
Perfect foundation for card games, board games, or any multiplayer experience!
## Features
- **Create & Join Lobbies** - Named lobbies with optional passwords
- **Real-time Updates** - See members join/leave instantly
- **Host Controls** - Only lobby creator can start games
- **Smart Cleanup** - Inactive lobbies auto-remove after 30 minutes
- **Responsive UI** - Clean design that works on mobile
- **Game Ready** - Includes deck initialization for card games
## Quick Start
```bash
git clone https://github.com/poran-dip/game-lobby
cd game-lobby
npm install
npm start
```
Open `localhost:3000` and start creating lobbies!
## How It Works
1. **Create/Join** - Make a lobby or join by name
2. **Wait for Players** - See live member updates
3. **Start Game** - Host clicks start (2+ players needed)
4. **Ready to Play** - Game initialization begins
## Adding Your Game
Extend the `startGame()` function in `server.js`:
```javascript
function startGame(roomId) {
const room = rooms[roomId];
// Add your game logic here!
// Cards are already shuffled and dealt
}
```
## Perfect For
- Card games (Uno, Poker, Hearts)
- Board games (Chess, Connect Four)
- Turn-based strategy games
- Trivia/quiz games
- And anything that needs a lobby system, really!
## License
MIT - Build something awesome! 🎮