Skip to main content

Pre-built subgraph blueprints for ComfyUI

Project description

comfyui-subgraph-blueprints

Pre-built subgraph blueprints for ComfyUI.

Subgraph Blueprints are reusable workflow components that appear as single nodes in ComfyUI. They abstract complex node configurations into user-friendly creative primitives like "Text to Image" or "Image Edit".

Installation

pip install comfyui-subgraph-blueprints

Blueprint Format

Blueprints use the native ComfyUI subgraph format with definitions.subgraphs:

{
  "id": "workflow-uuid",
  "nodes": [{"id": -1, "type": "subgraph-uuid", ...}],
  "definitions": {
    "subgraphs": [{
      "id": "subgraph-uuid",
      "name": "Text to Image (Flux.1 Dev)",
      "inputs": [{"name": "text", "type": "STRING"}, ...],
      "outputs": [{"name": "IMAGE", "type": "IMAGE"}],
      "nodes": [...],
      "links": [...]
    }]
  }
}

Usage

from comfyui_workflow_templates_core.loader import (
    iter_blueprints,
    get_blueprint_entry,
    get_blueprint_asset_path,
)
import json

# List all available blueprints
for blueprint in iter_blueprints():
    print(f"{blueprint.blueprint_id}")

# Load a specific blueprint
entry = get_blueprint_entry("text_to_image_flux_1_dev")
path = get_blueprint_asset_path("text_to_image_flux_1_dev", "text_to_image_flux_1_dev.json")

with open(path) as f:
    data = json.load(f)
    subgraph = data["definitions"]["subgraphs"][0]
    print(f"Name: {subgraph['name']}")
    print(f"Inputs: {[i['name'] for i in subgraph['inputs']]}")
    print(f"Outputs: {[o['name'] for o in subgraph['outputs']]}")

Available Blueprints

Categories include:

  • Text to Image: Flux, Qwen-Image, Chroma, Omnigen2, etc.
  • Image Editing: Flux.2 Klein, Qwen, Chrono
  • Text to Video: LTX 2.0, Wan 2.2
  • Image to Video: Kandinsky5, Wan 2.2
  • ControlNet: Qwen-Image, Z-Image-Turbo
  • Inpainting/Outpainting: Flux.1 Fill, OneReward, Qwen-Image

Contributing

See the main repository for contribution guidelines: https://github.com/Comfy-Org/workflow_templates

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

comfyui_subgraph_blueprints-0.0.6.tar.gz (201.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

comfyui_subgraph_blueprints-0.0.6-py3-none-any.whl (263.2 kB view details)

Uploaded Python 3

File details

Details for the file comfyui_subgraph_blueprints-0.0.6.tar.gz.

File metadata

File hashes

Hashes for comfyui_subgraph_blueprints-0.0.6.tar.gz
Algorithm Hash digest
SHA256 8c685b0e0da78d930e19880fa5ee162adb5dc7a923e7e983432b488b9d9e54cf
MD5 4af8c308012c6d1b6575a8f3fccb8118
BLAKE2b-256 f1cdd3e8374403e70f84a3be49bfb330be58fcdd92599450cbf2c6a86506e3d4

See more details on using hashes here.

File details

Details for the file comfyui_subgraph_blueprints-0.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for comfyui_subgraph_blueprints-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 3abc0afa2e58ce784030d1e1b72e81aee053013025ca90ebf87c9c1cb6bfa82a
MD5 7e872c12813b3d31aabaf36f047c7620
BLAKE2b-256 08b53ca887393e8df617832095d214be6b79a94cfb1eba86733e596c8925209f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page