ComfyUI Extension: comfyui-template-string

Authored by tennantje

Created

Updated

0 stars

Run ComfyUI workflows without the setup

No installs, no CUDA version roulette, no GPU sitting idle on your bill. Bring a workflow and run it in the browser.

A simple ComfyUI custom node for string interpolation.

Looking for a different extension?

Custom Nodes (1)

README

ComfyUI Template String

A simple ComfyUI custom node for string interpolation. Define a template with {} placeholders, wire up to 10 string inputs, and the node substitutes them in order. Anything inside the braces — e.g. {subject} — is treated as a comment and discarded during substitution, so you can label slots for readability without affecting the output.

Usage

  1. Add the Template String node (category: text)
  2. Write a template with {} placeholders. You can put anything inside the braces (like {subject} or {1}) as a label — it's ignored during substitution, only the position matters
  3. Wire string outputs from other nodes (Set/Get, primitives, etc.) into input_1 through input_10 (all 10 slots are optional)
  4. Placeholders are replaced left-to-right by the connected inputs

Example

Template:

a {subject} in a {setting}, {lighting} lighting, {quality}

Inputs:

  • input_1: burger
  • input_2: dim restaurant
  • input_3: cinematic
  • input_4: 8k

Output:

a burger in a dim restaurant, cinematic lighting, 8k

The names subject, setting, lighting, and quality are just labels — a {} in a {}, {} lighting, {} would produce the same result. Unconnected inputs are skipped, and unused placeholders are left as-is.

Install

Copy or symlink into your ComfyUI custom nodes directory:

cd /path/to/ComfyUI/custom_nodes
git clone https://github.com/YOUR_USERNAME/comfyui-template-string.git

Restart ComfyUI. No pip dependencies required.

Run ComfyUI workflows without the setup

No installs, no CUDA version roulette, no GPU sitting idle on your bill. Bring a workflow and run it in the browser.

Learn more