Nodes/ComfyUI-Prompt-Gallery/🎨 Prompt图库
ComfyUI Node

🎨 Prompt图库

The 🎨 button is the real node here

By Lotus0614·Created 5 months ago·Updated 7 days ago· 28
🎨 Prompt图库
      action打开画廊

      Quick truth about this pack's namesake node: you'll barely touch it. PromptGallery is a legacy utility node - a placeholder whose real job is to remind you that the gallery lives behind the draggable 🎨 button in the bottom-right corner of the ComfyUI canvas. Drop the node in a workflow and you get one optional action dropdown:

      • 打开画廊 (open gallery) - prints a hint telling you to click the 🎨 button
      • 刷新数据 (refresh data) - tells you to look in the gallery
      • 统计信息 (statistics) - the one genuinely useful option: prints your total prompt and image counts to the console

      That's it. No outputs, no wires. It's the pack's answer to "where do I put the gallery node?", and the honest answer is you don't - the floating button is the door.

      The real functionality lives in that web UI, and it's a lot for a niche pack:

      • Prompt management - categories with covers and search, plus bulk operations on prompts.
      • Image history - every image SaveToGallery has registered, browsable by date or custom fields, with search and filtering.
      • Import/export - pull in local images, scan ComfyUI's output folder, or import/export ZIP data packages (the format's documented in IMPORT_FORMAT.md). There's even a "separate storage" mode so imported data lives in its own shard file you can disable without touching your main library.
      • Image detail view - copy the workflow or the API prompt out of a saved PNG (that metadata-in-the-file convention from the ecosystem), plus basic edit tools (brush, mosaic) that only affect the preview, never the original.
      • Cover maintenance - auto-match covers for prompts that lack one; it only fills missing covers and is powered by pyahocorasick when present.

      The data lives in ComfyUI/user/default/prompt_gallery/*.json - prompts.json, categories.json, images.json. Plain JSON, so backups are just copying a folder.

      When would you actually drop this node in?

      Two honest cases. One: you want the statistics line in your console after a batch. Two: you're sharing a workflow and want to signal "this pack is involved, and here's where the management UI is" for the person you hand it to. That's a real thing in the ComfyUI sharing culture - a node that tells the next person where the controls are. But day to day, you'll open the gallery from the 🎨 button and forget this node exists.

      Install

      Standard pack install. ComfyUI Manager → search "Prompt Gallery", or:

      cd ComfyUI/custom_nodes
      git clone https://github.com/Lotus0614/ComfyUI-Prompt-Gallery
      cd ComfyUI-Prompt-Gallery
      pip install -r requirements.txt
      

      Windows portable: ..\..\python_embeded\python.exe -m pip install -r requirements.txt. Light deps - Pillow plus pyahocorasick (optional, for fast cover backfill). No model downloads. Restart ComfyUI and hard-refresh the browser, because this pack's frontend caches aggressively.

      Common issues

      • No 🎨 button on the page - the plugin isn't loading. Check the folder is in custom_nodes, dependencies are installed into the Python ComfyUI actually uses, then restart and hard-refresh.
      • Old interface after an update - hard refresh again, or clear the site cache. The stale-assets problem is the pack's most common support question.
      • Statistics says zero everything - you haven't saved anything through SaveToGallery yet; the gallery counts registered images, not everything in output.
      • Before migrating or upgrading ComfyUI, back up user/default/prompt_gallery/ and the image folders under output.
      Category🎨 Prompt Gallery

      Inputs (1)

      NameTypeDefaultDescription
      actionoptCOMBO打开画廊3 options: 打开画廊, 刷新数据, 统计信息

      Outputs (0)

      No outputs