A Daydream Scope plugin that runs ComfyUI workflows as real-time pipelines.
Users wrap ComfyUI nodes into a subgraph, promote the widgets they want exposed as controls, export the workflow JSON, and drop it into this plugin's workflows/ directory. Each workflow automatically becomes a Scope pipeline with UI controls generated from the promoted widgets.
- ComfyUI's subgraph system lets users bundle nodes into a single unit with explicitly chosen inputs (promoted widgets).
- The plugin parses the exported workflow JSON, reads the subgraph definition and promoted widgets, and generates a Pydantic config class for each workflow.
- At runtime, Scope's pipeline manager instantiates the pipeline, which uses the hiddenswitch/ComfyUI embedded client to execute the flattened workflow graph.
# 1. Install ComfyUI (--no-deps to avoid conflicts with Scope's torch, etc.)
uv pip install --no-deps "comfyui @ git+https://github.com/hiddenswitch/ComfyUI.git@87606c5"
# 2. Install this plugin (pulls in remaining execution deps)
uv pip install -e notes/scope_plugins/scope-comfyui- In ComfyUI, select the nodes you want to use and wrap them as a subgraph.
- Promote the widgets you want to control from Scope (right-click a widget, "Promote to Subgraph Input").
- Export the workflow as JSON and place it in
scope_comfyui/workflows/. - Start Scope. The workflow appears as a pipeline with controls for each promoted widget.
Edit scope_comfyui/config.yaml to point ComfyUI at your custom nodes and models:
# Primary workspace (custom_nodes/, models/, input/, output/ subdirs)
base_path: ~/.comfyui
# Additional search paths
base_paths:
- /path/to/shared/models
# Fine-grained model paths (ComfyUI YAML format)
extra_model_paths_config:
- /path/to/extra_model_paths.yamlIf your workflows use custom nodes, install their dependencies into the Scope environment separately.
- One subgraph per workflow file (no nested subgraphs)
- New workflows require a server restart
- Image I/O between Scope and ComfyUI uses temp files
- No custom node installation management
- No VRAM estimation