FD Text Literal
A plain string constant you can wire to anything that takes text
- string
Feidorian_TextLiteral (FD Text Literal) does exactly one thing: it holds a string you typed and hands it to whatever you connect. One single-line input, one STRING output, no processing, no magic. It's the text-literal node every utility pack ships, and it exists because ComfyUI's built-in text fields are buried inside text-encode and conditioning nodes, which makes it annoyingly hard to reuse one string in several places.
Why you'd reach for it. The real payoff is when a piece of text has to appear more than once. Your prompt lives in one place, then fans out to a CLIP text encode, a filename or save node, and a metadata field. With core ComfyUI you'd retype it in every widget and they'd drift. With a literal node you author it once, wire the output everywhere, and edit one box to update the whole graph. It also lets you feed text into nodes that take STRING inputs but don't have a convenient widget - the FD save nodes' prompt_text, for instance, or a concat node further downstream.
How it works. The implementation is one line: return the string as-is. There's genuinely nothing to reverse-engineer. The input is string (single-line STRING, default empty) and the output is also string (STRING). What you type is what you get, character for character - no trimming, no interpolation, no newline handling.
The honest take. This is the kind of node you stop noticing you're using, which is the best thing you can say about a literal. The one real gotcha: a single-line widget is a pain for long prompts, and ComfyUI's own recent versions keep adding easier ways to hold text (multiline widgets, reroute-style primitives). If you need a big text area, the FD pack's TextBoxLiteral (the multiline sibling) is the better pick. And if you're mid-graph in a modern ComfyUI, you might not even need either - but this one is free, tiny, and does the job without ceremony.
One more thing worth knowing: this is from an archived pack, so the node is frozen. For a string constant that's a non-issue - there's nothing for it to grow into.
Install. ComfyUI Manager (search "feidorian-ComfyNodes"), or:
cd ComfyUI/custom_nodes
git clone https://github.com/Feidorian/feidorian-ComfyNodes
Restart ComfyUI and it's under the "FD" prefix in the literals category. No dependencies, no model files - installing the pack for a literal node is overkill, but it's a harmless freebie that arrives with the rest.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| string | STRING | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| string | STRING | — |