Registry / devops / n8n-nodes-routeros-middleware

n8n-nodes-routeros-middleware

JSON →
library1.1.6jsnpmunverified

n8n community node for automating MikroTik RouterOS operations via a middleware service. Version 1.1.6 provides five key operations: Change PPP Profile, Enable/Disable Users, Force Reconnect, Get Active Sessions, and Test Connection. Designed for ISP billing automation workflows (e.g., isolating overdue customers, restoring service on payment). Requires the separate MikroTik Billing Automation Middleware service (Go-based) and an API key. Ships TypeScript definitions. Maintained on GitHub, MIT licensed.

npm install n8n-nodes-routeros-middleware
INSTALL
IMPORT
SIG · N8N-NODES-ROUTEROS
N
n8n-nodes-routeros-middleware
devopsjavascriptv1.1.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

RouterOsMiddleware
✓ import { RouterOsMiddleware } from 'n8n-nodes-routeros-middleware'
ESM import; the package exports a single named class for use in n8n custom node environments

Demonstrates programmatic usage of the RouterOsMiddleware node with credential config and a change profile operation.

import { RouterOsMiddleware } from 'n8n-nodes-routeros-middleware'; // The node is used within n8n workflows via UI or code. // Below is a programmatic example for testing (not typical usage). const node = new RouterOsMiddleware(); const result = await node.execute({ operation: 'changeProfile', routerName: 'main-router', username: 'customer123', newProfile: 'HOME-20MB', forceReconnect: true, credentials: { baseUrl: process.env.MIDDLEWARE_URL ?? 'http://localhost:3000', apiKey: process.env.API_KEY ?? '' } }); console.log(result);
Debug
Known issues
gotchaThe node requires a separate middleware service (golang-routeros-middleware) to be running. It does not communicate directly with RouterOS.
fix
Deploy and configure the middleware service per its documentation before using this node.
affects: >=1.0.0
deprecatedNode v1.0.0 had a breaking credential schema; credentials from v0.x will not work.
fix
Recreate credentials in n8n after upgrading. The new schema requires 'baseUrl' and 'apiKey'.
affects: =1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'n8n-nodes-routeros-middleware'
npm install failed or node_modules not available in n8n's custom node path.
fix
Run 'npm install n8n-nodes-routeros-middleware' from the n8n user directory (~/.n8n) and restart n8n.
TypeError: Cannot read properties of undefined (reading 'baseUrl')
Credentials are missing or incorrectly configured.
fix
In n8n, ensure the node's credentials have both 'baseUrl' and 'apiKey' fields filled.
Upgrade
Version history
1.1.6latest on npm
Audit
Dependencies
n8n-workflowrequiredn8n core required for node registration and execution
Agent activity
12 hits · last 30 days
node
10
OpenAI (training)
2
Resources
n8n-nodes-routeros-middleware — npm install n8n-nodes-routeros-middleware · libregistry