girlfriend_krillion

OpenKrillion 🦐

An independent, open-source Krillion-inspired trivia game, now a fully static site: seven fixed prompts, no server, no database, no accounts.

Source: openkrillion.com-service. Application code and original procedural assets are MIT licensed. This project is independent of, and not affiliated with, krillion.io. See THIRD_PARTY_NOTICES.md for the separate treatment of fonts and provider icons.

How the game works

Run locally

Use Node.js 22 or newer and npm.

npm ci
npm run build
npm run dev

Open http://localhost:3051. npm run build generates the HTML pages, docs, robots.txt, sitemap.xml and assets into public/. public/ is the whole site.

Host it

Upload or point any static host at the public/ folder after npm run build:

Before publishing under your own domain, update origin in src/config.mjs, then run npm run build again so canonical links, sitemap.xml and the AI docs use your domain. Analytics only load on the configured production hostname (see src/config.mjs).

Validation

npm test
npm run build
npm run check
npm run dev            # keep running in a second terminal
npm run test:browser
npm run test:audio
npm run test:mobile
npm run test:art

The browser audits drive the static dev server with Playwright. The art audit samples depth zones and outcome effects on desktop and mobile; companion SVGs are generated from original pixel geometry in scripts/pixel-art.mjs. The audio audit renders synthesized cues through OfflineAudioContext. The visual fidelity pass is recorded in docs/fidelity-audit.md.