Display string
A string you can actually read
- ui_widget
- string
Every ComfyUI user hits the same wall: strings flow invisibly through the graph. Your prompt gets assembled, your LoRA tags get parsed, your filenames get built - and at no point can you actually see what's in the wire. LF_DisplayString fixes that with a single input, a clean widget, and a pass-through output. It's the tool you reach for when "trust me, it's a string" stops being good enough.
Think of it as a print statement for your node graph. Wire any string into it and the value renders on the node, nicely formatted, no terminal required. When a prompt isn't coming out the way you expect, this is how you check whether the problem is your text or your logic.
How it works
One required input - string ("String value.") - and one behavior: show it, and hand it back out. The string output is the same value you fed in, which means the node slots anywhere in a chain without breaking it. Slip it between a prompt builder and your CLIP text encode and you get a live readout of exactly what's about to hit the encoder, and the data keeps flowing to the encode anyway.
Since it's an output node (is_output_node in the schema), it behaves as a sink for display purposes, but the pass-through output means it's also a perfectly useful inline checkpoint. ComfyUI's own primitive string widgets exist, but they're editing tools - this is a reading tool, and it shows up in workflows precisely where the built-in widgets don't.
The inputs and outputs that matter
string(required) - the text to display. That's the whole input list.string(output) - same text, passed through. Wire this onward if you used the node mid-pipeline.
That's it. There's no formatting, no parsing, no surprises. The value you put in is the value you get back - which is the entire point of a display node.
Installing it
Part of the LF Nodes pack, so install the pack and this node comes along:
cd ComfyUI/custom_nodes
git clone https://github.com/lucafoscili/comfyui-lf
Restart ComfyUI after cloning. Or use ComfyUI Manager and search for LF Nodes. No model downloads and no heavy dependencies - the pack's requirements are just numpy, Pillow, opencv-python, requests and torch, so this is a five-second install even on a fresh setup.
Gotchas
Two things worth knowing. First, the display widget is custom frontend code. If the node shows up but the text area never renders, your pack frontend didn't load - update via Manager or restart clean rather than chasing the node itself.
Second, the same legacy caveat applies to this whole pack: comfyui-lf is frozen (last update Feb 2025) and development has moved to lucafoscili/lf-nodes. The frozen build is stable and works fine, but if you're building new workflows it's worth checking the new repo - the same nodes ship there with the newer LF Widgets frontend.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| string | STRING | String value. | |
| ui_widgetopt | KUL_CODE | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| string | STRING | — |