Skip to content
Node packVerifiedExternal
Open source

ComfyUI-Prompt-DB

A powerful Prompt and LoRA database manager with a Web UI for ComfyUI

Maintainer@HalfikCodeUnratedgrade

Package profile

Status
Verified
Publisher
@HalfikCode
Source
GitHub

README

πŸ“¦ ComfyUI Prompt Database

A powerful prompt management system for ComfyUI. Store, categorize, search, and combine prompts with full LoRA integration β€” all from a beautiful built-in web UI.

Main Pipeline

Prompt Database Manager


✨ Features

πŸ—‚οΈ Prompt Management (Web UI)

  • Categories β€” organize prompts into named groups
  • Create / Edit / Delete prompts with a slide-out drawer
  • Search across names, text, and categories
  • Drag & Drop β€” reorder prompts and move them between categories
  • Grid & List views β€” toggle layout with persistent preference
  • Sorting β€” by name (Aβ†’Z / Zβ†’A), newest, oldest, category, or custom order
  • Export / Import β€” backup your entire database as JSON; import with Merge (append new, skip duplicates) or Overwrite
  • Keyboard shortcuts β€” Ctrl+N new prompt, / focus search, Esc close

πŸ“– LoRA Integration

  • Attach LoRAs to any prompt with custom strength values (supports negative values)
  • LoRA auto-discovery β€” scans your ComfyUI loras folder
  • Per-LoRA enable/disable toggle in Apply Lora Stack (inline circle ●)
  • Strength adjustment β€” β—€ β–Ά arrows or manual input, range -2.0 to 2.0
  • Reset to defaults β€” restore original prompt-defined LoRA strengths

πŸ”— Node System

Four nodes that work together:

NodePurpose
Prompt DB ManagerOpens the web UI for managing your database
Prompt SelectorPick one prompt from a category β†’ outputs text + LoRA stack
Prompt CombinerConnect multiple selectors β†’ combines all prompts into one string + merged LoRA stack
Apply Lora StackTakes a LoRA stack and applies it to model + clip

πŸš€ Installation

ComfyUI Manager

Search for "Prompt Database" in the ComfyUI Manager and install.

Manual

cd ComfyUI/custom_nodes/
git clone https://github.com/HalfikCode/ComfyUI-Prompt-DB.git

Restart ComfyUI. No additional dependencies required.


πŸ“‹ Nodes

Prompt DB Manager

Opens the Prompt Database web interface. Add it to your workflow and click the "πŸ“‚ Open Manager" button.

Outputs: None (management only)


Prompt Selector

Select a single prompt from a category.

Outputs:

OutputTypeDescription
prompt_textSTRINGThe selected prompt's text
db_selectionDB_SELECTIONCategory name (connect to Combiner)
lora_stackLORA_STACKLoRAs attached to this prompt

Prompt Combiner

Accepts multiple DB_SELECTION inputs (from Prompt Selectors). Each connected input shows a dropdown for selecting a prompt within that category. Combines all selected prompts into one string.

Inputs:

  • separator β€” how to join prompts: , / newline / space / none
  • selection_1..N β€” DB_SELECTION inputs (dynamic, auto-expands)

Outputs:

OutputTypeDescription
combined_promptSTRINGAll selected prompts joined by separator
lora_stackLORA_STACKMerged LoRAs from all selected prompts

Features:

  • Inline mute toggle (● circle) β€” mute individual categories without disconnecting
  • β—€ β–Ά arrows β€” cycle through prompts quickly
  • Click prompt name β€” opens dropdown for full selection
  • Prompts are combined in input order (selection_1, selection_2, ...)

Apply Lora Stack

Applies a LORA_STACK to model and clip.

Inputs:

InputTypeDescription
modelMODELBase model
clipCLIPCLIP model
lora_stackLORA_STACKLoRAs to apply

Outputs: model, clip (with LoRAs applied)

Features:

  • Per-LoRA toggle β€” click the circle (●) to enable/disable individual LoRAs
  • Strength control β€” β—€ β–Ά arrows to adjust, supports -2.0 to 2.0 range
  • Reset Values button β€” restores all strengths to prompt defaults
  • Missing LoRA files are skipped g

Nodes in this pack

4 nodes
  • ApplyLoraStack
  • PromptCombiner
  • PromptDBManager
  • PromptSelector

Sources

3 sources
GitHubSourceVersion 118e3afc206b3416349ee9c1d72e537410f4e9ec
github.com/HalfikCode/ComfyUI-Prompt-DB

Verified Oct 13

GitHubSource
github.com/HalfikCode/ComfyUI-Prompt-DB

Verified Nov 6

Source excerpts

1 excerpt

Source context: Repo HalfikCode/ComfyUI-Prompt-DB