Package Information
Released: 7/1/2025
Downloads: 1 weeklyĀ /Ā 2,035 monthly
Latest Version: 1.4.2
Author: vinoth320
Documentation
n8n Express Microservice Trigger Node
A custom n8n trigger node that allows users to visually configure Express.js microservices that trigger workflow executions on HTTP requests.
šÆ v1.3.0 - Major Update: Full Trigger Node
This node is now a true trigger node where each HTTP request starts a new workflow execution, not just a regular node that processes requests.
Features
- š Dynamic Express Server: Create HTTP endpoints on-the-fly
- šÆ Workflow Triggering: Each HTTP request triggers a new workflow execution
- šļø Visual Configuration: Configure routes, methods, and responses through n8n UI
- š§ Port Management: Automatic port availability checking with hot-reload
- š Multiple HTTP Methods: Support for GET, POST, PUT, PATCH, DELETE
- š Security: Built-in authentication options (Basic Auth, API Key)
- š n8n Integration: Full trigger integration with request data emission
- š” Real-time Processing: Perfect for webhooks and event-driven workflows
Installation
Clone the repository
git clone <repository-url> cd n8n-express-microservice-node
Install dependencies
npm install
Build the project
npm run build
Install in n8n
- Copy the built node to your n8n custom nodes directory
- Restart n8n to load the new node
Development
Build
npm run build
Watch mode for development
npm run dev
Run tests
npm test
Lint code
npm run lint
Project Structure
āāā nodes/
ā āāā ExpressServerNode/
ā āāā ExpressServerNode.node.ts # Main node implementation
ā āāā ExpressServerNode.node.json # Node metadata
āāā test/ # Test files
āāā dist/ # Built files
āāā package.json # Dependencies and scripts
āāā tsconfig.json # TypeScript configuration
āāā README.md # This file
Usage
- Add the node to your n8n workflow
- Configure the port where the Express server should run
- Define HTTP methods with their routes and responses
- Activate the workflow to start the Express server
- Make HTTP requests to the configured endpoints
Example Configuration
{
"port": 3001,
"methods": [
{
"name": "/health",
"httpMethod": "GET",
"successCode": 200,
"failureCode": 500,
"contentType": "application/json",
"outputMapping": "{\"status\":\"ok\"}"
}
]
}
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests
- Submit a pull request
License
MIT