Skip to main content

Game API

What this is: Cloudflare Worker strixun-game-api — idle-game persistence and API routes in GAME_KV, authenticated with suite OTP JWTs (cookie-based encryption pattern matches customer-api).

Worker entry​

  • Package: strixun-stream-suite/serverless/game-api/package.json (v1.0.0)
  • Main: worker.ts (v2.2.0 migration architecture) → dist/worker.js
  • Dev: wrangler dev --port 8794 --local --env development
  • Production route: game.idling.app/*

Bindings​

BindingRole
GAME_KVGame state and progression blobs
AUTH_SERVICEJWKS from otp-auth-service

Failure modes​

IssueCheck
401 on protected routesauth_token HttpOnly cookie from Auth Service
CORS from a new subdomainALLOWED_ORIGINS secret / wrangler.toml

Embeddable client library: Dice Board Game (Mods Hub admin import). Part of Stream Suite operator surface (idle overlay widgets in root Svelte app reference game API consumers).


Sources (audited): strixun-stream-suite/serverless/game-api/package.json, strixun-stream-suite/serverless/game-api/worker.ts, strixun-stream-suite/serverless/game-api/wrangler.toml