inventory

Export every workflow of your n8n (ZIP, one file each or JSON) and see which nodes, community packages and credentials they use

Package Information

Released: this month
Downloads: 0 weekly / 0 monthly
Latest Version: 0.1.0
Author: abraao_o_h

Documentation

n8n-nodes-inventory

Back up every workflow of your n8n and see what they use. Inventory reads your n8n through its public API and gives you two operations:

Operation What it does
Export Workflows Every workflow as JSON: one ZIP, one file per workflow, or JSON items
Inventory Which nodes, packages and credentials your workflows use, as items or a CSV file
Schedule Trigger → Inventory (Export, ZIP) → Google Drive / S3 / GitHub   ← nightly backup
Inventory (By Package, Only Community Nodes)                              ← what to install in a new n8n
Inventory (Every Node, Node Type Contains "requestPlus")                  ← where a node is used, before you update it

Install

In n8n, go to Settings → Community Nodes → Install and enter n8n-nodes-inventory.

Credential

Uses the n8n API credential that comes with n8n:

  1. In n8n, go to Settings → n8n API → Create an API key.
  2. Create an n8n API credential with the key, and the Base URL of your n8n ending in /api/v1 (for example https://n8n.mycompany.com/api/v1).

The node only reads. It never changes anything. If your API key has limited scopes, it needs workflow:list, plus communityPackage:list for the Installed Packages view and folder:list for folders.

Export Workflows

Output What you get
ZIP File (default) One item: the ZIP in data, and the list of files in files
One File per Workflow One item per workflow, with its .json file in data
JSON Only One item per workflow, the workflow itself

Files are named Workflow name (id).json. They are the same JSON you can import in n8n (Import from File, or n8n import:workflow).

Folders. If you use folders in n8n, the ZIP keeps them: Clients/Acme/Orders (12).json. Turn off Keep Folders in ZIP for every file at the root of the ZIP. Each exported item also gets a folder field ("" at the root). To export only one folder, use the Folder filter.

Credentials in Nodes. Secrets are never in a workflow: nodes only point to credentials by ID and name.

  • Keep: to restore in this same n8n.
  • Names Only: removes the IDs. Use it to import in another n8n, where you create credentials with the same names.
  • Remove: no credential reference. Use it to share a workflow.

Pinned data (the test data you pin in the editor) is left out by default: it can hold real customer data. Turn on Include Pinned Data to keep it.

Inventory

View One item per… Main fields
By Node Type node type type, package, community, versions, uses, workflows, workflowNames
By Package package package, community, nodeTypes, uses, workflows, workflowNames
By Workflow workflow nodes, nodeTypes, communityNodes, credentials, tags, active
By Credential credential credential, type, id, nodes, workflows, workflowNames
Every Node node workflow, node, type, version, package, community, disabled, credentials
Installed Packages community package package, installed, version, updateAvailable, nodeTypes, uses, workflows, workflowNames

community is true for everything that does not come with n8n (n8n-nodes-base and @n8n/n8n-nodes-langchain). By Package with Only Community Nodes is the list of packages to install in another n8n.

Installed Packages lists the community packages installed in this n8n (Settings → Community Nodes) with where each one is used. uses: 0 means no workflow uses it, so you can uninstall it. Packages that workflows use but that are not installed come too, with installed: false: that is what is missing, for example after moving workflows to a new n8n. The API key needs the communityPackage:list scope (n8n 2.x).

Sticky notes are not counted unless you turn on Include Sticky Notes.

Output as CSV File returns one item with a CSV instead of one item per row. Use CSV Delimiter ; to open it in Excel with Brazilian or European settings.

Filters

Both operations take the same filters:

Filter
Status All, Active or Inactive
Tags Comma-separated. Workflows with any of them
Name Contains Not case-sensitive
Node Type Contains Workflows that use a node whose type contains this, e.g. n8n-nodes-unwrap
Updated After Only workflows changed after this date: export only what changed since the last backup
Project ID Only one project
Include Archived Archived workflows are left out by default
Folder Only one folder: its name (Acme) or its path (Clients/Acme). Not case-sensitive
Include Subfolders With Folder: also the workflows in its subfolders (on by default)

Folders need folders enabled in n8n (the free Community license or a paid plan). When the n8n has folders, By Workflow and Every Node also get a folder field. Without folders, the node works as before.

Notes

  • The node runs once, whatever the number of input items: it reads the whole n8n, not the items.
  • It reads 250 workflows per request, page by page.
  • It can be used as a tool by the AI Agent ("which workflows use the Shopify credential?"). For community nodes as tools, n8n needs N8N_COMMUNITY_PACKAGES_ALLOW_TOOL_USAGE=true.

License

MIT

Discussion