How pythongosssss/comfyui-custom-scripts works
ComfyUI-Custom-Scripts is an extension of ComfyUI with Python custom nodes and browser-side graph and workflow enhancements. Users work in the ComfyUI graph: they configure prompts and nodes, inspect or arrange graph content, and receive generated-image or execution feedback. The repository also provides model information, workflow management, and image utilities. The entry point dynamically loads Python node modules; browser modules register UI features. Relationships between unsampled feature modules are not inferred beyond documented capabilities.
Main entry points: __init__.py Extension loader · autocompleter.js Prompt autocomplete · modelInfoDialog.js Model info dialog · modelInfo.js Model info UI
Components 30
Extension Entry
- Extension loader
__init__.py - Extension utilities
pysssss.py
Prompt and Graph Tools
- Prompt nodes
py - Prompt autocomplete
web/js/autocompleter.js - Autocomplete engine
web/js/common/autocomplete.js - Better loader lists
web/js/betterCombos.js - Math expression
web/js/mathExpression.js - Preset text
web/js/presetText.js - String function
web/js/stringFunction.js - Repeater
web/js/repeater.js - Reroute primitive
web/js/reroutePrimitive.js - Quick nodes
web/js/quickNodes.js - Graph navigation
web/js/graphArrange.js - Custom colors
web/js/customColors.js - Grid snapping
web/js/snapToGrid.js - Node finder
web/js/nodeFinder.js
Model and Workflow Tools
- Model info UI
web/js/modelInfo.js - Model info dialog
web/js/common/modelInfoDialog.js - Model metadata service
py/model_info.py - Workflow management
web/js/workflows.js - Workflow storage API
py/workflows.py - Image constraints
py/constrain_image.py
Generation Feedback
- Generated image feed
web/js/imageFeed.js - Image lightbox
web/js/common/lightbox.js - Menu image preview
web/js/showImageOnMenu.js - Text display
web/js/showText.js - Execution sound
web/js/playSound.js - System notification
web/js/systemNotification.js - Favicon status
web/js/faviconStatus.js
Other components
- ComfyUI user
Connections 23
- ComfyUI user → Extension loader: installs extension
- Extension loader → Extension utilities: initializes
__init__.py - Extension loader → Prompt nodes: loads node modules
__init__.py - ComfyUI user → Prompt autocomplete: uses prompt tools
- Prompt autocomplete → Autocomplete engine: uses engine
web/js/autocompleter.js - Prompt autocomplete → Model info dialog: opens embedding info
web/js/autocompleter.js - Model info UI → Model info dialog: extends dialog
web/js/modelInfo.js - Model info dialog → Model metadata service: requests metadata
web/js/common/modelInfoDialog.js - Workflow management → Workflow storage API: uses workflow API
- ComfyUI user → Generated image feed: views generated images
- Generated image feed → Image lightbox: opens images
web/js/imageFeed.js - ComfyUI user → Model info UI: inspects models
- ComfyUI user → Workflow management: manages workflows
- ComfyUI user → Image constraints: resizes images
- ComfyUI user → Better loader lists: selects models
- ComfyUI user → Math expression: evaluates expressions
- ComfyUI user → Preset text: uses text presets
- ComfyUI user → String function: transforms strings
- ComfyUI user → Repeater: repeats graph inputs
- ComfyUI user → Quick nodes: builds graph sections
- ComfyUI user → Graph navigation: arranges graph
- ComfyUI user → Execution sound: configures execution alerts
- ComfyUI user → System notification: configures notifications