A playful daily riddle-and-logic mini game where users solve short puzzles in a 5-round “relay,” earning a final quirky story blurb assembled from their answers. The app includes a riddle deck (bundled JSON), hints with a small score penalty, a clean step-by-step solver UI, and a results screen with shareable summary text. Progress, streaks, and unlocked riddle packs are stored in localStorage, with clear component boundaries for Deck Browser, Relay Runner, Hint/Timer controls, and Stats/Rewards.
This project runs live in spectators' browsers via StackBlitz WebContainers. Use only WebContainer-compatible dependencies:
- Database: PGlite (
@electric-sql/pglite) — Postgres compiled to WASM - ORM: Drizzle ORM (
drizzle-orm/pglite) - No Turbopack: Next.js MUST use
next dev --no-turbopack(set in package.json scripts). Turbopack requires native bindings unavailable in WebContainers. - No native addons: Avoid
sharp,bcrypt,better-sqlite3,prisma, etc. - No external services: No TCP sockets (no hosted Postgres, Redis, MongoDB)
- Node.js only: No Python, Go, Rust, etc.
If this project uses a database, include a seed.ts file with realistic demo data that runs on every app boot. Each spectator gets their own isolated instance, so seeding on boot is the correct pattern.