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-aio

v2.5.2

Published

n8n community nodes for ComfyUI workflow execution with dynamic parameter support (All-In-One: images, videos, and audios)

Readme

n8n-nodes-comfyui-aio

Execute ComfyUI workflows in n8n - Generate images, videos, audios and more with AI! (All-In-One)

npm version

Video Tutorials

| Platform | Link | Description | |----------|------|-------------| | 📺 YouTube | Watch Tutorial | English tutorial | | 📺 Bilibili | 观看教程 | 中文教程 |

What This Does

This package adds one intelligent node to n8n that automatically detects how it's being used:

ComfyUI Node - Universal ComfyUI workflow executor (All-In-One)

  • Auto-detects execution mode (Tool for AI Agents or Action for workflows)
  • Manual mode override available
  • Works with AI Agents as a tool
  • Works in regular workflows with full binary support
  • Supports image, video and audio input (URL and binary)
  • Generate images, videos, and audios
  • Dynamic parameter overrides

You can use this node to:

  • Generate images from text prompts
  • Process and edit images
  • Generate videos
  • Generate and process audio
  • Use AI Agents to create images/videos/audios automatically
  • And much more with any ComfyUI workflow!

Quick Setup

1. Install

# n8n Cloud: Settings → Community Nodes → Install → n8n-nodes-comfyui-aio
# Self-hosted:
cd ~/.n8n
npm install n8n-nodes-comfyui-aio

2. Run ComfyUI

Option A: Local ComfyUI

# Default: http://127.0.0.1:8188

Option B: RunningHub Cloud (Recommended for AI Agents)

3. Configure n8n Workflow

  1. Add a ComfyUI node
  2. Set ComfyUI URL (e.g., http://127.0.0.1:8188)
  3. Paste your ComfyUI workflow JSON (API format)
  4. Run!

Features

Execution Modes

The node automatically detects how it's being executed:

| Mode | When Used | Returns | |------|-----------|---------| | Tool Mode | Called by AI Agents | URLs only (no binary data) | | Action Mode | Regular workflow | Full binary data + URLs |

You can also manually override the mode in node settings.

Dynamic Parameters

Override any workflow node parameter dynamically:

Parameters:

  • Text - Prompt text, seeds, etc.
  • Number - Steps, dimensions, batch size
  • Boolean - Toggle options
  • File - Images, videos, or audios (URL or binary)

Example:

{
  "nodeId": "6",
  "parameterMode": "single",
  "paramName": "width",
  "type": "number",
  "numberValue": 1024
}

File Input

Supports multiple input methods:

From URL:

  • Downloads from HTTP/HTTPS URLs
  • Validates file type (image/video/audio)
  • Uploads to ComfyUI automatically

From Binary:

  • Uses binary data from previous nodes
  • Auto-detects file type
  • Validates MIME type and size

Supported Formats

Images: PNG, JPG, JPEG, WEBP, GIF, BMP, SVG Videos: MP4, WEBM, AVI, MOV, MKV, GIF Audios: MP3, WAV, OGG, FLAC, AAC, M4A, WMA, OPUS

Size Limits

  • Images: Up to 50MB
  • Videos: Up to 500MB
  • Audios: Up to 100MB

Getting ComfyUI Workflow JSON

ComfyUI workflows are exported in API format:

  1. Open ComfyUI (http://127.0.0.1:8188)
  2. Design your workflow
  3. Click Save (API Format) button
  4. Copy the generated JSON
  5. Paste it in the n8n ComfyUI node

Examples

Image Generation

{
  "3": {
    "inputs": {
      "seed": 123456789,
      "steps": 20,
      "cfg": 8,
      "sampler_name": "euler",
      "scheduler": "normal",
      "denoise": 1
    },
    "class_type": "KSampler"
  },
  "6": {
    "inputs": {
      "text": "a beautiful sunset over the ocean",
      "clip": ["4", 1]
    },
    "class_type": "CLIPTextEncode"
  }
}

Video Generation

Use the same format with video-specific nodes in ComfyUI.

Audio Generation

Use the same format with audio-specific nodes in ComfyUI.


Development

# Build
npm run build

# Lint
npm run lint

# Test
npm test

# Watch mode
npm run dev

Contributing

Contributions are welcome! Please read the contributing guidelines.


License

MIT License - see LICENSE for details.


Links

  • Repository: https://github.com/bitspring/n8n-nodes-comfyui-all
  • n8n Community: https://community.n8n.io
  • ComfyUI: https://github.com/comfyanonymous/ComfyUI

Changelog

v2.5.2

  • ✨ Added audio support (input/output)
  • 🐛 Fixed TypeScript compilation issues
  • 📝 Updated documentation

v2.5.1

  • ✨ Video and GIF support
  • ✨ Auto-detection for execution mode
  • 🐛 Bug fixes

v2.5.0

  • ✨ AI Agent tool mode support
  • ✨ Dynamic parameter overrides
  • 🐛 Various improvements

Related Projects

  • ComfyUI - Powerful UI for Stable Diffusion
  • n8n - Workflow automation tool
  • RunningHub - ComfyUI cloud service

Support

  • GitHub Issues: https://github.com/bitspring/n8n-nodes-comfyui-all/issues
  • n8n Community Forum: https://community.n8n.io

Star History

Star History Chart