Nodes/Dustin ComfyUI Nodes/Dustin Text Prefix
ComfyUI Node

Dustin Text Prefix

The string-splicing node that's secretly the pack's foundation

By zihualiu1997·Created 4 months ago·Updated 4 months ago· 1
Dustin Text Prefix
    • text
    text
    prefix
    separator

    This is the smallest node in the pack, and the author is upfront that it's deliberately small. The pack README literally calls it a first node "intentionally small so you can verify repository structure, loading behavior, and publishing flow before adding more advanced nodes." So you're looking at a smoke test that happens to do a tiny bit of useful string work. That's not a knock - it means this pack is a starter template for publishing your own nodes, and Dustin Text Prefix is the hello-world. It also means nothing here is complicated enough to break.

    What it does

    Three string inputs in, one string out. text is your source, prefix is what gets stuck on the front, and separator is the glue between them (defaults to a single space). So text = "a small cat reading a book", prefix = "masterpiece", separator = ", " gives you "masterpiece, a small cat reading a book". If you leave prefix empty, it just passes text through untouched - the separator never shows up as a dangling comma. That pass-through behavior is the one bit of polish worth knowing about.

    Where you'd actually use it

    ComfyUI is mostly plumbing nodes (the KB calls it the plumbing layer for a reason - a workflow is ~70% non-pixel nodes), and this is a value node: one string source, many consumers. The genuinely handy move is converting the text input to a wire and feeding it from a Primitive node, then using this node to prepend a quality tag to a prompt line that's defined elsewhere. Same trick works for building filenames or stamping prefixes onto captions before they hit a text encoder.

    Honest take: for a single prefix you'd normally just type "masterpiece, " into the prompt box. This earns its keep when the prefix changes in one place and fans out to several prompts, or when you want to prepend something programmatically downstream. It is not a node you build a workflow around; it's the tool you grab when the alternative is editing five prompt boxes.

    Install and troubleshooting

    Install is the pack standard: clone it into ComfyUI/custom_nodes, restart, and the nodes appear under the "Dustin" search prefix (full steps below). This node uses only the Python standard library, so there's nothing extra to install for it specifically - the pack's only real dependency is requests, and that's for the Marble API nodes, not this one. If it's not showing up after install, the usual suspects apply: you cloned it into the wrong folder, or you didn't fully restart ComfyUI.

    Installing the pack

    cd ComfyUI/custom_nodes
    git clone https://github.com/zihualiu1997/dustin-comfyui-nodes
    

    Then restart ComfyUI. Or skip the terminal entirely: open ComfyUI Manager, search "dustin-comfyui-nodes", and install it from the registry. Either way, search "Dustin" in the node menu after a restart and the whole pack shows up. No model files to download - nothing here runs a checkpoint.

    CategoryDustin Nodes/Text

    Inputs (3)

    NameTypeDefaultDescription
    textSTRING
    prefixSTRING
    separatorSTRING

    Outputs (1)

    NameTypeDescription
    textSTRING