Skip to content

js extensions

Akatsuzi edited this page Dec 1, 2023 · 10 revisions

js extensions are useful for things like

  • dynamic widgets
  • dynamic inputs
  • combos subfolders
  • color pickers
  • canvas apps (e.g. OpenPose manipulation)

js extensions are installed in:

ComfyUI_windows_portable\ComfyUI\web\extensions

image


Dynamic Widgets

Good examples can be found on tinyterraNodes.

https://github.com/TinyTerra/ComfyUI_tinyterraNodes

image

In this example, the widgets displayed depend on the image_output option selected.


Dynamic Inputs

Example of a node with dynamic inputs in DrLtData's Impact Pack.

https://github.com/ltdrdata/ComfyUI-Impact-Pack

image

In this example, the number of inputs depend on the number od images connected.


Combo Subfolders

Example of combo subfolders used on pythongosssss nodes.

https://github.com/pythongosssss/ComfyUI-Custom-Scripts

image

In this example, clicking on the widget will display subfolders in the \ComfyUI_windows_portable\ComfyUI\models\checkpoints folder.


Color Picker

Allows selection of colors from a button on the node.

Example of a color picker used on mtb nodes.

https://github.com/melMass/comfy_mtb

image

In this example, clicking on the color button opens the following popup.

image


Canvas Apps

Example of a canvass app for OpenPose manipulation in AlekPet Nodes.

https://github.com/AlekPet/ComfyUI_Custom_Nodes_AlekPet

image