--- layout: home hero: name: Comfy Workflows text: Code-first, typed, composable workflows for ComfyUI tagline: Stop hand-editing workflow JSON. Import an existing graph or author one in TypeScript, compile it deterministically, package it, and run it anywhere Comfy runs. actions: - theme: brand text: Build a workflow as code link: /code/quickstart - theme: alt text: Convert an existing workflow link: /migrate/import - theme: alt text: Product integration link: /product/architecture - theme: alt text: GitHub link: https://github.com/stepupgaming/comfy-workflows features: - title: Import what you already have details: Editor v0.4, workflow v1, and API/prompt JSON import into Graph IR. Node ids, titles, modes, and integers past 2^53 survive. link: /migrate/import linkText: Convert a workflow - title: Author in TypeScript details: Snapshot /object_info, generate typed node wrappers, then g.add(spec, params). Illegal wiring fails in the type checker, not in the queue. link: /code/quickstart linkText: Code-first quickstart - title: Ship as packages details: A workflow package is manifest + IR. Inspect and run never execute package JavaScript. GitHub is the canonical host; npmjs is a convenience mirror. link: /migrate/package linkText: Packages - title: Custom nodes, on purpose details: Codegen wraps the nodes your Comfy actually has. Setup installs verified Registry packs only after you approve the plan. run never installs Python. link: /guide/custom-nodes linkText: Custom-node guide - title: Use it inside a product details: TypeScript at build time. Generated IR at runtime. A Rust or Python app binds parameters and posts to Comfy. Node is not required as a production daemon. link: /product/build-time-vs-runtime linkText: Build-time vs runtime - title: Deterministic compile details: Same graph + same defs → byte-identical API JSON. Environment lock reports drift. Seeds are bigint end to end. link: /concepts/determinism linkText: Determinism ---
Typed composition, not pseudo-code
TypeScript is what you edit · Graph IR is the semantic document · Comfy JSON is a build artifact