Extensions/WGC-Nodes
ComfyUI Extension

WGC-Nodes

Pack labeled text through one clean ComfyUI connection, then automatically rename the unpacked outputs to match.

By heyheywoah·Created 23 days ago·Updated 23 days ago· 1
heyheywoah/WGC-Nodes
Nodes10
On cloudLocal install
CategoryWGC/Text
Stars1
Updated23 days ago
Readme

WGC Nodes

Small, focused ComfyUI utilities.

WGC Nodes currently provides Pack Text and Unpack Text. Pack Text carries multiple labeled strings through one clean workflow connection. Unpack Text automatically renames its outputs to match those labels, so large prompt libraries stay readable without adding label data to the execution payload or invalidating ComfyUI's cache.

Reusable prompt libraries

Pack Text storing reusable prompt styles and Unpack Text exposing labeled outputs

Name each panel for its role and the connected Unpack node mirrors those names automatically.

Nodes

| Pack | Unpack | Slots | |---|---|---:| | Pack Text 3 | Unpack Text 3 | 3 | | Pack Text 5 | Unpack Text 5 | 5 | | Pack Text 10 | Unpack Text 10 | 10 | | Pack Text 20 | Unpack Text 20 | 20 | | Pack Text 30 | Unpack Text 30 | 30 |

Different sizes may be connected. Missing Unpack positions become empty strings, and extra packed positions are ignored.

Available sizes

Pack Text and Unpack Text nodes in all available capacities

Fixed capacities from 3 to 30 entries avoid cascading nodes or workflow-changing dynamic slots.

Usage

  1. Add a Pack Text node and name its text panels.
  2. Connect its bundle output to an Unpack Text node; the output names automatically update to match.
  3. Use the renamed STRING outputs wherever the individual text belongs.

Panels collapse independently, remember their editor heights, and use double-click label editing. Labels organize the workflow without becoming part of the execution payload.

Output label modes

  • Live follows Pack labels automatically.
  • Frozen keeps current labels until Refresh Labels is pressed.
  • Manual disables automatic changes so output labels can be edited normally.

Ordinary Reroute nodes are supported. Bundles may cross subgraph boundaries, but automatic display-label discovery across a subgraph boundary is not guaranteed in 0.1.0.

Cache-safe by design

Only text_01 through text_N enter ComfyUI's submitted prompt. Labels, accordion state, remembered heights, label mode, and refresh controls are frontend state, so reorganizing the editor does not invalidate downstream cache entries.

Installation

Clone into ComfyUI/custom_nodes and restart ComfyUI:

git clone https://github.com/heyheywoah/WGC-Nodes.git

After the first Registry release, install through ComfyUI-Manager or run comfy node install wgc-nodes.

Development

The package has no runtime dependencies.

python -m unittest discover -s tests -v
node --test tests/*.test.mjs

License

MIT