Skip to content

Conversation

@jfcantu
Copy link

@jfcantu jfcantu commented Sep 15, 2025

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant