A self-hosted home for ComfyUI generations, with the workflow evidence and review history kept alongside each image or video.
Bring in outputs by upload or from a read-only local/NAS folder. Browse and group them, recover the prompts and model usage embedded in their files, review them without seeing generation settings, then explore how selected checkpoints and LoRAs performed in the media you reviewed.
The project is designed for a single user and runs on your own machine or NAS. Its governing product and engineering documentation starts at doc/README.md.
The screenshots below use synthetic artwork and workflow metadata created for this README. They contain no media from a personal library.
Search prompts and model names, narrow the gallery by workflow and evaluation state, and use collections, tags, or saved filters to bring related work together.
The media record keeps the preview close to the exact embedded prompt and the checkpoint and LoRA observations parsed from its workflow. Raw evidence remains available alongside the normalized view.
Score images or videos against versioned criteria while generation settings are hidden. Each decision saves independently, so a session can be resumed later.
- Upload images and videos, or register a host directory such as a NAS output folder and scan it when you choose.
- Search across prompts and model names. Filter by media type, workflow state, evaluation progress, checkpoint, and LoRA.
- Build collections and tags, save useful filters, select matching items, and start a review from a chosen library scope.
- Browse cached Node and Model registries so your local inventory remains useful when ComfyUI is offline.
- Store managed originals by content hash and preserve the history of source paths. A read-only import mount is never modified by the application.
- Read embedded ComfyUI prompt and workflow data from supported image and video files. The original decoded evidence stays intact while a versioned parser builds a searchable view of nodes, connections, model usage, and parameters.
- Keep unfamiliar nodes and values visible as generic evidence instead of discarding the workflow because a node is not recognized.
- Generate thumbnails, video posters, and browser-friendly video proxies as separate assets; these do not replace the original.
- Run the opt-in image classifier on selected Library results or from a media detail page. Upload-time classification is a separate setting and remains off by default. Large selections are queued in batches, with progress available while they run.
- Filter media by whether its extracted prompt came from an API prompt or a visual workflow. A media item containing both sources appears under either source filter.
- The model suggests Safe, Sexy, or Explicit; low-confidence or conflicting results are marked Needs review. Optional NudeNet detection adds exposed-area evidence and can contribute a Nudity suggestion, but does not decide context on its own.
- The model's predicted class is selected by default. Human review is optional: choose Safe, Sexy, Nudity, or Explicit to confirm or replace the suggestion. This classifier rating is separate from the existing SFW/NSFW mark and does not hide or trash media.
- Filter the Library by classifier status or effective rating. Choose one of
five rating buttons in a single row;
Allclears the rating filter. Start a Needs review queue to capture the current matching items and sort order; new results arriving in the background will not reorder that active queue. Return to the Library and refresh the filter to include them. Queues are stored in the current browser tab and hold up to 50,000 items at a time. - Classification is disabled until enabled and the model is downloaded locally. See the Chinese setup and manual test guide and the classification design for setup, labels, and queue behavior.
- Use configuration-blind image and video review with a stable, versioned scoring template. Scores are 0–10; a real zero, N/A, and an unanswered criterion remain distinct.
- Autosave every decision and resume sessions later. Review can begin from a selection, collection, source directory, filter, saved filter, or eligible random pool.
- Trash is reversible and excludes an item from analysis by default. It is not deletion and does not mean a score of zero.
- Run retrospective checkpoint and LoRA reports after reviewing media; setting up a formal experiment is not required.
- Keep comparisons within the selected architecture, pipeline role, model group, or training series. Unknown model architecture remains browsable and reviewable, but is excluded from model-based comparisons until classified.
- Inspect coverage, distributions, uncertainty intervals, and the exact media behind a result. These reports describe associations in your library; they do not establish that a model caused an outcome or is universally better.
flowchart LR
A[Import images and videos] --> B[Preserve originals and source history]
B --> C[Keep embedded workflow evidence and parse searchable observations]
C --> D[Browse, filter, and organize the library]
D --> E[Blind review with versioned criteria]
E --> F[Retrospective model analysis with coverage and uncertainty]
G[Optional ComfyUI and LoRA Manager sync] -. cached registries and input capture .-> C
ComfyUI does not need to stay online for library browsing, review, or analysis. Connect it when you want to manually sync node/model information or run the best-effort capture job for workflow input images and videos. Cached registry data and already captured inputs remain available offline. Optional Civitai enrichment can add provider metadata; locally managed models remain valid when no provider match exists.
You need Docker with Compose. Copy the example environment file, replace the password placeholders, then start the stack:
cp .env.example .env
docker compose up --buildOpen http://localhost:8080 and sign in with CG_ADMIN_USERNAME and
CG_ADMIN_PASSWORD from .env.
By default, managed originals and derived assets live under ./data/media. The
host folder ./data/import is mounted read-only at /imports. Open Imports
to register /imports or one of its subdirectories, then start a scan. To use
existing NAS folders, set absolute paths in .env:
MEDIA_DATA_ROOT=/volume1/docker/comfy-gallery/media
IMPORT_ROOT=/volume1/comfyui/outputThe application leaves IMPORT_ROOT untouched and copies accepted originals
into MEDIA_DATA_ROOT.
To enable one-click node/model synchronization, set the LAN URL of the ComfyUI installation that hosts LoRA Manager:
CG_COMFYUI_BASE_URL=http://192.168.x.x:8188For a multi-user ComfyUI installation, also set CG_COMFYUI_USER.
Set your NAS paths and the public origin in .env:
MEDIA_DATA_ROOT=/share/ComfyGallery/media
IMPORT_ROOT=/share/ComfyUI/output
BACKUP_ROOT=/share/ComfyGallery/backups
CG_ALLOWED_ORIGINS=http://192.168.50.68:8080
TZ=Asia/ShanghaiSource files must be readable by container UID 10001; the import mount remains read-only. Start the production topology with:
make productionOnly the web port is published. After signing in, open /operations to review
disk, worker, queue, and backup status. Run an immediate database backup with:
make backupDatabase dumps protect PostgreSQL and manual work. Include MEDIA_DATA_ROOT and
BACKUP_ROOT in the NAS snapshot or off-device backup policy. Read the
recovery runbook and
upgrade runbook before restoring or
upgrading.
Mac development uses isolated local data, a separate PostgreSQL/Redis Compose project, native FastAPI and worker processes, and Vite hot reload:
make devOpen http://127.0.0.1:5173. On the first run, make dev creates the ignored
.env.development, installs dependencies, starts local infrastructure, applies
migrations, and creates the local administrator. It does not use the NAS
database or managed media.
See Mac-first development and milestone releases for development commands, data isolation, GitHub-built AMD64 milestone images, and pull-only NAS deployments.
The locked release candidate is 0.1.0-rc.51. Runtime images use the same tag
and OCI version label, upstream base images are pinned by digest, and release
images target linux/amd64 for the x86 J4125 NAS.
Detailed implementation and validation records:
- Phase 1: Media ingestion
- Phase 2: Workflow evidence
- Phase 3: Node and model registries
- Phase 4: Manual evaluation
- Phase 5: Model-focused analytics
- Phase 6: NAS release
Accepted behavior is defined by stable IDs in the product requirements. Implementation coverage is tracked in requirements traceability.
make check
make audit
make image-auditmake image-audit builds and scans the final AMD64 runtime images, so it takes
longer than the normal code test suite.


