factoid-trivia
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v28View latest version
A realtime trivia game themed like a USPS post office, supporting up to 30 concurrent users.
- USPS post office themed design
- Real-time user presence (see who's online)
- Name entry and user management
- Support for up to 30 concurrent players
- Prepared for team knowledge trivia functionality
├── backend/
│ ├── index.ts # Main Hono server with WebSocket support
│ ├── database/
│ │ ├── migrations.ts # SQLite schema setup
│ │ └── queries.ts # Database query functions
│ └── routes/
│ └── websocket.ts # WebSocket connection handling
├── frontend/
│ ├── index.html # Main HTML template
│ ├── index.tsx # React frontend entry point
│ ├── components/
│ │ ├── App.tsx # Main app component
│ │ ├── NameEntry.tsx # Name entry form
│ │ └── UserList.tsx # Online users display
│ └── style.css # USPS-themed styles
└── shared/
└── types.ts # Shared TypeScript types
- The backend runs on Hono with WebSocket support for real-time features
- Frontend uses React with WebSocket client for real-time updates
- SQLite stores user sessions and game state
- USPS-themed styling with postal colors and typography
- ✅ User name entry
- ✅ Real-time user presence (up to 30 players)
- ✅ USPS theming
- 🚧 Team knowledge trivia functionality (coming next)