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 🙏

© 2025 – Pkg Stats / Ryan Hefner

n8n-nodes-chhazcustom

v1.0.1

Published

n8n node to integrate with ComfyUI stable diffusion workflows for image to video conversion

Readme

Banner image

n8n-nodes-comfyui-image-to-video

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

Features

  • Execute ComfyUI workflows directly from n8n
  • Generate images and videos using stable diffusion models
  • Support for workflow JSON import
  • Automatic output retrieval from workflow outputs
  • Progress monitoring and error handling
  • Support for API key authentication
  • Configurable timeout settings

Prerequisites

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

Installation

npm install n8n-nodes-comfyui-image-to-video

Node Types

ComfyUI Node

This node allows you to execute ComfyUI workflows and retrieve generated images.

Settings

  • API URL: The URL of your ComfyUI instance (default: http://127.0.0.1:8188)
  • API Key: Optional API key if authentication is enabled
  • Workflow JSON: The ComfyUI workflow in JSON format

Note: API URL and API Key are now provided directly as node parameters instead of using the n8n credential system.

Outputs

The node outputs an array of generated images with:

  • filename: Name of the generated image file
  • subfolder: Subfolder path if any
  • data: Base64 encoded image data

ComfyUI Image to Video Node

This node allows you to convert images to videos using ComfyUI's image-to-video capabilities (like AnimateDiff, WanImageToVideo, or video generation models).

Settings

  • API URL: The URL of your ComfyUI instance (default: http://127.0.0.1:8188)
  • API Key: Optional API key if authentication is enabled
  • Workflow JSON: The ComfyUI workflow in JSON format for video generation

Note: API URL and API Key are now provided directly as node parameters instead of using the n8n credential system.

  • Input Type: Choose between URL, Base64, or Binary input methods
  • Input Image: URL or base64 string of the input image (when using URL or Base64 input type)
  • Binary Property: Name of the binary property containing the image (when using Binary input type)
  • Timeout: Maximum time in minutes to wait for video generation

Input

The node accepts an image input in three ways:

  1. URL: Provide a direct URL to an image
  2. Base64: Provide a base64-encoded image string
  3. Binary: Use an image from a binary property in the workflow (e.g., from an HTTP Request node)

Outputs

The node outputs the generated video:

  • In the binary.data property with proper MIME type and file information
  • fileName: Name of the generated video file
  • data: Base64 encoded video data
  • fileType: The type of video file (e.g., 'video')
  • fileSize: Size of the video in KB
  • fileExtension: File extension (webp, mp4, gif)
  • mimeType: MIME type of the video

Note: If multiple videos are generated by the ComfyUI workflow, only the first video output will be returned. The node currently prioritizes video outputs (files with .webp, .mp4, or .gif extensions) and returns the first one it finds.

Usage Examples

Using the ComfyUI Node

  1. Export your workflow from ComfyUI as JSON
  2. Create a new workflow in n8n
  3. Add the ComfyUI node
  4. Enter your ComfyUI API URL and API Key (if required)
  5. Paste your workflow JSON
  6. Execute and retrieve generated images

Using the ComfyUI Image to Video Node

  1. Create a workflow in ComfyUI for video generation (e.g., using WanImageToVideo, VHS_VideoCombine)
  2. Export the workflow as JSON (API)
  3. Add the ComfyUI Image to Video node
  4. Enter your ComfyUI API URL and API Key (if required)
  5. Paste your workflow JSON
  6. Select the appropriate Input Type:
    • For URL: Enter the image URL
    • For Base64: Provide a base64 string
    • For Binary: Specify the binary property containing the image (default: "data")
  7. Configure timeout as needed
  8. Execute the workflow to generate a video from your input image

Error Handling

The node includes comprehensive error handling for:

  • API connection issues
  • Invalid workflow JSON
  • Execution failures
  • Timeout conditions
  • Input image validation

Development

# Install dependencies
npm install

# Build
npm run build

# Test
npm run test

# Lint
npm run lint

License

MIT