Nodes/ComfyUI-mnemic-nodes/✏️ Literal String
ComfyUI Node

✏️ Literal String

One text box, wired to as many encoders as you like

By MNeMoNiCuZ·Created 3 years ago·Updated a day ago· 105
✏️ Literal String
    • value
    value

    ✏️ Literal String is a multiline text field with an output socket. Type, wire, done.

    The reason it's more useful than it looks is that text in ComfyUI tends to need to exist in several places at once. A prompt that goes into a positive encoder and a negative encoder and a filename template and a metadata node. A trigger word that appears in a prompt and in a LoRA training caption. If you retype it, you've created two sources of truth and the day will come when one of them is stale.

    So: type it once here, wire the value output everywhere. Change it in one place. That's the whole trick, and it's the same pattern as Primitive String in core - this pack just names it consistently with the rest of its ✏️ Literal family.

    Where it earns its keep

    • Prompt fan-out. Several CLIP Text Encode nodes wanting the same text, one source. Use the wire, not three copies of the string.
    • Feeding string-driven nodes. Wildcard processors, the prompt property extractor, the per-region pins on the Ideogram 4 builder, a saver's positive_override input - anything that takes a STRING can take it from here.
    • Trigger words and style prefixes you sprinkle across many prompts in one experiment. One edit propagates to all of them, which is exactly what you want when you're sweeping a single variable.
    • A labelled value on the canvas in a workflow someone else has to read. A text box floating next to the encoder is invisible; a node with a wire into it is documentation.

    What it doesn't do

    No processing at all. No wildcard resolution (that's the Wildcard Processor node in the same pack), no trimming, no string concat (there's a String Concat / Append node for that). It's raw text in, raw text out, which is the point - it's a source, not a transformer.

    Install

    ComfyUI Manager → search ComfyUI-mnemic-nodes, or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/MNeMoNiCuZ/ComfyUI-mnemic-nodes
    

    Restart. Nothing to download for this node, and since v3.0.0 the pack is written against ComfyUI's newer V3 node API with automatic workflow migration and a ? help page on each node.

    Honest note on the bundle: this node is a text field, but installing the pack drags in transformers, opencv-python, tiktoken, imageio, piexif, wonderwords and groq because ~40 nodes share one requirements.txt. If all you want is a string source, core ComfyUI's own primitives will do you fine - the reason to be here is everything else in the pack.

    Category⚡ MNeMiC Nodes

    Inputs (1)

    NameTypeDefaultDescription
    valueSTRINGText string value. Supports multiple lines.

    Outputs (1)

    NameTypeDescription
    valueSTRINGThe text entered above, passed straight through.