A focused ComfyUI custom node for writing positive and negative prompts as strings and keeping a permanent, searchable prompt library.
Simple Prompt was originally extracted from the Simple Prompt work in PG-Nodes. It has since become an independent project with its own storage, cross-tab synchronization, history interface, search behavior, and variation grouping. This package intentionally contains only this prompt node, not the other PG-Nodes nodes.
Inputs:
- Positive prompt
- Negative prompt
Outputs:
- Positive prompt as a
STRING - Negative prompt as a
STRING
Prompts are saved only after the node runs as part of a workflow. Merely typing or editing text does not create history entries.
- Keeps every executed prompt without a configured history limit.
- Shares one package-local history database across nodes and browser tabs.
- Refreshes open History panels when the database changes.
- Searches positive prompts, negative prompts, and custom entry names.
- Supports quoted phrases and
-excludedsearch terms. - Tracks exact reuse counts and last-used times.
- Stores each exact prompt variation separately.
- Groups consecutive prompt experiments into expandable variation groups.
- Starts a new variation lineage after
New Promptor a substantial prompt replacement. - Allows a grouped variation to be removed from its group without deleting it.
History is stored at:
ComfyUI-Simple-Prompt/data/prompt_history.json
Writes are atomic and maintain a recovery copy at:
ComfyUI-Simple-Prompt/data/prompt_history.json.bak
The database belongs to this standalone package. It does not continuously import from PG-Nodes or expose a configurable history path, avoiding split databases and stale path settings.
Place this repository in ComfyUI's custom_nodes directory:
ComfyUI/custom_nodes/ComfyUI-Simple-Prompt
Restart ComfyUI, then add Simple Prompt (Standalone) from the Simple Prompt category.
The original node and History interface were derived from PG-Nodes. The standalone project exists because the prompt-only workflow evolved into a distinct single-node tool focused on reliable prompt history and reuse.
MIT
