Extensions/Prompt Helpers
ComfyUI Extension

Prompt Helpers

Nodes which make it much easier to manage prompts

By Pauan·Created 8 months ago·Updated 5 months ago· 3
Pauan/comfyui-prompt-helpers
Nodes25
On cloudLocal install
Categorysd, prompt_helpers/controlnet
Stars3
Updated5 months ago

Nodes (25)

Apply Loras

The LoRA workhorse you'll probably never click (and that's fine)

sd
Concatenate ControlNet

Stack two ControlNets without the spaghetti

prompt_helpers/controlnet
Concatenate JSON

Prompt libraries without the copy-paste

prompt_helpers/prompt
Debug JSON

See exactly what your JSON prompt actually becomes

prompt_helpers/prompt
Debug JSON Prompt

The final prompt text your CLIP encoder actually reads

prompt_helpers/prompt
Empty ControlNet

A ControlNet that does nothing — on purpose

prompt_helpers/controlnet
EZ Batch

Generate a whole grid of variations in one run

prompt_helpers/image
EZ txt2img

The txt2img start of every EZ workflow

prompt_helpers/image
EZ Checkpoint

Model loading with clip skip baked in

prompt_helpers
EZ ControlNet

One ControlNet, neatly wrapped for the EZ pipeline

prompt_helpers/controlnet
EZ Crop

Inpaint a region without the mask gymnastics

prompt_helpers/image
EZ Detail

The face fixer — a detail pass in a single node

prompt_helpers/image
EZ Filename

Timestamped filenames without the naming hacks

prompt_helpers
EZ Generate

The node that actually makes the image

prompt_helpers
EZ Generate Save

Generate and save in one stop — the pack's finish line

prompt_helpers
EZ img2img

Img2img and inpaint in one node

prompt_helpers/image
EZ Mask Regions

Give your JSON prompt real masks to reference by name

prompt_helpers/prompt
EZ Notify

A desktop ping when the queue finally finishes

prompt_helpers
EZ Prompt

The JSON prompt, wrapped and ready to sample

prompt_helpers/prompt
EZ Sampler

Sampler settings without the sigma spaghetti

prompt_helpers/sampler
EZ Upscale (Tiled)

EZ Upscale (Tiled)

prompt_helpers/image
Mask to Bounds

Mask to Bounds

mask
Parse Lines

Human-readable prompt files, machine-ready JSON

prompt_helpers/prompt
Parse YAML

Parse YAML

prompt_helpers/prompt
Prompt Toggle

The checkbox UI your prompts deserve

prompt_helpers/prompt
Readme

Prompt Helpers

Inspired by Prompt Palette, but remade from scratch with more features, bug fixes, and with Nodes 2.0 support.

Quickstart

  1. Install ComfyUI
  2. Install ComfyUI-Manager
  3. Look up this extension in ComfyUI-Manager.
  4. Restart ComfyUI.

Features

Prompt Toggle node

The conditioning/helpers/Prompt Toggle node is similar to conditioning/CLIP Text Encode (Prompt), but enhanced with new features:

  • It supports BREAK which splits a single large prompt into multiple chunks.

    • Many models like SDXL have a limit of 75 tokens per prompt. You can use BREAK to split a large prompt into smaller chunks, which means you can now have more than 75 tokens in your prompt.

    • You can use BREAK to prevent concepts from bleeding. For example, you can use a prompt like this:

      1girl,
      blue_eyes,
      dress,
      
      BREAK
      
      1boy,
      green_eyes,
      jacket,
      

      Because the BREAK splits the prompt into two separate chunks, this helps the AI to understand that the blue_eyes and dress belong to the girl, and the green_eyes and jacket belong to the boy.

    • You can use BREAK to separate your prompt into different sections (quality, background, artist style, composition, etc.)

      // Quality tags
      masterpiece,
      best quality,
      
      BREAK
      
      // Character tags
      1girl,
      1boy,
      
      BREAK
      
      // Composition tags
      absurdly_detailed_composition,
      dutch_angle,
      
      BREAK
      
      // Background tags
      sky,
      outside_border,
      
      BREAK
      
      // Artist tags
      konpeto,
      null_\(nyanpyoun\),
      tomoshibi_hidekazu,
      

      This clean separation can help the AI better understand different elements of the image.

  • For each line in the prompt, it displays a checkbox which makes it very easy to enable or disable that line.

  • For each line in the prompt, it displays the weight, and a - and + buttons which make it very easy to increase or decrease the weight of that line.

  • It automatically cleans up the prompt, keeping it clean and readable, and preventing unnecessary tokens.

You can have multiple tags per line, making it easy to enable / disable the entire tag group, or you can put each tag onto a separate line.

You can also have freeform text, such as An anime illustration of a girl and boy. They are standing next to a tree, with the sky in the background.

Develop

cd ComfyUI/custom_nodes
git clone https://github.com/Pauan/comfyui-prompt-helpers.git prompt_helpers
cd prompt_helpers
yarn install
yarn build

The backend nodes are in src/prompt_helpers

The frontend JS code is in js/main.js

Unit tests are in tests