Nodes/ComfyUI_StarNodes/⭐ Star Easy-Text-Storage
ComfyUI Node

⭐ Star Easy-Text-Storage

A scratchpad for prompts that survives restarts

By Starnodes2024·Created 2 years ago·Updated about 12 hours ago· 102
⭐ Star Easy-Text-Storage
    • text
    modeLoad Text
    Save-NameMy Text
    Text-SelectorAceStep 1.5 System Prompt
    text_content

    Every regular ComfyUI user has the same pile of text they retype constantly: that one negative prompt you've tuned for months, the system prompt for your LLM node, the signature style block you append to everything. Star Easy-Text-Storage (StarEasyTextStorage) is a persistent text scratchpad for exactly that. You save a snippet once, give it a name, and load it by name in any workflow, on any graph, after any restart. Nothing else in core ComfyUI does this - you either hardcode text into nodes or rig up a primitive text node and copy-paste forever.

    How it works

    Under the hood it's a tiny JSON store - the pack keeps a json/startext.json file and reads/writes entries to it. The node has four modes:

    • Save Text - write text_content, give it a name in Save-Name, run. Saved.
    • Load Text - pick an entry from the Text-Selector dropdown (it populates from everything already saved), and the text comes out the text output.
    • Replace Text - overwrite an existing entry with new text_content.
    • Remove Text - delete an entry.

    The dropdown does the heavy lifting: since it reads the store on startup, any saved name shows up as a selectable option. The catch with a load-style node is that ComfyUI caches node inputs, so a change to storage isn't always visible until you touch the node or re-run - worth knowing when you save something and the dropdown looks stale.

    The inputs that matter

    • mode - Save / Load / Remove / Replace. The whole personality of the node.
    • Save-Name - the key. Name things like neg_custom, not stuff, because the dropdown is your entire search interface.
    • text_content - multiline, the actual snippet. Only needed in Save and Replace modes.

    Output is a single text (STRING), which feeds any prompt input, any LLM node, any text box in the graph.

    Where it earns its place

    Two genuinely good uses. First, shared negatives and quality modifiers: one node in a template workflow, load neg_best, and you never have to remember what's in it again. Second, feeding Ollama and other local-LLM nodes - the pack's Star Ollama Prompt Helper line pairs well here because system prompts get long and you don't want to retype a 400-token art critic persona every time. It also plays nice with the pack's other text utilities: pipe a loaded snippet through Star Text Filter if it needs cleaning before it hits a prompt.

    It's not a replacement for workflow metadata or the wildcards folder - those solve different problems (sharing and randomization respectively). This one is purely "remember this string for me." Given how many nodes in this pack are sampler wrappers that change behavior through text fields, a persistent text store is quietly one of the more useful little boxes in the kit.

    Install

    It ships in ComfyUI_StarNodes, so:

    • ComfyUI Manager → search Starnodes → install, or
    cd ComfyUI/custom_nodes
    git clone https://github.com/Starnodes2024/ComfyUI_StarNodes
    

    Restart, then find it under ⭐StarNodes/Text And Data. No extra dependencies beyond the pack's standard set.

    One more tip: because storage lives in a JSON file inside the pack folder, it survives ComfyUI updates but not a clean reinstall of the pack. If you have snippets you'd die without, keep them backed up somewhere too - the file is plain text, so it's trivially portable.

    Category⭐StarNodes/Text And Data

    Inputs (4)

    NameTypeDefaultDescription
    modeCOMBOLoad Text4 options: Save Text, Load Text, Remove Text, Replace Text
    Save-NameSTRINGMy Text
    Text-SelectoroptCOMBOAceStep 1.5 System Prompt18 options: AceStep 1.5 System Prompt, AceStep_Musik Maker LLM, BOOGU Image Prompt Refiner, Ernie Image Prompt Architect, Flux Klein Edit, Flux2(Klein) SysPrompt, +12
    text_contentoptSTRING

    Outputs (1)

    NameTypeDescription
    textSTRING