Saltar al contenido
Skillpedia
APIs y servidores (backend)48 mil · #4210

comfyui-gateway

Qué hace

Este servicio actúa como guardián de ComfyUI, un programa que crea imágenes a partir de texto. Organiza las tareas de creación de imágenes, evita que ComfyUI se sature y permite que otros programas se comuniquen con él de forma segura.

Cuándo usarla

  • ✓Cuando quieres que un programa cree muchas imágenes de forma automática.
  • ✓Cuando necesitas organizar y priorizar la creación de imágenes.
  • ✓Cuando quieres que ComfyUI avise a otros programas al terminar de crear una imagen.

Link de la skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/comfyui-gateway/SKILL.md

Cópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.

Cómo usar

La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.

Mensaje listo para pegar

Usa esta skill para ayudarme: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/comfyui-gateway/SKILL.md Lee el archivo SKILL.md de ese link y sigue sus instrucciones en mi tarea.
¿Quieres que tu IA encuentre skills como esta por sí sola?Instala el MCP gratis de Skillpedia: una línea, y busca entre 15.000+ skills antes de cada tarea.Instalar en 1 minuto →

Ejemplo de qué pedirle a la IA

“Crea 10 imágenes de un gato usando el modelo 'cute_cat' y avísame cuando termine.”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

Recibe las solicitudes para crear imágenes, las pone en una cola para no sobrecargar ComfyUI y después las envía a ComfyUI para procesarlas. También puede guardar las imágenes creadas y avisar a otros programas.

Contenido técnico (SKILL.md original)

Texto original del autor, en inglés, directo de GitHub.

ComfyUI Gateway

Overview

REST API gateway for ComfyUI servers. Workflow management, job queuing, webhooks, caching, auth, rate limiting, and image delivery (URL + base64).

When to Use This Skill

  • When the user mentions "comfyui" or related topics
  • When the user mentions "comfy ui" or related topics
  • When the user mentions "stable diffusion api gateway" or related topics
  • When the user mentions "gateway comfyui" or related topics
  • When the user mentions "api gateway imagens" or related topics
  • When the user mentions "queue imagens" or related topics

Do Not Use This Skill When

  • The task is unrelated to comfyui gateway
  • A simpler, more specific tool can handle the request
  • The user needs general-purpose assistance without domain expertise

How It Works

A production-grade REST API gateway that transforms any ComfyUI server into a universal, secure, and scalable service. Supports workflow templates with placeholders, job queuing with priorities, webhook callbacks, result caching, and multiple storage backends.

Architecture Overview

┌─────────────┐     ┌──────────────────────────────────┐     ┌──────────┐
│   Clients    │────▶│        ComfyUI Gateway           │────▶│ ComfyUI  │
│ (curl, n8n,  │     │                                  │     │ Server   │
│  Claude,     │     │  ┌─────────┐  ┌──────────────┐  │     │ (local/  │
│  Lovable,    │     │  │ Fastify │  │ BullMQ Queue │  │     │  remote) │
│  Supabase)   │     │  │ API     │──│ (or in-mem)  │  │     └──────────┘
│              │◀────│  └─────────┘  └──────────────┘  │
│              │     │  ┌─────────┐  ┌──────────────┐  │     ┌──────────┐
│              │     │  │ Auth +  │  │ Storage      │  │────▶│ S3/MinIO │
│              │     │  │ RateL.  │  │ (local/S3)   │  │     │(optional)│
│              │     │  └─────────┘  └──────────────┘  │     └──────────┘
└─────────────┘     └──────────────────────────────────┘

Components

Component Purpose File(s)
API Gateway REST endpoints, validation, CORS src/api/
Worker Processes jobs, talks to ComfyUI src/worker/
ComfyUI Client HTTP + WebSocket to ComfyUI src/comfyui/
Workflow Manager Template storage, placeholder rendering src/workflows/
Storage Provider Local disk + S3-compatible src/storage/
Cache Hash-based deduplication src/cache/
Notifier Webhook with HMAC signing src/notifications/
Auth API key + JWT + rate limiting src/auth/
DB SQLite (better-sqlite3) or Postgres src/db/
CLI Init, add-workflow, run, worker src/cli/

Quick Start


## 1. Install

cd comfyui-gateway
npm install

## 2. Configure

cp .env.example .env

## 3. Initialize

npx tsx src/cli/index.ts init

## 4. Add A Workflow

npx tsx src/cli/index.ts add-workflow ./workflows/sdxl_realism_v1.json \
  --id sdxl_realism_v1 --schema ./workflows/sdxl_realism_v1.schema.json

## 5. Start (Api + Worker In One Process)

npm run dev

## Or Separately:

npm run start:api   # API only
npm run start:worker # Worker only

Environment Variables

All configuration is via .env — nothing is hardcoded:

Variable Default Description
PORT 3000 API server port
HOST 0.0.0.0 API bind address
COMFYUI_URL http://127.0.0.1:8188 ComfyUI server URL
COMFYUI_TIMEOUT_MS 300000 Max wait for ComfyUI (5min)
API_KEYS "" Comma-separated API keys (key:role)
JWT_SECRET "" JWT signing secret (empty = JWT disabled)
REDIS_URL "" Redis URL (empty = in-memory queue)
DATABASE_URL ./data/gateway.db SQLite path or Postgres URL
STORAGE_PROVIDER local local or s3
STORAGE_LOCAL_PATH ./data/outputs Local output directory
S3_ENDPOINT "" S3/MinIO endpoint
S3_BUCKET "" S3 bucket name
S3_ACCESS_KEY "" S3 access key
S3_SECRET_KEY "" S3 secret key
S3_REGION us-east-1 S3 region
WEBHOOK_SECRET "" HMAC signing secret for webhooks
WEBHOOK_ALLOWED_DOMAINS * Comma-separated allowed callback domains
MAX_CONCURRENCY 1 Parallel jobs per GPU
MAX_IMAGE_SIZE 2048 Maximum dimension (width or height)
MAX_BATCH_SIZE 4 Maximum batch size
CACHE_ENABLED true Enable result caching

…

Preguntas frecuentes

¿Qué es ComfyUI?

Es un programa que usa inteligencia artificial para crear imágenes a partir de descripciones de texto.

¿Para qué sirve este 'guardián'?

Ayuda a gestionar y organizar las solicitudes de creación de imágenes, haciendo el proceso más eficiente y seguro para quienes usan ComfyUI a través de otros programas.

¿Puedo usarlo para crear cualquier tipo de imagen?

Sí, siempre que ComfyUI esté configurado con los modelos y herramientas necesarios para el tipo de imagen que quieres.

Detalles

Descripción original del autor

REST API gateway for ComfyUI servers. Workflow management, job queuing, webhooks, caching, auth, rate limiting, and image delivery (URL + base64).

repo: sickn33/agentic-awesome-skills

Popularidad

Estrellas en GitHub
48 mil
Posición en el ranking
#4210
Licencia
MIT
Actualizada
15/10/2026

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas