The video runner records scenes in a browser and joins them into videos. On Cloudflare it sleeps until the backend has work for it.

Inside the gateway

Key: Container Component. An arrow says what one element does to or asks of the other. Select a box with a page of its own to open it.
The container’s own parts are on Runners.

From a queued job to a finished one

Publishing to Stream

Worth knowing

  • One runner serves development and production. It claims jobs from each in turn and sends results back to the one the job came from. Each has its own token on the Worker, DEMO_RUNNER_TOKEN_<deployment>.
  • Connect sets the token. In the back office, Connect makes a new token, saves it on the Worker through Cloudflare’s API, then saves it in the backend.
  • A container only reads its tokens when it starts. If it refuses a token the Worker accepted, the Worker restarts it with the current ones.
  • It can only record public addresses, not a site running on someone’s own machine.
  • Title slides come from the back office. The runner opens that page without signing in, so Cloudflare Access has to let that one page through.
  • The code: runner/cloudflare/, scripts/demo-runner.ts and convex/demoVideos.ts.
Checked against the code on 4 December 2026.