Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > PR-comfy-prompt-db-9eb5fdba

ComfyUI Extension: PR-comfy-prompt-db-9eb5fdba

Repo Name

comfy-prompt-db-archive

Author
ComfyNodePRs (Account age: 0 days)
Nodes
View all nodes(1)
Latest Updated
2025-10-22
Github Stars
0.0K

How to Install PR-comfy-prompt-db-9eb5fdba

Install this extension via the ComfyUI Manager by searching for PR-comfy-prompt-db-9eb5fdba
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter PR-comfy-prompt-db-9eb5fdba in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

PR-comfy-prompt-db-9eb5fdba Description

Preserved historical source snapshot. comfy-prompt-db is a ComfyUI custom node package that saves and organizes reusable prompts by category, lets you edit individual entries, and combines selected prompts into one text output for workflows.

comfy-prompt-db-archive Introduction

comfy-prompt-db is a ComfyUI custom node package for keeping reusable prompts in one place. Instead of retyping the same descriptions for every image, you can save them under categories such as poses, styles, and quality, then select them in a workflow.

It provides two nodes in ComfyUI’s text category:

  • Prompt Database lets you select, edit, and save an individual prompt.
  • Prompt Stack combines several saved prompts into one text output.

For example, you could save a portrait pose, a cinematic style, and a quality description separately. Prompt Stack can bring them together when you need them, while letting you change one part without rewriting the others.

This documentation describes a preserved historical snapshot, not an actively maintained copy of the original repository. The available source is the archived comfy-prompt-db repository, preserved at commit 8fcd089. The original project was authored by Ben Staniford.

Screenshot of the comfy-prompt-db interface

How comfy-prompt-db Works

Think of the prompt database as a collection of labeled folders. A category is the folder, a prompt name is the label on an item inside it, and the prompt text is the description you want to use in an image workflow.

For example, a category named styles might contain a prompt named cinematic with the text cinematic lighting, dramatic shadows, film grain. Choosing that category and name retrieves the saved text. Prompts are kept in a JSON file, described in the archived README as user/default/user-db/prompts.json within the ComfyUI directory.

The two nodes use those saved entries in different ways:

  1. Prompt Database works with one prompt at a time. You choose a category and prompt, edit its text if needed, and use 💾 Save to store a new or updated entry. Its prompt_text output can connect to a node that accepts text.
  2. Prompt Stack builds one string from multiple saved entries. You choose which entries are enabled and set the text used to join them. Its stacked_prompts output can also connect to a node that accepts text.

Neither node needs an incoming connection to produce text. They supply text to the rest of your workflow; they do not generate an image on their own.

comfy-prompt-db Features

Organize and edit individual prompts

In Prompt Database, select a category from the first dropdown and a prompt name from the second. The saved text loads into the editor, where you can revise it. Click 💾 Save to keep your changes.

The fields below the dropdowns can also create entries:

  • New category and prompt: Enter a new category name and a prompt name, add the prompt text, then save.
  • New prompt in an existing category: Select the category, enter a new prompt name, add its text, then save.
  • Update an existing prompt: Select its category and name, change the text, then save.

Those name fields reflect the current selection, but you can overwrite them when creating something new. This makes it practical to maintain a small library of reusable descriptions rather than keeping many nearly identical full prompts.

Combine prompts with Prompt Stack

Prompt Stack assembles enabled entries in their numbered order. Each entry has a category, a prompt name, and an enabled setting. You can use ➕ Add Prompt Entry to include more entries and ❌ Remove Entry to remove an entry other than the first.

The separator controls what appears between the saved texts. Its default is a comma followed by a space: , . For example, three saved prompts might produce:

masterpiece, best quality, cinematic lighting, dramatic shadows, person standing in portrait pose

Changing the separator changes how the pieces meet, not the saved prompts themselves. Disabling an entry leaves it out of the combined output, which is useful when comparing a look with and without a particular style or detail.

The archived README says Prompt Stack restores its entries and selections when you load a saved workflow. Its dropdowns are intended to reflect the prompt database, with the prompt choices updating when you change categories.

Important distinction: The archived node source also defines a preview_text field, but its stacking function does not use that field to build the output. The output is assembled from enabled entries found in the saved database. Do not rely on typing into preview_text to change stacked_prompts.

Keep prompts between sessions

The archived README describes persistent storage in user/default/user-db/prompts.json. The database groups prompt names under category names, with each prompt name paired with its text. Sample categories described by the author are poses, styles, and quality.

The Prompt Stack source creates a prompts file with default prompts if one does not already exist. Its source also reads the file when producing an output, so a selected category and prompt name must still point to an entry containing text. If an enabled entry cannot be found or its saved text is empty, that entry is omitted from the combined result.

Troubleshooting comfy-prompt-db

A Prompt Stack entry does not appear in the output

  1. Check that the entry is enabled.
  2. Check that you selected the intended category and prompt name.
  3. Open that entry in Prompt Database and confirm it contains text.
  4. If you recently renamed or removed a saved prompt, select its current name again in Prompt Stack.

The archived source only adds an enabled entry when it finds nonempty saved text for that category and name.

The combined prompt has unexpected punctuation or spacing

Check the separator field in Prompt Stack. The default , inserts a comma and space between included prompts. If your saved prompt text already ends with a comma, the result may contain extra punctuation. Adjust the saved text or the separator to suit the format you want.

A newly created prompt is not available in a dropdown

First confirm that you clicked 💾 Save in Prompt Database. Then revisit the category and prompt selections in Prompt Stack. The archived README describes dropdowns that update from the database, but a workflow may also retain an older selection; reselecting the entry helps confirm what is currently available.

Prompt Stack produces an empty string

Check whether every entry is disabled, points to a missing category or prompt, or contains empty saved text. The archived source skips entries in those cases. If the prompts file cannot be read, the source also produces no saved prompt text for the stack.

Frequently asked questions

Do I need to connect another node into Prompt Database or Prompt Stack?
No. Both are standalone text-producing nodes. Connect their output to a workflow node that accepts text.

Does changing the separator edit my saved prompts?
No. It changes only how Prompt Stack joins the selected prompt texts.

Does text entered in preview_text become part of the stack?
No. In the preserved Prompt Stack source, that field is not used to construct stacked_prompts.

Can I use prompts from different categories together?
Yes. Each Prompt Stack entry has its own category and prompt selection.

Learn More about comfy-prompt-db

PR-comfy-prompt-db-9eb5fdba Related Nodes

RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

PR-comfy-prompt-db-9eb5fdba detailed guide | ComfyUI