A simple desktop app that scans folders with ComfyUI-generated PNG images and extracts all embedded prompts into a browsable, searchable list.
- Scans any folder (including subfolders) for PNG images created with ComfyUI
- Reads prompt metadata directly from PNG files — no external databases needed
- Shows all extracted prompts in a list on the left, image thumbnails on the right
- Click an image — jumps to its prompt. Click a prompt — jumps to its image
- One-click copy for any prompt
git clone https://github.com/E2GO/comfyui-prompt-collector.git
cd comfyui-prompt-collector
npm install
npm startRequires Node.js 18+ installed.
- Start with npm start in projet folder's CMD.
- Click Select Folder (or
File → Select Folder,Ctrl+O) and pick a folder with ComfyUI PNG images - Wait for the scan to finish — all prompts appear on the left, thumbnails on the right
- Click any image thumbnail to highlight its prompt and scroll to it
- Click the scroll-to-image button (right side of a prompt card) to find the image in the gallery
The app extracts three types of data from ComfyUI workflows:
- Positive (green) — the main generation prompt
- Negative (red) — negative prompt, hidden by default
- Trigger (yellow) — LoRA trigger words, hidden by default
Use the checkboxes in the toolbar to show/hide each type.
Type in the search box to filter prompts by text. Works across all prompt types.
Long first button (toolbar) — shows longest prompts at the top of each card. Enabled by default. Toggle it to reverse. Also available via View → Toggle Prompt Sort Order (Ctrl+Shift+S).
When enabled (green), clicking an image automatically copies its first prompt to clipboard. Toggle with the Auto-copy button in the toolbar.
When an image is selected, its filename appears above the gallery. Click the folder icon next to it to open the file location in your system file explorer.
File → Export or the Export dropdown — save filtered prompts as TXT, CSV, or JSON.
Use the Size slider below the gallery to adjust thumbnail columns (3–9).
If something goes wrong, click Logs in the bottom status bar (or Help → Open Log File) to access diagnostic logs. Logs contain no personal data — only app events, scan statistics, and errors.
The parser handles a variety of ComfyUI node types:
CLIPTextEncode— standard positive/negative promptsPrimitiveStringMultiline/PrimitiveString— primitive text nodes- LoRA loaders — trigger word extraction
- Text input / string input nodes
- Negative prompt detection via KSampler graph tracing
- Electron 40
- Custom
thumb://protocol for fast JPEG thumbnail generation - Lazy loading with IntersectionObserver
- PNG binary parser (tEXt/iTXt chunks) — no external image libraries
MIT