verdaccio-plugin-community-nodes
v0.2.6
Published
plugin for n8n community nodes
Readme
verdaccio-plugin-community-nodes
A Verdaccio plugin that filters n8n community nodes to ensure only approved versions are available through your registry.
Description
This plugin integrates with the n8n community nodes API to validate package versions. When a package is requested, the plugin checks if the requested version exists in the n8n community nodes registry and filters the metadata accordingly.
Installation
npm install -g verdaccio-plugin-community-nodesOr add it to your Verdaccio configuration:
npm install --save verdaccio-plugin-community-nodesConfiguration
Add the plugin to your Verdaccio config.yaml:
filters:
community-nodes:
enabled: true # Enable or disable the plugin
environment: staging # API environment: 'staging' or 'production'
apiUrl: https://custom-url # Optional custom API URLHow It Works
The plugin:
- Intercepts package metadata requests
- Queries the n8n community nodes API to check allowed versions
- Filters package metadata to only include approved versions
- Passes the filtered metadata back to the Verdaccio server
Development
# Install dependencies
npm install
# Build the plugin
npm run build
# Watch mode during development
npm run watchDocker Setup
This repository includes Docker configuration for testing:
cd docker
docker compose up -d