Optional edge brain layer

Cloudflare Worker API for the Site Operator Brain.

This kit lets the static website become a lightweight business operating system. The Worker can serve static assets, route messages, accept events, generate task receipts, and later connect to KV, Queues, Durable Objects, or Workers AI.

Endpoints included

GET /api/site-operator/status

Returns version, brain count, and deployment mode.

POST /api/site-operator/route

Routes a message to a primary and secondary cabinet brain.

POST /api/site-operator/event

Accepts operating events and stores them if KV is bound.

POST /api/site-operator/task

Creates task receipts and can publish to a Queue if bound.

Recommended production path

  1. Deploy static assets with the Worker asset binding.
  2. Add KV for event/task receipts once you want durable memory.
  3. Add Queues when tasks need async processing.
  4. Add Durable Objects only when you need real-time coordinated rooms.
  5. Add Workers AI only when you want edge LLM generation beyond local routing.