Nodes/XB_ToolBox/XB-BOX - 🏷️ Canvas Label (文字标签)
ComfyUI Node

XB-BOX - 🏷️ Canvas Label (文字标签)

A sticky note for your ComfyUI graph that can't break anything

By wjluoxiao·Created 5 months ago·Updated 6 days ago· 302
XB-BOX - 🏷️ Canvas Label (文字标签)

      Every workflow you load six months later has a section you can't remember the purpose of. XB_CanvasLabel is the fix: a pure display node that renders a text label on the canvas so you can annotate your graph - "this branch is the upscale pass," "inputs go here," "DO NOT TOUCH." That's it. It has no inputs, no outputs, and no data flow. It exists to keep your graph readable.

      Sounds trivial until you've inherited a 200-node Wan pipeline. The pack ships it under the "Display" category precisely because workflow legibility is one of its design pillars - the README leans hard on helping beginners read and navigate big graphs.

      How it works

      The backend side is a no-op: the node class does literally nothing but exist (FUNCTION = "noop", returns nothing). All the rendering happens in the pack's frontend JavaScript, which draws your text as a canvas annotation. Since it carries no data, it can never block execution, error, or interact with anything else in the graph - the safest possible node.

      There's no text field in its info_schema (it's a zero-input node), so the text you type comes from the pack's custom UI on the node itself. Practically: you add the node, click into its widget, type your label, and leave it floating wherever you need context.

      Using it

      Placement is everything. Put one at the top of the graph ("generation params"), one above a dense chunk ("video branch - costs ~30GB"), one next to the save area. Because it can't affect execution, you can also use it as a breadcrumb in workflows you share with other people, which is where it actually earns its keep - shared graphs without labels are where beginners get lost.

      Installing

      It ships with XB_ToolBox, so install the pack once and it's in the menu under XB_ToolBox/Display:

      cd ComfyUI/custom_nodes
      git clone https://github.com/WJLUOXIAO/XB_ToolBox.git
      

      then restart ComfyUI. No dependencies beyond the pack's own JS.

      Common issues

      • Label text doesn't show / node looks broken - the label is frontend-rendered. A hard refresh (Ctrl+Shift+R) usually fixes stale JS; very old ComfyUI frontends may not render it.
      • "Can't find input" confusion - normal. It deliberately has none. Don't try to wire it.

      Honestly, if you're on an older ComfyUI without the built-in note/annotation features, this is a tidy replacement. If you do have native notes, this is still nicer for labeling specific clusters because it sits on the node like a caption rather than a floating box. Low ambition, low failure rate - the rare node that can't go wrong.

      CategoryXB_ToolBox/Display

      Inputs (0)

      No inputs

      Outputs (0)

      No outputs