Trivia Jam is a real-time multiplayer trivia game designed for social gatherings, classrooms, and events. Players join from their phones while questions and scores are displayed on a shared TV or large screen.
- Host Creates Game: A host starts a game and gets a unique game code
- Players Join: Players join using the game code on their phones at triviajam.tv
- Questions: The host presents numerical questions (e.g., "What year was the Declaration of Independence signed?")
- Fast-Paced Answers: Players submit their answers within a time limit
- Scoring: Points are awarded based on accuracy and speed:
- Exact answers get more points
- When no exact answers exist, the closest answer scores
- Faster correct answers rank higher
- Ties are handled fairly with averaged points
- Real-time Gameplay: Instant updates for all players using WebSocket technology
- Flexible Scoring: Supports both exact and closest-answer modes
- Time-Based Competition: Players race against the clock and each other
- Multiple Display Modes:
- Host View: Controls game flow and presents questions
- Player View: Mobile-optimized interface for submitting answers
- Spectator View: Large-screen display showing questions and scores
- Built with React and TypeScript
- State management using XState and Actor Kit
- Real-time updates via WebSocket
- Storybook for component documentation
- Fully tested with interactive stories
- Node.js 16+
- npm or yarn
# Install dependencies
npm install
# Run development server
npm run dev
# Run Storybook
npm run storybook
# Run tests
npm testBrowse our component library and UI documentation: Trivia Jam Storybook
Try Trivia Jam at https://triviajam.tv