ComfyUI Frontend Package
This package provides frontend components and utilities specifically designed for developing custom nodes and UI extensions within the ComfyUI ecosystem. It helps integrate custom web interfaces and widgets into the ComfyUI frontend. It is currently at version 1.43.1 and is updated frequently alongside ComfyUI releases.
Warnings
- gotcha This package is not a library for direct Python imports. It provides web assets (JS, CSS) for ComfyUI's frontend and custom nodes, and does not expose a typical Python API for programmatic use. Attempting to import and use non-existent Python functions from it will fail.
- gotcha The `comfyui-frontend-package` version is tightly coupled with the main ComfyUI repository's frontend changes. Using a significantly mismatched version (e.g., via `pip install` when ComfyUI itself is updated manually) can lead to UI rendering issues or unexpected behavior in custom nodes.
- gotcha While `comfyui-frontend-package` is crucial for custom node development, its assets are usually consumed by placing references in specific `web` directories or via ComfyUI's `_web_entry_point.js` mechanism, rather than by direct Python `import` statements within your custom node's `__init__.py`.
Install
-
pip install comfyui-frontend-package
Imports
- FrontendAssets
This package is not typically imported directly in Python code for its functionality.
Quickstart
import importlib.metadata
try:
version = importlib.metadata.version('comfyui-frontend-package')
print(f"comfyui-frontend-package is installed. Version: {version}")
print("Note: This package primarily provides frontend assets for ComfyUI custom nodes and is not typically used via direct Python imports for its functionality.")
except importlib.metadata.PackageNotFoundError:
print("comfyui-frontend-package is not installed.")
print("Install with: pip install comfyui-frontend-package")