How it runs
A Cloudflare Worker in front of one GPU machine. You never send anything to the machine, and it never accepts a connection from outside.
Two pieces
- The Worker serves the site, keeps accounts and jobs in D1, stores files in R2 and puts renders on a queue.
- The GPU machine polls the Worker over outbound HTTPS, takes one job, renders it with ComfyUI, uploads the result and reports back. No open ports, no tunnel, no inbound rule.
What it means for your files
Reference images and finished renders live in a private bucket. A download comes from the session you signed in with, or from a signed link that stops working after an hour. There is no public bucket URL, so a link pasted into a chat is not a permanent leak.
When the machine is asleep
Jobs wait in the queue instead of failing. A job whose worker disappears has its lease expire, and the sweep fails it and returns the credits. A failed render costs nothing.
Running it yourself
The source is one repository: a TypeScript Worker, the migrations, the test suite and a
Python client in worker/. Local setup is in the README:
npm install
cp .dev.vars.example .dev.vars
npm run db:migrate:local
npm run seed:local
npm run dev
Production setup is not published on this page. Creating the database, bucket, queues and
secrets, plus the first admin signup, are all in DEPLOY.md in the repository, next
to the code that needs them.
Configuring the GPU side
worker/makemeshes_worker.py uses the standard library only. It needs
MAKEMESHES_URL, MAKEMESHES_WORKER_TOKEN and
MAKEMESHES_HMAC_SECRET, matching the token and secret the Worker holds. Workflow
templates in worker/workflows/ are ComfyUI API graphs with placeholders such as
{{PROMPT}} and {{SEED}}.