What this lesson covers.
This module is one of 42 in the curriculum. Below is the canonical interactive lesson — tabs, cards, and diagrams from the source repo, rendered inside the course shell. There is no audio narration for this module - it ships as text + interactive lesson only.
If you prefer to read first and play with the demos after, the interactive lesson sits below this section. If you'd rather hear it narrated while you scroll, hit play on the sticky audio bar at the top — or just let it autoplay.
The lesson itself.
ComfyUI — Workflow as Code
Node graphs as version-controllable artifacts · the dataflow paradigm for image gen
The image-gen pipeline is a dataflow, not a sequence of calls
A ComfyUI workflow is a .json file you can version-control
workflow.json sits next to the output image. Treat it like code: commit it, diff it, share it. A typical Stable Diffusion workflow is 8-15 nodes; an advanced pipeline with ControlNet + IP-Adapter + LoRAs + upscaler easily hits 40-60 nodes. The JSON is the reproducible artifact.The ecosystem fragments, then re-converges
From the desktop UI to a serving endpoint
Try it: comfyui workflow graph.
Drag-and-drop node graph. Connect outputs to inputs, see a real Stable Diffusion workflow build itself.
Further reading.
The canonical references for this module. External links open in a new tab.
What to read next.
Use the pager below to move sequentially through the curriculum, or jump to any module from the course index. Each track has a "Prereq: ↑ foundation" callout so you can backfill anything that wasn't clear.