
NPM n8n INTEGRATION: AUTOMATE NPM WITH N8N
Looking to automate your Npm package management workflows with n8n? The Npm n8n integration allows you to connect the world's largest JavaScript package registry directly to your automation workflows, giving you programmatic access to package metadata, version management, and distribution tags.
This native integration provides 5 powerful actions to interact with Npm packages without writing custom code. Whether you need to monitor package versions, search the registry, retrieve metadata, or manage distribution tags, the Npm n8n integration streamlines these operations within your broader automation ecosystem.
In this guide, you'll discover exactly how to connect Npm to n8n, explore each available action in detail, and learn practical use cases to supercharge your development and DevOps workflows. If you're new to n8n, check out our n8n training to get started.
Need help automating Npm with n8n?
Our team will get back to you in minutes.
Why automate Npm with n8n?
The Npm n8n integration gives you access to 5 actions covering the essential operations for package registry management: searching packages, retrieving versions, fetching metadata, and managing distribution tags. This means you can build sophisticated automation workflows that interact with npm packages as part of larger CI/CD pipelines, monitoring systems, or internal tooling.
The benefits of automating Npm with n8n are substantial for development teams. Save hours of manual work by automatically checking for new package versions across your dependency list. Improve your release process by automating distribution tag updates when deploying new versions. Eliminate human error in repetitive registry operations—no more typos in package names or forgotten tag updates. The integration connects seamlessly with n8n's 400+ other nodes, allowing Npm operations to trigger or be triggered by virtually any other service.
Concrete workflow examples include: automatically notifying your Slack or Discord channel when a critical dependency releases a new version, creating an internal dashboard that aggregates metadata for all packages your team maintains, building a release automation that updates distribution tags after successful CI builds via GitHub integration, or setting up a package discovery workflow that searches npm for packages matching specific criteria and logs results to a spreadsheet.
How to connect Npm to n8n?
! 1 stepHow to connect Npm to n8n?
- 01
Add the node
The Npm integration uses API Token authentication to connect your npm account to n8n. You'll need to generate an access token from your npm account settings.Basic configuration:Generate an npm access token: Log into npmjs.com, navigate to your account settings, then "Access Tokens". Create a new token with the appropriate permissions (read-only for queries, or publish access for tag management).Open n8n credentials: In your n8n instance, go to Credentials → Add Credential → Search for "Npm".Enter your access token: Paste the token you generated from npm into the API Token field.Test the connection: Click "Test" to verify n8n can successfully authenticate with the npm registry using your credentials.Save and use: Once validated, save your credential. It will now be available for selection in any Npm node within your workflows.
TIP💡 TIP: Create separate npm tokens for different automation purposes—use a read-only token for monitoring workflows and a publish-scoped token for release automation. This follows the principle of least privilege and makes it easier to revoke access if a specific workflow is compromised. For more advanced workflow management, explore our n8n troubleshooting guide.- 01
Need help automating Npm with n8n?
Our team will get back to you in minutes.
Npm actions available in n8n
01 Action 01Update Distribution Tag
The Update Distribution Tag action allows you to programmatically modify distribution tags for your npm packages—a critical operation in release management workflows. Distribution tags like
latest,next,beta, orcanaryhelp users install specific versions without knowing exact version numbers, and keeping them updated is essential for a smooth release process.Configuration parameters:
- Credential to connect with: A required dropdown to select your authenticated Npm account. Ensure this credential has publish permissions for the target package.
- Resource: Set to "Distribution Tag" to work with npm's tagging system.
- Operation: Set to "Update" to modify an existing tag's target version.
- Package Name: A required text field where you enter the exact name of your npm package (e.g.,
@myorg/my-package). - Package Version: A required text field specifying which version the tag should point to. Supports fixed values or n8n expressions for dynamic versioning.
- Distribution Tag Name: A required text field for the tag to update (e.g.,
latest,beta,next).
Typical use cases:
- Automatically update the
latesttag after a successful production deployment - Set a
canarytag to the newest pre-release version after nightly builds - Manage
betaandstabletags as part of a staged rollout workflow - Synchronize distribution tags across multiple packages in a monorepo release
When to use it: This action is essential for any automated release pipeline. Combine it with CI/CD webhooks or Jenkins triggers to ensure your distribution tags always reflect your current release state.

02 Action 02Get All Distribution Tags
The Get All Distribution Tags action retrieves every distribution tag associated with a specific npm package, returning both the tag names and the versions they point to. This is invaluable for auditing, monitoring, and building dashboards that track your package's release status.
Configuration parameters:
- Credential to connect with: A required dropdown to select your Npm account credential for authentication.
- Resource: Set to "Distribution Tag" to query the package's tag configuration.
- Operation: Set to "Get All" to retrieve the complete list of tags.
- Package Name: A required text field where you specify which package's tags to retrieve. Accepts the full package name including scope if applicable.
Typical use cases:
- Build a monitoring dashboard showing current tag states across all your packages
- Verify tag consistency before triggering a deployment workflow
- Create audit reports tracking which versions are currently tagged for different release channels
- Compare distribution tags across multiple packages to ensure synchronized releases
When to use it: Use this action at the start of release workflows to check current tag states, or in scheduled workflows that generate regular reports on your package's distribution configuration. It pairs well with comparison logic to detect unexpected changes.

03 Action 03Npm: Package Search
The Package Search action lets you query the npm registry to find packages matching specific criteria. This is the same search functionality available on npmjs.com, now accessible programmatically within your n8n workflows for discovery, analysis, and competitive research automation.
Configuration parameters:
- Credential to connect with: A required dropdown for selecting your Npm account credentials.
- Resource: Set to "Package" to indicate you're working with npm packages.
- Operation: Set to "Search" to query the registry.
- Query: An optional text field for your search terms. Leave empty for broad searches or enter specific keywords, package names, or descriptions.
- Limit: An optional number field controlling how many results to return. Default is 10, adjust based on your processing needs.
- Offset: An optional number field for pagination. Set to 0 to start from the first result, or use higher values to paginate through large result sets.
Typical use cases:
- Discover new packages in a specific domain and log them to a database for evaluation
- Monitor the npm ecosystem for packages similar to yours (competitive analysis)
- Build an internal tool that suggests relevant packages based on project requirements
- Create alerts when new packages matching certain keywords appear in the registry
When to use it: This action is perfect for building discovery and monitoring workflows. Combine it with scheduled triggers to regularly scan for new packages, or use it in response to team requests to automate package research and evaluation processes.

04 Action 04Get Package Versions
The Get Package Versions action retrieves the complete list of published versions for a specific npm package. This is essential for dependency monitoring, version tracking, and building automation that responds to new releases.
Configuration parameters:
- Credential to connect with: A required dropdown to select your authenticated Npm account.
- Resource: Set to "Package" to work with package data.
- Operation: Set to "Get Versions" to retrieve the version history.
- Package Name: A required text field specifying the exact package name to query (e.g.,
lodash,@types/node).
Typical use cases:
- Monitor critical dependencies and trigger alerts when new versions are published
- Build a changelog aggregator that fetches version lists and compares against previous runs
- Create an internal dashboard displaying version histories for all packages your team depends on
- Implement automated compatibility checks by comparing available versions against your requirements
When to use it: This action shines in monitoring and dependency management workflows. Schedule it to run periodically against your dependency list, compare results with previous runs, and trigger downstream actions (notifications, updates, tests) when new versions appear.
💡 TIP: Store the version list results in a database like MongoDB or Airtable between runs. This allows you to easily compare and detect new versions without maintaining complex workflow state.

05 Action 05Get Metadata
The Get Metadata action retrieves comprehensive information about an npm package, including its description, repository links, maintainers, dependencies, and more. This is the richest data source available through the integration, perfect for building detailed reports and analysis workflows.
Configuration parameters:
- Credential to connect with: A required dropdown for your Npm account credential selection.
- Resource: Set to "Package" to access package information.
- Operation: Set to "Get Metadata" to retrieve detailed package data.
- Package Name: A required text field for the exact package name you want to query.
- Package Version: An optional text field to specify a particular version. If left blank or set to
latest, returns metadata for the most recent published version.
Typical use cases:
- Generate automated security reports by extracting dependency lists and maintainer information
- Build an internal package registry that mirrors npm metadata for approved packages
- Create documentation by automatically pulling descriptions, repository links, and README content
- Monitor packages for maintainer changes or license updates that might affect compliance
When to use it: Use this action whenever you need detailed package information beyond just version numbers. It's particularly valuable for compliance workflows, documentation generation, and security auditing where you need access to the full metadata payload. For automated documentation workflows, consider integrating with Notion.

Build your first workflow with our team
Drop your email and we'll send you the catalog of automations you can ship today.
- Free n8n & Make scenarios to import
- Step-by-step setup docs
- Live cohort + community support
Frequently asked questions
Is the Npm n8n integration free to use?
Yes, the Npm integration is included natively in n8n at no additional cost—it's available in both the open-source self-hosted version and n8n Cloud plans. You'll need a free npm account to generate API tokens for authentication. Keep in mind that while most npm API operations have generous rate limits, heavy automation use might require consideration of npm's terms of service. For typical workflow automation purposes like monitoring a few dozen packages or managing distribution tags, you'll be well within acceptable usage. Learn more about n8n capabilities in our comprehensive n8n review.What data can I access with the Npm n8n integration?
The integration provides access to three main data categories: package metadata (descriptions, dependencies, repository links, maintainers, license information), version data (complete version history, specific version details), and distribution tags (reading all tags and updating tag-to-version mappings). This covers most programmatic needs for package management, monitoring, and release automation. Note that the integration focuses on registry queries and tag management—actual package publishing requires separate tooling.Can I use the Npm n8n integration without an npm account?
For most read operations like searching packages, getting versions, and retrieving metadata, you technically can query the public npm registry. However, n8n's Npm node requires credential configuration for all operations to ensure consistent authentication. Creating an npm account is free and takes seconds, and having authenticated requests ensures better rate limits and access to any private packages in your organization. For tag updates, authentication with a token that has publish permissions is mandatory.



