Orchestrate multi-step ComfyUI workflows with approvals, retries, and distributed GPU load balancing.
Graviton turns ComfyUI into a production-ready workflow engine. Chain multiple workflows together, add human approval gates, automatically retry failed steps, and distribute work across multiple GPU servers.
shortedGit.1.mp4
- Workflow Chaining - Build multi-step pipelines with dependencies
- Visual Editor - Drag-and-drop canvas for composing chains
- Approval Gates - Pause after a step, approve/reject, and continue
- Server Registry - Register worker machines from the frontend
- Bridge-Based Execution - Connect ComfyUI workers through Graviton Bridge
- Durable Runs - Temporal-backed orchestration survives restarts
- Live Progress - Real-time execution updates in the UI
- Docker & Docker Compose
- At least one machine running ComfyUI
git clone https://github.com/jaskirat05/graviton.git
cd graviton
cp .env.example .env
docker compose --profile infra --profile app up -d --buildOpen http://localhost:3000 after startup.
Install and follow setup from:
This installs the Graviton Bridge custom node in that ComfyUI instance.
From the Graviton frontend, register your server in Server Settings.
On successful registration, Graviton provides a worker control secret key.
On that ComfyUI/Bridge machine, put the key in the bridge .env:
GRAVITON_BRIDGE_CONTROL_HMAC_SECRET=<secret-from-graviton-ui>Use the dev override to mount source code into containers:
make dev
# or without make:
docker compose --profile infra --profile app -f docker-compose.yml -f docker-compose.dev.yml upThis runs the frontend in next dev mode and bind-mounts backend code so edits are reflected without rebuilding images.
Build local images:
make build
# or without make:
BACKEND_IMAGE=graviton-backend:dev FRONTEND_IMAGE=graviton-frontend:dev docker compose build graviton-worker graviton-frontendBuild and push versioned images:
make release VERSION=v0.1.0 REGISTRY=ghcr.io/<org>
# or without make:
BACKEND_IMAGE=ghcr.io/<org>/graviton-backend:v0.1.0 FRONTEND_IMAGE=ghcr.io/<org>/graviton-frontend:v0.1.0 docker compose build graviton-worker graviton-frontend
docker push ghcr.io/<org>/graviton-backend:v0.1.0
docker push ghcr.io/<org>/graviton-frontend:v0.1.0All workflows must follow these rules:
- Us 722F e Graviton save nodes only - Do not use default ComfyUI save nodes
- Exactly one save node per workflow - Each workflow must end with a single Graviton save node
- Use Graviton load nodes - Inputs must be provided through Graviton load nodes
- Multiple load nodes are supported - You can use multiple Graviton load nodes in the same workflow
When Graviton syncs a workflow, it stores workflow and override files under registry_templates/:
registry_templates/
├── workflows/
│ └── my_workflow.json
└── overrides/
└── my_workflow.json # Auto-generated overrides
To customize which parameters are editable in the UI:
- Open
registry_templates/overrides/my_workflow.json - Delete any parameters you don't want to be editable
- The remaining parameters will appear in the visual editor
To check if a workflow will work on a specific ComfyUI server:
- Open the visual editor
- Add your workflow node
- Select a server from the dropdown
- Click Validate
This checks if the server has all required custom nodes installed.
Register worker machines directly from the frontend.
After registration, copy the issued secret key to that machine's Graviton Bridge .env.
When a step has approval enabled:
- Workflow pauses after the step completes
- User reviews the output (image/video) in the UI
- Approve - Continues to next step
- Reject - Regenerates with new parameters
This enables iterative refinement without restarting the entire chain.
Licensed under PolyForm Noncommercial 1.0.0 for non-commercial/public use. See LICENSE.
Commercial use requires a separate license. See COMMERCIAL_LICENSE.md.