All product workers
Content generator worker
content-generator
Scheduled and on-demand long-form content generation to D1 + downstream queues.
Runs on a cron, uses Workers AI and D1. Often paired with the site’s Content Agent demo for the same marketing story: edge generation + storage.
Related interactive UI
/demos/content-generatorSource
- Path
- apps/content-generator
- Entry
- src/index.ts
- Config
- wrangler.toml
Bindings (summary)
- DB (D1)
- AI
- crons
Set real IDs, buckets, and secrets in the Cloudflare dashboard or via wrangler secret put to match this repo’s wrangler file.
Commands
cd apps/content-generator && npm run dev
cd apps/content-generator && npm run deploy