Nodes/ComfyUI_zfkun/Preview Text ๐Ÿ•๐Ÿ…ฉ๐Ÿ…•
ComfyUI Node

Preview Text ๐Ÿ•๐Ÿ…ฉ๐Ÿ…•

The one-line 'what does this string actually say' node

By zfkunยทCreated 3 years agoยทUpdated 6 months agoยท 23
Preview Text ๐Ÿ•๐Ÿ…ฉ๐Ÿ…•
    • text
    โ—„textโ€”โ–บ

    ComfyUI has no built-in way to just look at a string mid-graph. You've got a tagger, a text-processing chain, a translation node, whatever - and the value it's producing is invisible unless you route it somewhere you can read it. Preview Text is the fix: drop it inline, and it prints whatever string flows through it right on the node itself, no Save Text file, no console log, no guessing.

    How it works

    There's no processing here - this is a tap, not a transform. Whatever string comes in gets displayed on the node's face and passed straight through unchanged, so you can splice it into the middle of an existing chain purely to inspect a value without breaking the connection.

    The inputs and outputs that matter

    Dead simple, and that's the whole point:

    • text (required, STRING) - the value you want to see. Per the README this is meant for short/single-line strings and primitive-widget text, not a full prompt wall - that's what the Multiline sibling node is for.
    • Output: text - the same string, passed through, so you can keep chaining nodes after it instead of dead-ending your graph at a debug tap.

    How to install it

    Via ComfyUI Manager: search "ComfyUI_zfkun", install, restart. Manually:

    cd ComfyUI/custom_nodes/
    git clone https://github.com/zfkun/ComfyUI_zfkun
    pip install -r requirements.txt
    

    (swap in your venv's pip if ComfyUI runs inside one), then restart. No models, no heavy dependencies - this specific node has zero special setup beyond the pack install itself.

    Common issues & troubleshooting

    Nothing shows up on the node. Make sure something is actually wired into text - an unconnected required input just sits empty, it's not evaluating anything on its own. If you're feeding it from a Primitive node, double-check the primitive's type resolved to a plain string and not something ComfyUI is treating as a different widget type.

    You need to preview a big block of prompt text, not a short string. Use Preview Text (Multiline) instead - same idea, but sized and set up for the CLIP-text-style primitive rather than a short string.

    You've got a list of strings, not one string. This node isn't list-aware; a list connection will either error or only show you one item depending on how ComfyUI's list execution resolves it. Use Preview Text (List) for that case - it's built specifically to handle list-mode string connections.

    You just want to eyeball a value once and move on. That's the entire use case here - don't overthink it. Wire it in, run, read the node, disconnect it later if you don't want the clutter. It's cheap enough to leave scattered through a graph while you're building it out.

    Categoryzfkun ๐Ÿ•๐Ÿ…ฉ๐Ÿ…•

    Inputs (1)

    NameTypeDefaultDescription
    textSTRINGOriginal text content to be previewed

    Outputs (1)

    NameTypeDescription
    textSTRINGโ€”