Skip to main content

Comfy web UI Core

License: Apache 2.0

This project is the core framework of the comfy-webui project.

We have removed all specific application-layer feature modules, retaining only the most essential components: the dynamic workflow engine, UI/API/MCP generator, and backend management system.

Its goal is to provide developers with a clean, lightweight starting point for rapidly building custom, complex-workflow-oriented Gradio WebUI applications on top of the powerful ComfyUI platform. It is an ideal choice for rapid prototyping.


Core Features

While it doesn't include any specific generation features, comfy-webui-core provides a powerful set of underlying mechanisms:

  • Recipe-Driven Dynamic Workflows Define ComfyUI node blueprints using simple and intuitive YAML recipe files. The system dynamically and programmatically assembles these into a final, executable, and complex workflow JSON based on user input from the frontend.

  • Pluggable Chain Injectors The core framework includes chain injectors for common dynamic functionalities like LoRA, ControlNet, IP-Adapter, and Regional Conditioning. You can easily add these dynamic, stackable capabilities to your new workflows without manually handling complex node connection logic.

  • API & MCP Ready (Workflow as a Service) The framework is not just for building graphical interfaces; its architecture natively supports Gradio's API and MCP mechanisms. Developers can create an _mcp.py file within a module to encapsulate complex, recipe-driven workflows into simple, high-level API and MCP functions that can be called externally, allowing for easy integration with LLMs and AI Agents.

  • Multi-Backend Management It features a built-in intelligent system for managing connections to multiple backends. You can configure and connect to several different ComfyUI instances (e.g., on different devices or with different dependency environments) and allow various UI modules to schedule tasks to their designated backends.

  • Asynchronous Job Engine All generation tasks are executed asynchronously in the background. Tasks continue to run on the server even if the browser is closed or the network connection is lost.

  • Layered Configuration System Through a directory structure of yaml/ (base configuration) and custom/yaml/ (user-defined overrides), you can easily separate and merge global and personal settings. This makes project upgrades and customizations simple and conflict-free.

  • Modular UI Builder The core UI builder can automatically discover the modules you create (_ui.py) and generate the corresponding Gradio tabs and interface layouts based on the layout configuration file (ui_layout.yaml).

Target Audience

  • Developers who want to build highly customized web interfaces for ComfyUI.
  • Researchers or tech enthusiasts who need to quickly validate specific complex workflows and provide them with a simple UI.
  • Developers looking to encapsulate complex ComfyUI workflows into standard MCP tools for easy integration with LLMs and AI Agents.
  • Teams seeking a standardized foundational framework for developing in-house AI generation tools.

Learn About the Full Version

To see a full-featured implementation, more comprehensive module examples, and advanced usage, please refer to the main project: comfy-webui.


📄 License

  • Framework Code: This project's code is licensed under the Apache License, Version 2.0. See the LICENSE and NOTICE files for details.
  • Notice on Usage: When modifying or redistributing this core framework, please comply with Section 4 of the Apache 2.0 License by retaining copyright notices and prominently stating any file changes.

Metadata

Release files for comfy-webui-core 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for comfy-webui-core 0.1.0
File Size Uploaded Provenance
comfy_webui_core-0.1.0.tar.gz 39.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for comfy-webui-core 0.1.0
File Interpreter ABI Platform
comfy_webui_core-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 83.9 kB

Release files / comfy_webui_core-0.1.0.tar.gz

Download URL comfy_webui_core-0.1.0.tar.gz
Size 39.0 kB
Tags Source
SHA-256 checksum
How to use checksums
00be071f836dc77bb16248bf5a371d0f07e27c3fd23c5f52af97cd0a0f0b57cc
BLAKE2b-256 checksum
How to use checksums
bd8ee5a459a1dc5a212caf775e6feb97db146a968358adb05159ebad8a04ec9c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release files / comfy_webui_core-0.1.0-py3-none-any.whl

Download URL comfy_webui_core-0.1.0-py3-none-any.whl
Size 44.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2dcf517b1d6005f011d5fcd7e8e4b2c1211a6bf68776a702ee2d4910d9553815
BLAKE2b-256 checksum
How to use checksums
f208c47773951805f08196dd7716e7e9f8357a1e1d26246528db32c548ee7281
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Security for comfy-webui-core 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page