Skip to content

SeaTheDestiny/comfyui_prompt_manager

Repository files navigation

GHBanner

ComfyUI Prompt Manager

A local file-based prompt manager for ComfyUI workflows. Store your collections, cards, and images locally on your filesystem.

Features

  • Local File Storage: All data is stored in the data/ folder, organized into:
    • data/collections/ - JSON files for each collection
    • data/images/ - Uploaded image files
  • Version Control Ready: Data folder is excluded from git, making it easy to version control your project
  • RESTful API: Backend API for managing collections and images
  • Import/Export: Import and export collections and cards as JSON files

Run Locally

Prerequisites: Node.js

  1. Install dependencies:

    npm install
  2. Run the app (starts both backend server and frontend):

    npm run dev

    This will:

    • Start the backend API server on http://localhost:3001
    • Start the frontend development server on http://localhost:3000
  3. Open your browser and navigate to http://localhost:3000

Data Structure

data/
├── collections/
│   ├── {collection-id}.json
│   └── ...
└── images/
    ├── {timestamp}-{random}.png
    └── ...

API Endpoints

  • GET /api/collections - Get all collections
  • POST /api/collections - Create a new collection
  • PUT /api/collections/:id - Update a collection
  • DELETE /api/collections/:id - Delete a collection
  • POST /api/images - Upload an image
  • DELETE /api/images/:filename - Delete an image

Development

  • Backend: Node.js + Express
  • Frontend: React + Vite
  • Storage: Local filesystem (JSON files)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors