Nodes/ComfyUI-Pixaroma/Save Text Pixaroma
ComfyUI Node

Save Text Pixaroma

A prompt journal that writes itself to a .txt

By pixaroma·Created 7 months ago·Updated about 20 hours ago· 442
Save Text Pixaroma
    • text
    ◄text—►
    ◄name—►

    Save Text Pixaroma is for when you try a lot of prompts and the good ones get lost. Wire any text in - your own, or whatever an LLM prompt generator hands back - and every run adds it to a list on the node, one entry under the other. The list is also written to a .txt file, so what you tried today is still there tomorrow. It's the node you didn't know you needed until you've burned an hour reconstructing a prompt from a screenshot.

    The plumbing is deliberately simple. The text passes straight out of the output unchanged, so the node can sit in the middle of a chain or off to the side quietly collecting. Running again without changing anything adds nothing, so re-running doesn't fill the list with copies of the same prompt. The line under the box always tells you where you stand: green and saved means the file matches what you see, orange and not saved yet means you've edited it since.

    The behaviors that matter

    • Clear never deletes your file. It keeps the file it already wrote and starts a new one, so clearing is turning a page, not throwing anything away.
    • %counter% in the filename keeps the numbering going so nothing is ever overwritten.
    • Choose any folder with Browse, or just type a path.
    • Entries are separated by a blank line - which is exactly Prompt Pack Pixaroma's format, so a saved file pastes straight back in to re-run your best prompts. If one of your prompts happens to contain a blank line of its own, the node says so and tells you which separator setting to change.

    Inputs and outputs

    • text (STRING, optional) - the text to collect. Wire a prompt node, a Show Text, or an LLM prompt generator here. Each run adds one entry.
    • text output - the same text that came in, unchanged, so collecting doesn't alter your chain.

    Install

    It ships with the Pixaroma pack: ComfyUI Manager → search Pixaroma → install → restart, or:

    cd ComfyUI/custom_nodes
    git clone https://gitlab.com/pixaroma/comfyui-pixaroma.git
    

    No models, no extra dependencies - pure file I/O. The usual pack gotcha: after an update, hard-refresh the browser tab (Ctrl+Shift+R / Cmd+Shift+R); cached node visuals are the most common cause of "it looks broken right after updating."

    The one habit to build: put it somewhere you'll actually find the file later. The .txt goes wherever you told it, not into ComfyUI's output folder by default, so pick a folder you know. And don't clear "to save space" - that's the point of Clear; the old file stays right where it was.

    Category👑 Pixaroma/💬 Prompt & Text

    Inputs (2)

    NameTypeDefaultDescription
    textoptSTRINGThe text to collect. Wire a prompt node, a Show Text, or an LLM prompt generator here. Each run adds one entry. Running again without changing anything adds nothing, so re-running does not fill the list with copies.
    nameoptSTRINGOptional. The file name for this entry, used only when One file per entry is on in the settings. Wire a picture's filename from Load Images from Folder and each picture gets its own .txt with the same name, for example training captions.

    Outputs (1)

    NameTypeDescription
    textSTRINGThe same text that came in, unchanged, so this node can sit in the middle of a chain. Collecting does not alter it.