Skip to content

IR API

@stepupgaming/comfy-workflows/ir (also re-exported from the root).

SymbolPurpose
Graph, NodeInstance, SlotRef, ParamRefTypes
createGraph / addNode / connectImperative IR (prefer the builder)
serializeGraph / parseGraphTagged IR JSON
instantiateTemplateBind params/ports, renumber
graphHash / canonicalIrStringContent address
slot(node, out)Build a SlotRef
parseIrJson / serializeIrJsonTagged values
serializeComfyJsonWire JSON with raw bigint literals

Most apps should not build IR by mutating nodes dicts. Use workflow().

Graph IR

Released under the MIT License. Unofficial project. Not affiliated with or endorsed by Comfy Org.