Take advantage of Cloudflare Workers, Durable Objects, and AI to auto-generate facts useful for a variety of guessing games. Live-edit a table along with AI, and view your cards rendered in real-time. State is persisted in a durable object.
Deployed at: https://cf-ai-factoids.byronli8565.workers.dev/
- Bun installed
- Cloudflare account with Workers AI access
-
Clone and install dependencies:
git clone <repository-url> cd cf-ai-factoids bun install
-
Configure Cloudflare:
# Login to Cloudflare bunx wrangler login -
Start development server:
bun run dev
The app will be available at
http://localhost:8787
bun run dev- Start local development serverbun run build- Build for productionbun run deploy- Deploy to Cloudflare Workersbun test- Run test suite
The application is configured via wrangler.jsonc and requires:
- AI binding: Workers AI access for generating factoid cards
- Model options include DeepSeek R1, Llama 3.3, Llama 3.1 Fast, Mistral Small, Gemma 3, and QwQ