A local-first, in-browser image and metadata viewer for your AI-generated images, with a special focus on ComfyUI workflows.
ComfyViewer is a tool designed for artists, developers, and enthusiasts who work with AI image generation tools. It allows you to load an entire folder of images directly into your browser, where you can browse, search, and inspect the rich metadata embedded within them. Your files are never uploaded to a server; all processing and storage happens locally on your machine using your browser's own database.
- 100% Local & Private: Your images are processed and stored in your browser's IndexedDB. They never leave your computer.
- Efficient & Fast: Built with performance in mind, using lazy loading for images and an indexed database for quick searches.
- Rich Metadata Parsing: Automatically extracts and displays detailed generation data from ComfyUI-generated images, including prompts, seeds, samplers, models, LoRAs, and the full JSON workflow.
- Workflow View: Quickly view the workflow used to generate the image
- Advanced Search & Filtering: Quickly find images by filtering on any metadata field, such as prompt keywords, model names, or sampler types.
- Familiar File-Tree Interface: Navigate your image folders with a classic file-tree structure, just like on your desktop.
- Customizable Layout: Features resizable panels and a customizable grid view to tailor the interface to your liking.
- Arrow Keys Support: Quickly cycle through your images to analyze quickly
ComfyViewer is built with a modern, simple, and effective tech stack:
- Framework: Next.js (App Router)
- Language: TypeScript
- Styling: Tailwind CSS
- UI Components: Shadcn/UI
- Local Storage: IndexedDB for all image and metadata storage.
- Icons: Lucide React
To run ComfyViewer on your local machine, follow these steps.
- Node.js (v18 or later is recommended)
- A package manager like
npm,yarn,pnpm, orbun.
In your project terminal, clone ComfyViewer:
git clone https://github.com/christian-saldana/ComfyViewerThen install the necessary dependencies:
npm install
# or
yarn install
# or
pnpm installOnce the dependencies are installed, run the server:
npm run devor
npm run build
npm run startNow, open http://localhost:3000 in your browser to start using ComfyViewer.
- Once the application is running, click the "Select Folder" button.
- Your browser's file dialog will open. Choose a directory that contains your AI-generated images.
- The application will process the folder, extract metadata, and store everything in your browser. This might take a moment for very large folders.
- Once loaded, you can browse your images, click on them to view metadata, and use the search tools to filter your collection.
Contributions are welcome! If you have ideas for new features, bug fixes, or improvements, please feel free to open an issue or submit a pull request.
This project is open-source and available under the license specified in the LICENSE file.