The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
To support dynamic custom loading, separate the node registration process based on the defs in the registerNodes function.
ltdrdata1f34bf08f065
diff --git a/web/scripts/app.js b/web/scripts/app.jsindex 64adc3e6a..9ecad8489 100644--- a/web/scripts/app.js+++ b/web/scripts/app.js@@ -1010,6 +1010,11 @@ export class ComfyApp {const app = this;// Load node definitions from the backendconst defs = await api.getNodeDefs();+ this.registerNodesFromDefs(defs);+ await this.#invokeExtensionsAsync("registerCustomNodes");+ }++ async registerNodesFromDefs(defs) {await this.#invokeExtensionsAsync("addCustomNodeDefs", defs);// Generate list of known widgets@@ -1082,8 +1087,6 @@ export class ComfyApp {LiteGraph.registerNodeType(nodeId, node);node.category = nodeData.category;}-- await this.#invokeExtensionsAsync("registerCustomNodes");}/**