Skip to content

SmartGallery for ComfyUI is a fast, standalone, browser-based gallery that remembers how every image or video was generated. Workflow-aware search, prompt & model filtering, node summary, mobile-friendly and Docker-ready.

License

Notifications You must be signed in to change notification settings

biagiomaf/smart-comfyui-gallery

Repository files navigation

SmartGallery for ComfyUI

SmartGallery logo

A lightweight, local, browser-based gallery that remembers
exactly how every image or video was generated.

License Python Stars


What is SmartGallery?

SmartGallery turns your ComfyUI output folder into a fast, searchable, mobile-friendly web gallery.

Every generated file (image or video) is automatically linked to its exact ComfyUI workflow, even if:

  • ComfyUI is not running
  • the file was generated weeks or months ago
  • filenames are meaningless

Everything runs fully offline, locally, with no cloud and no tracking.

Who is this for?
ComfyUI users who generate a lot, iterate fast, and want to never lose a workflow again.


Why it exists

If you use ComfyUI seriously, you probably faced this:

  • Thousands of outputs with generic filenames
  • Forgotten workflows
  • Hard to search by what you actually remember
  • No usable way to browse from your phone

SmartGallery turns your output folder into a living memory of your creative process.


Screenshots

Desktop Interface
Desktop View
Fast, clean desktop gallery with workflow-aware search


Mobile Interface Node Summary
Mobile View Node Summary
Fully usable on mobile Instant workflow recall with visual node summary

Core Features

  • Search with powerful filters: prompt keywords, specific models/LoRAs, file extension, recursive folder scanning, date range, and more
  • Full workflow access for PNG, JPG, WebP, and MP4: view node summary, copy to clipboard, or download as JSON
  • Upload external files to add them to your collection and retrieve their workflow
  • "Auto-Watch" mode to automatically refresh the gallery when new files appear
  • Batch operations (delete, move, re-scan)
  • Full folder management directly from the UI
  • Fully offline and local β€” works even when ComfyUI is not running
  • Cross-platform: Windows, Linux, macOS + Docker

Actively developed β€” frequent updates focused on real ComfyUI workflows.

What’s New in v1.53

  • Native preview support for ProRes .mov files (optimized for macOS)
  • "Auto-Watch Folder": configurable interval to automatically refresh the gallery when new files appear
  • Recursive search with persistent filters
  • Modernized dark / glass UI
  • Seamless infinite scrolling
  • Fully collapsible folder sidebar
  • Improved mobile-first responsive layout

This is a curated summary β€” see the πŸ‘‰ full CHANGELOG for all technical changes.


Installation & Update

- Windows, macOS, Linux, Docker

Select your platform

Each quick install shows only the relevant steps for that platform.


Windows (Python)

1. Install

Option A: Using Git (Recommended)

git clone https://github.com/biagiomaf/smart-comfyui-gallery
cd smart-comfyui-gallery

Option B: No Git (Manual Download)

Download the latest Source code (zip) from Releases, extract it, and open a terminal inside the folder.

Then, setup the environment:

python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt

2. Run (Best Practice)

Create a new file named run_smartgallery.bat inside the folder and paste this content.

⚠️ IMPORTANT: Replace the example paths with your real paths. Use forward slashes / even on Windows.

@echo off
cd /d %~dp0
call venv\Scripts\activate.bat

:: --- CONFIGURATION ---
:: REPLACE these paths with your actual folders.
:: NOTE: Use forward slashes (/) for paths (e.g., C:/ComfyUI/output)

set "BASE_OUTPUT_PATH=C:/Path/To/ComfyUI/output"
set "BASE_INPUT_PATH=C:/Path/To/ComfyUI/input"
set "BASE_SMARTGALLERY_PATH=C:/Path/To/ComfyUI/output"

:: If ffmpeg is not in your system PATH, point to ffprobe.exe here:
set "FFPROBE_MANUAL_PATH=C:/Path/To/ffmpeg/bin/ffprobe.exe"
set SERVER_PORT=8189

:: --- START ---
python smartgallery.py
pause

Double-click run_smartgallery.bat to start.

3. How to Update

If you installed via Git:

cd smart-comfyui-gallery
git pull
venv\Scripts\activate
pip install -r requirements.txt

If you downloaded the ZIP: Download the new version, extract it, and copy your run_smartgallery.bat into the new folder.


macOS (Python)

1. Install

Option A: Using Git (Recommended)

git clone https://github.com/biagiomaf/smart-comfyui-gallery
cd smart-comfyui-gallery

Option B: No Git (Manual Download)

Download the latest Source code (tar.gz) from Releases, extract it, and open a terminal inside the folder.

Then, setup the environment:

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

2. Run (Best Practice)

Create a file named run_smartgallery.sh, make it executable (chmod +x run_smartgallery.sh), and paste this content:

#!/bin/bash
source venv/bin/activate

# Increase open files limit (fix for "Too many open files" on macOS)
ulimit -n 4096

# --- CONFIGURATION ---
# REPLACE these paths with your actual folders.
export BASE_OUTPUT_PATH="$HOME/ComfyUI/output"
export BASE_INPUT_PATH="$HOME/ComfyUI/input"
export BASE_SMARTGALLERY_PATH="$HOME/ComfyUI/output"

# Ensure ffprobe is installed (brew install ffmpeg)
export FFPROBE_MANUAL_PATH="/usr/bin/ffprobe"
export SERVER_PORT=8189

# --- START ---
python smartgallery.py

Run it with: ./run_smartgallery.sh

3. How to Update

cd smart-comfyui-gallery
git pull
source venv/bin/activate
pip install -r requirements.txt

If you downloaded the tar.gz: Download the new version, extract it, and copy your run_smartgallery.sh into the new folder.


Linux (Python)

1. Install

Option A: Using Git (Recommended)

git clone https://github.com/biagiomaf/smart-comfyui-gallery
cd smart-comfyui-gallery

Option B: No Git

Download Source code from Releases.

Then, setup the environment:

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

2. Run (Best Practice)

Create a file named run_smartgallery.sh, make it executable (chmod +x run_smartgallery.sh), and paste this content:

#!/bin/bash
source venv/bin/activate

# --- CONFIGURATION ---
# REPLACE these paths with your actual folders.
export BASE_OUTPUT_PATH="$HOME/ComfyUI/output"
export BASE_INPUT_PATH="$HOME/ComfyUI/input"
export BASE_SMARTGALLERY_PATH="$HOME/ComfyUI/output"
export FFPROBE_MANUAL_PATH="/usr/bin/ffprobe"
export SERVER_PORT=8189

# --- START ---
python smartgallery.py

Run it with: ./run_smartgallery.sh

3. How to Update

cd smart-comfyui-gallery
git pull
source venv/bin/activate
pip install -r requirements.txt

If you downloaded the source code manually: Download the new version, extract it, and copy your run_smartgallery.sh into the new folder.


Docker

1. Run

Replace the paths on the left side of the : with your actual host paths.

docker run \
  --name smartgallery \
  -v /your/host/output:/mnt/output \
  -v /your/host/input:/mnt/input \
  -v /your/host/SmartGallery:/mnt/SmartGallery \
  -e BASE_OUTPUT_PATH=/mnt/output \
  -e BASE_INPUT_PATH=/mnt/input \
  -e BASE_SMARTGALLERY_PATH=/mnt/SmartGallery \
  -p 8189:8189 \
  -e WANTED_UID=`id -u` \
  -e WANTED_GID=`id -g` \
  mmartial/smart-comfyui-gallery

2. How to Update

# 1. Pull the latest image
docker pull mmartial/smart-comfyui-gallery

# 2. Stop and remove the old container
docker stop smartgallery && docker rm smartgallery

# 3. Run the 'docker run' command again (see above)

🐳 Docker Deployment

Want to run SmartGallery in a containerized environment? We've got you covered!

πŸŽ–οΈ Special Thanks: A huge shout-out to Martial Michel for orchestrating the Docker support and contributing to the core application logic.

Docker deployment provides isolation, easier deployment, and consistent environments across different systems. However, it requires some familiarity with Docker concepts.

πŸ—„οΈ Pre-built images

Pre-built images are available on DockerHub at mmartial/smart-comfyui-gallery and Unraid's Community Apps.

assets/smart-comfyui-gallery-unraidCA.png

Full Docker guide: πŸ‘‰ docs/DOCKER_HELP.md


- Open SmartGallery

http://127.0.0.1:8189/galleryout

For advanced configuration: πŸ‘‰ Complete Installation Guide (Docker Compose, reverse proxy, ffmpeg, scripts, and more)


Optional AI Features (Planned)

SmartGallery is designed to stay lightweight by default.

Advanced AI-powered features (semantic search, natural language queries) will be provided by a separate optional service:

  • Fully optional
  • Runs locally
  • Separate Docker container or Python environment
  • No impact on the core gallery if not installed

The AI service is currently under development and not released yet.


Philosophy

  • Local-first
  • Privacy-first
  • Minimal dependencies
  • No forced upgrades
  • No vendor lock-in

Contributing & Feedback

Issues, ideas, and pull requests are welcome.


⭐ Support the Project

If SmartGallery improves your ComfyUI workflow, consider giving the repository a ⭐.

It helps visibility, motivates future development, and costs nothing.


License

MIT License β€” see LICENSE


Made for the ComfyUI community

About

SmartGallery for ComfyUI is a fast, standalone, browser-based gallery that remembers how every image or video was generated. Workflow-aware search, prompt & model filtering, node summary, mobile-friendly and Docker-ready.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Languages