Wikitrivia is a year-based timeline trivia game built from Wikimedia data.
The live app is at wikitrivia.tomjwatson.com.
Install dependencies with Bun:
bun installCreate a local env file before running scripts that contact Wikimedia APIs:
cp .env.example .envThen edit .env and set WIKITRIVIA_CONTACT_EMAIL to your email address. This will be used in API requests to identify yourself to Wikimedia.
Run the app locally:
bun run devThen visit localhost:3000.
Build the static site:
bun run buildServe the built out/ directory:
bun run startUseful checks:
bun run typecheck
bun run lint
bun run format:checkGame content comes from Wikidata Query Service snapshots in content/queries/ and is built into deck JSON under public/decks/.
For the content tooling, see content/README.md.
The data is sourced from Wikidata and Wikipedia.
If the underlying Wikidata item is wrong, fix it directly on Wikidata. It will then get synced back into the game the next time the decks are updated.