[PR #2152] [MERGED] New feature: Node Usage Analyzer #2314

Closed
opened 2026-10-28 21:08:51 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Comfy-Org/ComfyUI-Manager/pull/2152
Author: @jfcantu
Created: 9/15/2025
Status: ✅ Merged
Merged: 7/20/2026
Merged by: @ltdrdata

Base: main ← Head: main


📝 Commits (10+)

📊 Changes

39 files changed (+72197 additions, -12736 deletions)

View changed files

📝 README.md (+34 -26)
📝 check.sh (+2 -2)
📝 custom-node-list.json (+6440 -624)
📝 docs/en/cm-cli.md (+2 -2)
➕ docs/en/v3.38-userdata-security-migration.md (+230 -0)
📝 docs/ko/cm-cli.md (+13 -13)
📝 extension-node-map.json (+10793 -1276)
📝 git_helper.py (+9 -1)
➕ github-stats-cache.json (+22346 -0)
📝 github-stats.json (+8441 -5471)
📝 glob/manager_core.py (+101 -38)
➕ glob/manager_migration.py (+356 -0)
📝 glob/manager_server.py (+131 -6)
📝 glob/manager_util.py (+58 -11)
📝 js/README.md (+4 -2)
📝 js/cm-api.js (+3 -3)
📝 js/comfyui-manager.js (+47 -5)
📝 js/common.js (+479 -18)
📝 js/custom-nodes-manager.css (+1 -1)
📝 js/custom-nodes-manager.js (+123 -131)

...and 19 more files

📄 Description

Hey folks,

Per issue #2101, I've added the feature in question.

This code adds a new option, "Node Usage Analyzer", to the main Manager dialog. This dialog will show you the number of workflows in your user directory and subdirectories which reference each installed node package. Clicking the number will tell you which workflows, and how many nodes from that package each workflow is using.

It does this by adding a new API handler, which scans through all workflows in the user directory, and returns a list of JSON objects containing the workflow_file_name, and a list of objects for each unique node type in the workflow, and their cnr_id and ver if present.

The work of matching nodes to node-packs is done in the front-end, using the existing logic from custom-nodes-mnager.js. Since there was some overlap between dialogs, I moved some shared functionality into common.js.

Full disclosure: while I wrote the back-end code myself, the majority of the Javascript/CSS for the front-end was written by Claude since I'm very far from an expert in front-end development. I reviewed the code and it looks good to me, but again - not an expert.

Let me know if there's any changes I should make!


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Comfy-Org/ComfyUI-Manager/pull/2152 **Author:** [@jfcantu](https://github.com/jfcantu) **Created:** 9/15/2025 **Status:** ✅ Merged **Merged:** 7/20/2026 **Merged by:** [@ltdrdata](https://github.com/ltdrdata) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (10+) - [`ca749eb`](https://github.com/Comfy-Org/ComfyUI-Manager/commit/ca749eb4d2f1ffd9d652deab7abc29fa2129bbe2) update DB - [`5554e52`](https://github.com/Comfy-Org/ComfyUI-Manager/commit/5554e527994e860a9167f11e74c27d28a5ca5ee9) update DB - [`a1fc6c8`](https://github.com/Comfy-Org/ComfyUI-Manager/commit/a1fc6c817b92b851886e6cfb206bf6fcb8e96fc9) update DB - [`c590a88`](https://github.com/Comfy-Org/ComfyUI-Manager/commit/c590a88ffdb19c0ee4c99588913f85ef253644d8) feat: Add ComfyUI-Danbooru-Tags-Upsampler (#2220) - [`d28448d`](https://github.com/Comfy-Org/ComfyUI-Manager/commit/d28448d51922d3031db30dbab8f56459e5d5132d) update DB - [`f556962`](https://github.com/Comfy-Org/ComfyUI-Manager/commit/f556962d82737e6500e883716393eed4f7caca20) Add Blender-IO extension (#2223) - [`9cb22ff`](https://github.com/Comfy-Org/ComfyUI-Manager/commit/9cb22ffb607aac7a36ed12250767c155b7f864b4) update DB - [`d0b5f77`](https://github.com/Comfy-Org/ComfyUI-Manager/commit/d0b5f77ec6df3f05f41c4c3759294d4906fd7fb6) update DB - [`f144840`](https://github.com/Comfy-Org/ComfyUI-Manager/commit/f1448403ace215d2e5e927bda09ea077d1f3fadc) update DB - [`337c9aa`](https://github.com/Comfy-Org/ComfyUI-Manager/commit/337c9aa2c769b835c16975e25e9dcb3c866aee42) update DB ### 📊 Changes **39 files changed** (+72197 additions, -12736 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+34 -26) 📝 `check.sh` (+2 -2) 📝 `custom-node-list.json` (+6440 -624) 📝 `docs/en/cm-cli.md` (+2 -2) ➕ `docs/en/v3.38-userdata-security-migration.md` (+230 -0) 📝 `docs/ko/cm-cli.md` (+13 -13) 📝 `extension-node-map.json` (+10793 -1276) 📝 `git_helper.py` (+9 -1) ➕ `github-stats-cache.json` (+22346 -0) 📝 `github-stats.json` (+8441 -5471) 📝 `glob/manager_core.py` (+101 -38) ➕ `glob/manager_migration.py` (+356 -0) 📝 `glob/manager_server.py` (+131 -6) 📝 `glob/manager_util.py` (+58 -11) 📝 `js/README.md` (+4 -2) 📝 `js/cm-api.js` (+3 -3) 📝 `js/comfyui-manager.js` (+47 -5) 📝 `js/common.js` (+479 -18) 📝 `js/custom-nodes-manager.css` (+1 -1) 📝 `js/custom-nodes-manager.js` (+123 -131) _...and 19 more files_ </details> ### 📄 Description Hey folks, Per issue #2101, I've added the feature in question. This code adds a new option, "Node Usage Analyzer", to the main Manager dialog. This dialog will show you the number of workflows in your user directory and subdirectories which reference each installed node package. Clicking the number will tell you which workflows, and how many nodes from that package each workflow is using. It does this by adding a new API handler, which scans through all workflows in the user directory, and returns a list of JSON objects containing the `workflow_file_name`, and a list of objects for each unique node `type` in the workflow, and their `cnr_id` and `ver` if present. The work of matching nodes to node-packs is done in the front-end, using the existing logic from `custom-nodes-mnager.js`. Since there was some overlap between dialogs, I moved some shared functionality into `common.js`. Full disclosure: while I wrote the back-end code myself, the majority of the Javascript/CSS for the front-end was written by Claude since I'm very far from an expert in front-end development. I reviewed the code and it looks good to me, but again - not an expert. Let me know if there's any changes I should make! --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-28 21:08:51 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Comfy-Org/ComfyUI-Manager#2314
No description provided.