Files
Dr.Lt.Data c58eab6703 Run Check Update in the background, so that it does not stop the server (#3588)
Check Update in the Custom Nodes Manager fetched every git nodepack inside
GET /customnode/getlist. The server answered nothing else until the last
fetch had ended. The ComfyUI frontend waits 60 s for the answer to a
request, so with many git nodepacks the page showed "Failed to get custom
node list." (#3574).

POST /customnode/check_update now starts the check in a thread of its own
and answers at once. The check fetches the enabled git nodepacks of the
list and reports by the cm-check-update event: the number of fetches that
are done, and at the end the nodepacks that have an update. The page shows
that progress, then loads the list and marks them. A check that is asked
for while one runs starts no second one: the nodepacks of its list that the
running check does not have are added to that check. A request carries a
ui_id that the page chooses, the end of a check names the ui_id of every
request that it answers, and the page waits for the end that names its own.
A check that fails tells so to the pages that wait for it.
When the connection to the server comes back during a check, as after a
restart of the server, the events of the check are lost, and the page asks
for the check again.

A task of the queue that is taken while a check runs waits for the check to
end. So a task that is started during a check, such as Update All, runs
after it as before, and the two do not work on one repository at the same
time. A model download and an update of ComfyUI do not touch the
repositories of the nodepacks, and do not wait.

GET /customnode/getlist no longer fetches, with or without skip_update.
POST /customnode/fetch_updates fetched inside the request in the same way
and has no caller, and answers 410.

The check found the folder of a nodepack by the id of its row in the list.
A git nodepack that the registry does not know has none, or one that is not
its repository name, so it was left out. The folder is now found by the key
of the row, and every enabled git nodepack of the list is fetched.

git_repo_update_check_with is left with the check as its one caller. Its
update path, which nothing called, is removed, and it fetches and checks
only. With that path goes a defect on Windows: a check that found an update
put the install script of the nodepack down to run at the next start,
though nothing had been updated.
2026-11-24 18:24:28 +09:00
..
2025-03-14 00:51:37 +09:00

ComfyUI-Manager: Frontend (js)

This directory contains the JavaScript frontend implementation for ComfyUI-Manager, providing the user interface components that interact with the backend API.

Core Components

  • comfyui-manager.js: Main entry point that initializes the manager UI and integrates with ComfyUI.
  • custom-nodes-manager.js: Implements the UI for browsing, installing, and managing custom nodes.
  • model-manager.js: Handles the model management interface for downloading and organizing AI models.
  • components-manager.js: Manages reusable workflow components system.
  • snapshot.js: Implements the snapshot system for backing up and restoring installations.
  • node-usage-analyzer.js: Implements the UI for analyzing node usage in workflows.

Sharing Components

  • comfyui-share-common.js: Base functionality for workflow sharing features.
  • comfyui-share-youml.js: Integration with the YouML sharing platform.

Utility Components

  • cm-api.js: Client-side API wrapper for communication with the backend.
  • common.js: Shared utilities and helper functions used across the frontend.
  • node_fixer.js: Utilities for fixing disconnected links and repairing malformed nodes by recreating them while preserving connections.
  • popover-helper.js: UI component for popup tooltips and contextual information.
  • turbogrid.esm.js: Grid component library - https://github.com/cenfun/turbogrid
  • workflow-metadata.js: Handles workflow metadata parsing, validation and cross-repository compatibility including versioning, dependencies tracking, and resource management.

Architecture

The frontend follows a modular component-based architecture:

  1. Integration Layer: Connects with ComfyUI's existing UI system
  2. Manager Components: Individual functional UI components (node manager, model manager, etc.)
  3. Sharing Components: Platform-specific sharing implementations
  4. Utility Layer: Reusable UI components and helpers

Implementation Details

  • The frontend integrates directly with ComfyUI's UI system through app.js
  • Dialog-based UI for most manager functions to avoid cluttering the main interface
  • Asynchronous API calls to handle backend operations without blocking the UI

Styling

CSS files are included for specific components:

  • custom-nodes-manager.css: Styling for the node management UI
  • model-manager.css: Styling for the model management UI
  • node-usage-analyzer.css: Styling for the node usage analyzer UI

This frontend implementation provides a comprehensive yet user-friendly interface for managing the ComfyUI ecosystem.