ComfyUI Node

Text Storage

A labeled text box that survives the graph (and passes text through)

By turnbros·Created 11 months ago·Updated 10 months ago· 0
Text Storage
    • text
    text_block
    labelStored Text
    input_text

    Text Storage is the pack's answer to "I want a big, labeled text box in the middle of my workflow." You type a block of text into it, optionally give it a label, and it passes the text out as a STRING. That's the whole node - but in a graph full of anonymous little text boxes, a labeled, roomy one is quietly useful.

    You'll reach for it when a workflow has several distinct text values floating around and you keep losing track of which box feeds which encode. Stick a Text Storage node labeled "Base Prompt" before your positive conditioning and one labeled "Negative" before the negative, and the graph becomes readable at a glance. The label field is purely descriptive - it doesn't change behavior - but that's the point: it's metadata for you, the human fighting to keep a 40-node graph legible.

    Inputs and how the two text paths interact

    The required inputs are text_block (multiline, where you type) and label (a plain string, default "Stored Text"). The optional input_text is a wired input, and this is where the node gets slightly clever: if something is connected to input_text and it's non-empty, that wired value wins and text_block is ignored. So the node doubles as a pass-through - you can type a fallback into text_block, connect a live value into input_text, and the live value flows through until it's empty, at which point the typed text takes over. That's a handy "override" pattern: keep your default in the box, connect a conditional source, and let whichever is real win.

    Output

    One output: text, a STRING. Wire it to any text input downstream - CLIP encodes, filename prefixes, metadata, prompt builders. Because it outputs a plain string, it plays nice with the rest of the ecosystem, including the pack's own Text Concatenate if you want to merge the stored block with something else.

    Installing it

    ComfyBros installs like any custom node pack. ComfyUI Manager - search "ComfyBros" - is the easy route; otherwise:

    cd ComfyUI/custom_nodes
    git clone https://github.com/turnbros/ComfyBros
    

    Then restart ComfyUI. The pack README is stale (it points at a requirements.txt that doesn't exist; the real deps are declared in pyproject.toml and Manager handles them). Text Storage lives under ComfyBros/Text.

    Gotchas

    Honestly, there's not much to trip on here. The one behavior to remember is the override rule: a connected, non-empty input_text silently beats your typed text_block. If you plug something in and your typing stops mattering, that's expected - disconnect the wire or empty the source to let the box win. It's about as simple as a ComfyUI node gets, and that's the appeal.

    CategoryComfyBros/Text

    Inputs (3)

    NameTypeDefaultDescription
    text_blockSTRING
    labelSTRINGStored Text
    input_textoptSTRING

    Outputs (1)

    NameTypeDescription
    textSTRING