Extensions/Duanyll Nodepack
ComfyUI Extension

Duanyll Nodepack

A collection of custom nodes for ComfyUI

By Duanyll·Created about a year ago·Updated 3 months ago· 2
Duanyll/duanyll_nodepack
Nodes65
On cloudLocal install
Categoryduanyll/data, duanyll/bbox
Stars2
Updated3 months ago

Nodes (65)

As Any
duanyll/data
Bounding Box Crop
duanyll/bbox
BBoxes to ImpactPack Segs
duanyll/bbox
Bounding Box Image Stitcher
duanyll/bbox
Channel Incremental Constrained CFG Guider
duanyll/models/experimental
Cover Words with Rectangles
duanyll/morphology
Create Ark Client
duanyll/models/ark
Create OpenAI Client
duanyll/models/openai
Create S3 Client
duanyll/web
Diffusers Flux Scheduler
duanyll/models/diffusers
Diffusers Random Noise
duanyll/models/diffusers
Download Image from URL
duanyll/web
Draw Bounding Boxes
duanyll/bbox
Draw Bounding Box Mask
duanyll/bbox
Draw Text in BBox
duanyll/bbox
Dump JSON
duanyll/data
Expand Bounding Box by Ratio
duanyll/bbox
Fill Bounding Box with Image
duanyll/bbox
Patch Flux Kontext True 3D PE
duanyll/models
Flux Text LoRA Loader
duanyll/models
Get Text BBox with Anchor
duanyll/bbox
HuggingFace Checkpoint Loader
duanyll/loaders
HuggingFace CLIP Loader
duanyll/loaders
HuggingFace Diffusion Model Loader
duanyll/loaders
HuggingFace Dual CLIP Loader
duanyll/loaders
HuggingFace LoRA Loader
duanyll/loaders
HuggingFace LoRA Loader (Model Only)
duanyll/loaders
HuggingFace Quadruple CLIP Loader
duanyll/loaders
HuggingFace Triple CLIP Loader
duanyll/loaders
HuggingFace VAE Loader
duanyll/loaders
Crop from Padded
duanyll/image
Image Difference with Colormap
duanyll/image
Image Diff Metrics
duanyll/metric
Image Linear Stretch
duanyll/image
Image MAE
duanyll/metric
Image MSE
duanyll/metric
Pad to Resolution
duanyll/image
Image PSNR
duanyll/metric
Image SSIM
duanyll/metric
InsightFace Similarity
duanyll/metric
JSON Path Query
duanyll/data
JSON Path Query Single
duanyll/data
JSON Path Update
duanyll/data
Laplacian Variance
duanyll/metric
LLM Chat Add Message
duanyll/llm
LLM Chat Completion
duanyll/llm
LLM Client Set Seed
duanyll/llm
LLM Create Chat
duanyll/llm
LLM Create Client
duanyll/llm
Mask Linear Stretch
duanyll/image
Mask to Bounding Box
duanyll/bbox
Merge Bounding Boxes
duanyll/bbox
OpenAI Image Edit
duanyll/models/openai
OpenAI Image Generation
duanyll/models/openai
Parse BBox QwenVL
duanyll/bbox
Parse JSON5
duanyll/data
Parse LLM JSON Output
duanyll/data
PhotoDoddle Conditioning
duanyll/models
Qwen-Image Clip Enforce Bfloat16
duanyll/models/diffusers
Read Text File
duanyll/loaders
SeedEdit Node
duanyll/models/ark
String Format
duanyll/data
Text Contains Chinese
duanyll/data
Upload Image to S3
duanyll/web
vLLM HunyuanImage3
duanyll/models
Readme

Duanyll Nodepack

A collection of custom nodes for ComfyUI

[!NOTE] This projected was created with a cookiecutter template. It helps you start writing custom nodes without worrying about the Python setup.

Quickstart

  1. Install ComfyUI.
  2. Install ComfyUI-Manager
  3. Look up this extension in ComfyUI-Manager. If you are installing manually, clone this repository under ComfyUI/custom_nodes.
  4. Restart ComfyUI.

Features

  • A list of features

Develop

To install the dev dependencies and pre-commit (will run the ruff hook), do:

cd duanyll_nodepack
pip install -e .[dev]
pre-commit install

The -e flag above will result in a "live" install, in the sense that any changes you make to your node extension will automatically be picked up the next time you run ComfyUI.

Publish to Github

Install Github Desktop or follow these instructions for ssh.

  1. Create a Github repository that matches the directory name.
  2. Push the files to Git
git add .
git commit -m "project scaffolding"
git push

Writing custom nodes

An example custom node is located in node.py. To learn more, read the docs.

Tests

This repo contains unit tests written in Pytest in the tests/ directory. It is recommended to unit test your custom node.

Publishing to Registry

If you wish to share this custom node with others in the community, you can publish it to the registry. We've already auto-populated some fields in pyproject.toml under tool.comfy, but please double-check that they are correct.

You need to make an account on https://registry.comfy.org and create an API key token.

  • [ ] Go to the registry. Login and create a publisher id (everything after the @ sign on your registry profile).
  • [ ] Add the publisher id into the pyproject.toml file.
  • [ ] Create an api key on the Registry for publishing from Github. Instructions.
  • [ ] Add it to your Github Repository Secrets as REGISTRY_ACCESS_TOKEN.

A Github action will run on every git push. You can also run the Github action manually. Full instructions here. Join our discord if you have any questions!