SvelteKit browser demo for logic-grid and logic-grid-ai. Live at https://logic-grid.stefer-anton.workers.dev.
From the repo root:
npm run -w packages/demo devThe AI-themed category and clue-rewrite endpoints (/api/theme, /api/rewrite-clues) need ANTHROPIC_API_KEY in the env. Plain puzzle generation works without it.
Auto-deploys on push and PR via Cloudflare Workers Builds — the connection lives in the Cloudflare dashboard, not in this repo or .github/workflows/. Worker name: logic-grid.
Build: npm run build produces .svelte-kit/cloudflare/. Adapter: @sveltejs/adapter-cloudflare.
- Set
ANTHROPIC_API_KEYas a Worker secret (wrangler secret put ANTHROPIC_API_KEYor via the dashboard). - Workers Observability must be enabled in the dashboard — the
observabilityblock inwrangler.jsoncis not sufficient on its own.