ComfyUI Extension
comfyui-prompter
prompt saver and loader for comfyui
sinfisum/comfyui-prompter
Nodes1
On cloudLocal install
Categoryutils
Stars0
Updated2 months ago
Readme
comfyui-prompter
π¨ ComfyUI Prompt Saver & Loader
A custom ComfyUI node to save, manage, and load prompts with a searchable dropdown, smart auto-save, and multi-file storage.

β¨ Features
- π Searchable Dropdown: Quickly find and load saved prompts (supports search like model loaders).
- πΎ Smart Auto-Save: Automatically saves 60 seconds after you stop typing. If the title exists, it appends
_auto_1,_auto_2, etc. - π Multi-File Storage: Prompts are saved as individual
.txtfiles, while anindex.jsonstores only the titles. - π‘οΈ No Escaping Issues: Because prompts are stored as raw text files, you can safely save complex JSON, YAML, or Markdown inside your prompts without corruption.
- β‘ On-Demand Loading: Only titles are loaded into the dropdown. The actual prompt text is fetched only when you select it, keeping ComfyUI fast.
- π Multi-Node Support: Use multiple instances of this node simultaneously; their states and timers are fully isolated.
π¦ Installation
Navigate to your custom_nodes directory and clone the repository:
cd ComfyUI/custom_nodes
git clone https://github.com/infisum/comfyui-prompter.git
Restart ComfyUI and refresh your browser (Ctrl+F5).
π Usage
- Add the node: Right-click β
Add Nodeβutilsβ Prompt Saver & Loader. - To Save: Enter a title (or use the auto-generated date/workflow name), type your prompt, and click πΎ Save Prompt (or wait for auto-save).
- To Load: Type in the
selected_titledropdown to search, then select a prompt. The text will load instantly. - Auto-Save Toggle: Use the
auto_saveboolean switch to enable/disable the 60-second auto-save timer.
π Storage Structure
custom_nodes/comfyui-prompt-saver/
βββ __init__.py # Backend logic & API
βββ index.json # Lightweight index of prompt titles
βββ web/
β βββ prompt_saver.js # Frontend UI logic
βββ prompts/ # Your actual prompts (1 file = 1 prompt)
βββ 2024-05-20_portrait.txt
βββ my_complex_json.txt
βββ ...
Note: You can open, edit, or backup the .txt files in the prompts/ folder using any standard text editor.
π License
MIT License. Feel free to use and modify.