npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

n8n-nodes-comfyui

v0.0.9

Published

n8n node to integrate with ComfyUI stable diffusion workflows

Readme

Banner image

n8n-nodes-comfyui

This package provides an n8n node to integrate with ComfyUI — a powerful and modular stable diffusion GUI with a graph/nodes interface.

Features

  • Execute ComfyUI workflows directly from n8n
  • Support for multiple input items (each item runs its own workflow)
  • Automatic retrieval of generated images and videos
  • Output format conversion: JPEG, PNG, WebP, or Raw (no conversion)
  • Quality control for JPEG and WebP output
  • Progress monitoring and error handling
  • Optional API key authentication
  • Configurable timeout

Prerequisites

  • n8n (version 1.0.0 or later)
  • ComfyUI instance running and accessible
  • Node.js 22.16 or newer

Installation

pnpm install n8n-nodes-comfyui

Or via the n8n community nodes panel: search for n8n-nodes-comfyui.

Node Configuration

Credentials

| Field | Description | |---------|----------------------------------------------------------| | API URL | URL of your ComfyUI instance (e.g. http://127.0.0.1:8188) | | API Key | Optional — required if your ComfyUI has authentication enabled |

Parameters

| Parameter | Description | |----------------|-----------------------------------------------------------------------------| | Workflow JSON | ComfyUI workflow exported as JSON (API format) | | Output Format | JPEG / PNG / WebP / Raw (Original) — applies to image outputs only | | JPEG Quality | Quality 1–100 (shown when Output Format is JPEG) | | WebP Quality | Quality 1–100 (shown when Output Format is WebP) | | Timeout | Maximum minutes to wait for workflow completion (default: 30) |

Output Format notes

  • JPEG / PNG / WebP — images are decoded and re-encoded via sharp
  • Raw (Original) — files are downloaded as-is without any conversion; useful for formats sharp doesn't support, or when you want to preserve the original file exactly

Outputs

Each output item contains:

JSON fields

  • filename — original filename from ComfyUI
  • typeoutput or temp
  • subfolder — subfolder path if any
  • mediaTypeimage or video

Binary (data)

  • The file content as binary data, with correct mimeType and fileExtension set

Multiple Input Items

When multiple items are passed into this node, each item is processed sequentially — one ComfyUI workflow execution per item. This allows expressions in the Workflow JSON field to reference each item's data (e.g. {{ $json.prompt }}).

Usage

  1. Export your workflow from ComfyUI via Save (API Format)
  2. Add the ComfyUI node to your n8n workflow
  3. Paste the workflow JSON into the Workflow JSON field
  4. Set the API URL in the credentials
  5. Execute — generated images and videos will appear as binary outputs

Error Handling

The node handles:

  • API connection failures
  • Invalid workflow JSON
  • ComfyUI execution errors (with node ID and error message)
  • Timeout conditions
  • Individual file download failures (non-fatal; returns error in json.error)

Development

# Install dependencies
pnpm install

# Build
pnpm build

# Watch mode
pnpm dev

# Lint
pnpm lint

License

MIT