2026Live
Quiz App
- JavaScript
- HTML
- CSS
- Vercel Functions
- Node.js
- Server-Sent Events
- Upstash Redis
- Gemini
- Groq
- Caddy
- Oracle Cloud
- node:test
Overview
Questions by category and difficulty (easy, medium, hard), playing with friends at the same time with a room code, AI questions checked by a second model and a daily question that is the same for everyone. Answers stay on the server, so it cannot be cheated from the browser.
01 · Problem
In browser quizzes the answers usually sit in the code or the network traffic, and a fixed question list is memorised after a few rounds. Playing with friends at the same time usually needs an account or a paid app.
02 · Solution
I moved the questions, timing and scoring to the server; the round state lives in a single-use token encrypted with AES-256-GCM. Templates that build questions from Wikidata and curated data (World Cups, rivers, historical events…) and an AI pool that Gemini writes every night and Groq checks without seeing the answer extend a bank of 796 hand-written questions. For playing with friends I wrote a dependency-free Node.js room server with Server-Sent Events, running on Oracle Cloud behind Caddy.
03 · Outcome
Answers reach the browser only after a question is answered, and in group games the server calculates the points too. The host chooses every setting, from timing and advance to a classroom mode. The project has zero npm dependencies and 213 tests.