Skip to content

tom-james-watson/wikitrivia

Repository files navigation

Wikitrivia

Wikitrivia is a year-based timeline trivia game built from Wikimedia data.

The live app is at wikitrivia.tomjwatson.com.

Setup

Install dependencies with Bun:

bun install

Create a local env file before running scripts that contact Wikimedia APIs:

cp .env.example .env

Then edit .env and set WIKITRIVIA_CONTACT_EMAIL to your email address. This will be used in API requests to identify yourself to Wikimedia.

Development

Run the app locally:

bun run dev

Then visit localhost:3000.

Build the static site:

bun run build

Serve the built out/ directory:

bun run start

Useful checks:

bun run typecheck
bun run lint
bun run format:check

Content

Game 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.

FAQ

Where does the data come from?

The data is sourced from Wikidata and Wikipedia.

I found a card with incorrect data. What should I do?

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.

About

Wikidata as a trivia card game.

Resources

License

Stars

Watchers

Forks

Contributors