n8n-nodes-middle-network 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +21 -0
- package/README.md +82 -2
- package/dist/credentials/MiddleNetworkApi.credentials.d.ts +10 -0
- package/dist/credentials/MiddleNetworkApi.credentials.js +50 -0
- package/dist/credentials/MiddleNetworkApi.credentials.js.map +1 -0
- package/dist/credentials/middleNetwork.dark.svg +1 -0
- package/dist/credentials/middleNetwork.svg +1 -0
- package/dist/nodes/MiddleNetwork/MiddleNetwork.node.d.ts +4 -0
- package/dist/nodes/MiddleNetwork/MiddleNetwork.node.js +43 -0
- package/dist/nodes/MiddleNetwork/MiddleNetwork.node.js.map +1 -0
- package/dist/nodes/MiddleNetwork/MiddleNetwork.node.json +40 -0
- package/dist/nodes/MiddleNetwork/generatedOperations.d.ts +2 -0
- package/dist/nodes/MiddleNetwork/generatedOperations.js +2994 -0
- package/dist/nodes/MiddleNetwork/generatedOperations.js.map +1 -0
- package/dist/nodes/MiddleNetwork/middleNetwork.dark.svg +1 -0
- package/dist/nodes/MiddleNetwork/middleNetwork.svg +1 -0
- package/dist/package.json +69 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +68 -5
package/LICENSE.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Middle Enterprises Pty Ltd (middle.network)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,83 @@
|
|
|
1
|
-
#
|
|
1
|
+
# n8n-nodes-middle-network
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Official [n8n](https://n8n.io/) community node for [middle.network](https://middle.network/) - DNS, email authentication (SPF, DKIM, DMARC, blacklists), WHOIS/RDAP, ASN, certificate transparency, and network decoder checks, with both plain-English and technical results.
|
|
4
|
+
|
|
5
|
+
Works in standard n8n workflows and as an **AI Agent tool** (`usableAsTool: true`).
|
|
6
|
+
|
|
7
|
+
## Quick Setup: Get Your Free API Key
|
|
8
|
+
|
|
9
|
+
1. Sign in free at **[middle.network/account/api-keys](https://middle.network/account/api-keys/)** using Google, Microsoft, Apple, GitHub, or a one-time email code (no password or credit card required).
|
|
10
|
+
2. Click **Create key**, give it a name (for example `n8n`), and copy your `mn_live_...` token right away (it is only shown once).
|
|
11
|
+
3. In n8n, add a **middle.network** node, open **Credential to connect with** -> **Create New Credential**, paste your `mn_live_...` key, and click **Save**.
|
|
12
|
+
4. n8n automatically tests the key against `GET https://api.middle.network/v1/key` (0 daily quota spent) and confirms the connection.
|
|
13
|
+
|
|
14
|
+
You can revoke or rotate keys anytime at [middle.network/account/api-keys](https://middle.network/account/api-keys/). Full API documentation is at [middle.network/developers](https://middle.network/developers/).
|
|
15
|
+
|
|
16
|
+
### Free API Key Limits
|
|
17
|
+
|
|
18
|
+
- **3,000 cost units per UTC day** (resets at midnight UTC)
|
|
19
|
+
- **120 cost units per minute** (burst up to 60)
|
|
20
|
+
- **4 concurrent requests** per key
|
|
21
|
+
- Converters/decoders cost 1 unit, standard lookups cost 2, global probe checks cost 3, and bulk IP lookups cost 8.
|
|
22
|
+
|
|
23
|
+
## Installation
|
|
24
|
+
|
|
25
|
+
### n8n Cloud & Self-Hosted (Community Nodes UI)
|
|
26
|
+
|
|
27
|
+
1. Open **Settings** -> **Community Nodes** in n8n.
|
|
28
|
+
2. Select **Install a community node**.
|
|
29
|
+
3. Enter `n8n-nodes-middle-network`, accept the prompt, and click **Install**.
|
|
30
|
+
|
|
31
|
+
## Operations (44 Tools Across 5 Resources)
|
|
32
|
+
|
|
33
|
+
Every operation returns the consistent middle.network `ToolResult` JSON shape:
|
|
34
|
+
|
|
35
|
+
- `status`: `pass`, `warn`, `fail`, `info`, or `error`
|
|
36
|
+
- `summary.plain` and `summary.tech`: plain-English and technical summaries
|
|
37
|
+
- `findings`: array of `{ level, tech, plain, fix? }`
|
|
38
|
+
- `data`: structured raw lookup output
|
|
39
|
+
|
|
40
|
+
| Resource | Operations |
|
|
41
|
+
| --- | --- |
|
|
42
|
+
| **Certificate & TLS** | Decode Certificate or CSR, Decode JA4 Fingerprint, Search Certificate Transparency Logs |
|
|
43
|
+
| **Converter & Decoder** | Calculate Subnet / CIDR, Convert IP Address Format, Convert MAC to IPv6, Convert Punycode / IDN, Convert Timestamp or TTL, Encode or Decode Text, Look Up MAC Vendor, Look Up User-Agent |
|
|
44
|
+
| **DNS** | Check DNS Health, Check DNS Propagation, Compare Authoritative vs Cached, Find Subdomains, Format Zone File, Look Up All DNS Records, Look Up Reverse DNS (PTR), Look Up Single DNS Record, Pre-Check Zone on Nameserver, Test DNS Resolver Speed, Validate DNSSEC |
|
|
45
|
+
| **Email** | Analyse DMARC Report XML, Analyse Email Headers, Check BIMI, Check Blacklists (DNSBL), Check Bulk Sender Compliance, Check DKIM, Check DMARC, Check MTA-STS, Check SPF, Check TLS-RPT, Generate Email Auth Record, Get Domain Email Score, Look Up MX Records |
|
|
46
|
+
| **Network & Ownership** | Check Domain Age & Expiry, Check Domain Availability, Get Caller IP & ISP, Look Up BGP / ASN, Look Up Bulk IPs, Look Up Domain WHOIS / RDAP, Look Up IP Geolocation, Look Up IP WHOIS / RDAP, Look Up Reverse IP |
|
|
47
|
+
|
|
48
|
+
Active probe tools that send direct traffic to a target (ping, traceroute, port checks, live HTTP/TLS/SMTP probes, and full health check) are currently website-only and are intentionally excluded so workflows never hit `403` errors.
|
|
49
|
+
|
|
50
|
+
## Using with n8n AI Agents
|
|
51
|
+
|
|
52
|
+
This node sets `usableAsTool: true`, so you can attach it directly to an n8n **AI Agent** node as a tool (for example, letting an agent inspect SPF/DKIM/DMARC records, check blacklists, or look up WHOIS/ASN ownership during triage).
|
|
53
|
+
|
|
54
|
+
## Development & Regenerating from OpenAPI
|
|
55
|
+
|
|
56
|
+
Operations are generated directly from the middle.network OpenAPI spec (`https://api.middle.network/v1/openapi.json`):
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
npm install
|
|
60
|
+
npm run generate # regenerates nodes/MiddleNetwork/generatedOperations.ts from OpenAPI
|
|
61
|
+
npm run lint # runs @n8n/node-cli lint
|
|
62
|
+
npm run build # compiles TypeScript and copies icons/codex into dist/
|
|
63
|
+
npm run scan # runs @n8n/scan-community-package
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
To regenerate from a local checkout of `middle.network`:
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
node scripts/generate-from-openapi.mjs --spec ../middle.network-git/docs/openapi.json
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## Publishing for n8n Verified Community Nodes
|
|
73
|
+
|
|
74
|
+
This repository includes `.github/workflows/publish.yml`, which publishes to npm with **GitHub Actions provenance** (`npm publish --provenance --access public`) whenever a GitHub Release is published.
|
|
75
|
+
|
|
76
|
+
1. Keep this repository **public** under `https://github.com/middle-dot-network/n8n-nodes-middle-network`.
|
|
77
|
+
2. Configure npm Trusted Publishing (or add `NPM_TOKEN` as a repository secret).
|
|
78
|
+
3. Tag and publish a GitHub Release (e.g. `v0.1.0`) so GitHub Actions builds, scans, and publishes with provenance.
|
|
79
|
+
4. Submit `https://www.npmjs.com/package/n8n-nodes-middle-network` in the [n8n Creator Portal](https://creators.n8n.io/).
|
|
80
|
+
|
|
81
|
+
## License
|
|
82
|
+
|
|
83
|
+
[MIT](LICENSE.md) - Middle Enterprises Pty Ltd (ABN 88 633 909 412, Australia).
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IAuthenticateGeneric, Icon, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare class MiddleNetworkApi implements ICredentialType {
|
|
3
|
+
name: string;
|
|
4
|
+
displayName: string;
|
|
5
|
+
icon: Icon;
|
|
6
|
+
documentationUrl: string;
|
|
7
|
+
properties: INodeProperties[];
|
|
8
|
+
authenticate: IAuthenticateGeneric;
|
|
9
|
+
test: ICredentialTestRequest;
|
|
10
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MiddleNetworkApi = void 0;
|
|
4
|
+
class MiddleNetworkApi {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.name = 'middleNetworkApi';
|
|
7
|
+
this.displayName = 'middle.network API';
|
|
8
|
+
this.icon = {
|
|
9
|
+
light: 'file:middleNetwork.svg',
|
|
10
|
+
dark: 'file:middleNetwork.dark.svg',
|
|
11
|
+
};
|
|
12
|
+
this.documentationUrl = 'https://middle.network/developers/#auth';
|
|
13
|
+
this.properties = [
|
|
14
|
+
{
|
|
15
|
+
displayName: 'How to get your free API key:<br>1. Sign in at <a href="https://middle.network/account/api-keys/" target="_blank">middle.network/account/api-keys</a> (Google, Microsoft, Apple, GitHub, or a one-time email code).<br>2. Click <b>Create key</b> and copy your <code>mn_live_...</code> token (shown once).<br>3. Paste it below and click <b>Save</b>. n8n verifies it via <code>GET /v1/key</code> without using daily quota.',
|
|
16
|
+
name: 'setupGuide',
|
|
17
|
+
type: 'notice',
|
|
18
|
+
default: '',
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
displayName: 'API Key',
|
|
22
|
+
name: 'apiKey',
|
|
23
|
+
type: 'string',
|
|
24
|
+
typeOptions: { password: true },
|
|
25
|
+
required: true,
|
|
26
|
+
default: '',
|
|
27
|
+
placeholder: 'mn_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
|
|
28
|
+
hint: 'Create or revoke keys anytime at <a href="https://middle.network/account/api-keys/" target="_blank">middle.network/account/api-keys</a>',
|
|
29
|
+
description: 'Your middle.network Bearer API key (starts with mn_live_). Free self-serve keys include 3,000 cost units per UTC day.',
|
|
30
|
+
},
|
|
31
|
+
];
|
|
32
|
+
this.authenticate = {
|
|
33
|
+
type: 'generic',
|
|
34
|
+
properties: {
|
|
35
|
+
headers: {
|
|
36
|
+
Authorization: '=Bearer {{$credentials.apiKey}}',
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
this.test = {
|
|
41
|
+
request: {
|
|
42
|
+
baseURL: 'https://api.middle.network',
|
|
43
|
+
url: '/v1/key',
|
|
44
|
+
method: 'GET',
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.MiddleNetworkApi = MiddleNetworkApi;
|
|
50
|
+
//# sourceMappingURL=MiddleNetworkApi.credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MiddleNetworkApi.credentials.js","sourceRoot":"","sources":["../../credentials/MiddleNetworkApi.credentials.ts"],"names":[],"mappings":";;;AAQA,MAAa,gBAAgB;IAA7B;QACC,SAAI,GAAG,kBAAkB,CAAC;QAE1B,gBAAW,GAAG,oBAAoB,CAAC;QAEnC,SAAI,GAAS;YACZ,KAAK,EAAE,wBAAwB;YAC/B,IAAI,EAAE,6BAA6B;SACnC,CAAC;QAEF,qBAAgB,GAAG,yCAAyC,CAAC;QAE7D,eAAU,GAAsB;YAC/B;gBACC,WAAW,EACV,kaAAka;gBACna,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;aACX;YACD;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,0CAA0C;gBACvD,IAAI,EAAE,yIAAyI;gBAC/I,WAAW,EACV,uHAAuH;aACxH;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,aAAa,EAAE,iCAAiC;iBAChD;aACD;SACD,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,4BAA4B;gBACrC,GAAG,EAAE,SAAS;gBACd,MAAM,EAAE,KAAK;aACb;SACD,CAAC;IACH,CAAC;CAAA;AAlDD,4CAkDC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 32 32" fill="none"><circle cx="16" cy="16" r="15.5" fill="#222934"/><g stroke="#fff" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="16" cy="16" r="13"/><path d="M3 16h26M16 3c-4 3.6-6 8-6 13s2 9.4 6 13M16 3c4 3.6 6 8 6 13s-2 9.4-6 13" opacity=".35"/><path d="M7.5 21.5 12.5 12l6 7 5.5-9.5" stroke-width="2.2"/></g><g fill="#fff"><circle cx="7.5" cy="21.5" r="2.2"/><circle cx="12.5" cy="12" r="2.2"/><circle cx="18.5" cy="19" r="2.2"/></g><circle cx="24" cy="9.5" r="2.8" fill="#fff"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 32 32" fill="none"><circle cx="16" cy="16" r="15.5" fill="#fff"/><g stroke="#222934" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="16" cy="16" r="13"/><path d="M3 16h26M16 3c-4 3.6-6 8-6 13s2 9.4 6 13M16 3c4 3.6 6 8 6 13s-2 9.4-6 13" opacity=".35"/><path d="M7.5 21.5 12.5 12l6 7 5.5-9.5" stroke-width="2.2"/></g><g fill="#222934"><circle cx="7.5" cy="21.5" r="2.2"/><circle cx="12.5" cy="12" r="2.2"/><circle cx="18.5" cy="19" r="2.2"/></g><circle cx="24" cy="9.5" r="2.8" fill="#222934"/></svg>
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MiddleNetwork = void 0;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
const generatedOperations_1 = require("./generatedOperations");
|
|
6
|
+
class MiddleNetwork {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.description = {
|
|
9
|
+
displayName: 'middle.network',
|
|
10
|
+
name: 'middleNetwork',
|
|
11
|
+
icon: {
|
|
12
|
+
light: 'file:middleNetwork.svg',
|
|
13
|
+
dark: 'file:middleNetwork.dark.svg',
|
|
14
|
+
},
|
|
15
|
+
group: ['transform'],
|
|
16
|
+
version: 1,
|
|
17
|
+
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
|
18
|
+
description: 'Run DNS, email authentication (SPF, DKIM, DMARC, blacklists), WHOIS/RDAP, ASN, certificate transparency, and network decoder checks with plain-English and technical results',
|
|
19
|
+
defaults: {
|
|
20
|
+
name: 'middle.network',
|
|
21
|
+
},
|
|
22
|
+
usableAsTool: true,
|
|
23
|
+
inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
24
|
+
outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
25
|
+
credentials: [
|
|
26
|
+
{
|
|
27
|
+
name: 'middleNetworkApi',
|
|
28
|
+
required: true,
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
requestDefaults: {
|
|
32
|
+
baseURL: 'https://api.middle.network',
|
|
33
|
+
headers: {
|
|
34
|
+
Accept: 'application/json',
|
|
35
|
+
'Content-Type': 'application/json',
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
properties: generatedOperations_1.middleNetworkProperties,
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.MiddleNetwork = MiddleNetwork;
|
|
43
|
+
//# sourceMappingURL=MiddleNetwork.node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MiddleNetwork.node.js","sourceRoot":"","sources":["../../../nodes/MiddleNetwork/MiddleNetwork.node.ts"],"names":[],"mappings":";;;AAAA,+CAA8F;AAC9F,+DAAgE;AAEhE,MAAa,aAAa;IAA1B;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,gBAAgB;YAC7B,IAAI,EAAE,eAAe;YACrB,IAAI,EAAE;gBACL,KAAK,EAAE,wBAAwB;gBAC/B,IAAI,EAAE,6BAA6B;aACnC;YACD,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,8DAA8D;YACxE,WAAW,EACV,8KAA8K;YAC/K,QAAQ,EAAE;gBACT,IAAI,EAAE,gBAAgB;aACtB;YACD,YAAY,EAAE,IAAI;YAClB,MAAM,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YAClC,OAAO,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YACnC,WAAW,EAAE;gBACZ;oBACC,IAAI,EAAE,kBAAkB;oBACxB,QAAQ,EAAE,IAAI;iBACd;aACD;YACD,eAAe,EAAE;gBAChB,OAAO,EAAE,4BAA4B;gBACrC,OAAO,EAAE;oBACR,MAAM,EAAE,kBAAkB;oBAC1B,cAAc,EAAE,kBAAkB;iBAClC;aACD;YACD,UAAU,EAAE,6CAAuB;SACnC,CAAC;IACH,CAAC;CAAA;AAlCD,sCAkCC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node": "n8n-nodes-middle-network.middleNetwork",
|
|
3
|
+
"nodeVersion": "1.0",
|
|
4
|
+
"codexVersion": "1.0",
|
|
5
|
+
"categories": ["Development", "Utility"],
|
|
6
|
+
"alias": [
|
|
7
|
+
"DNS",
|
|
8
|
+
"SPF",
|
|
9
|
+
"DKIM",
|
|
10
|
+
"DMARC",
|
|
11
|
+
"WHOIS",
|
|
12
|
+
"RDAP",
|
|
13
|
+
"ASN",
|
|
14
|
+
"BGP",
|
|
15
|
+
"GeoIP",
|
|
16
|
+
"Blacklist",
|
|
17
|
+
"DNSBL",
|
|
18
|
+
"Certificate Transparency",
|
|
19
|
+
"JA4",
|
|
20
|
+
"Subnet",
|
|
21
|
+
"CIDR",
|
|
22
|
+
"Network",
|
|
23
|
+
"Email Deliverability"
|
|
24
|
+
],
|
|
25
|
+
"resources": {
|
|
26
|
+
"credentialDocumentation": [
|
|
27
|
+
{
|
|
28
|
+
"url": "https://middle.network/developers/#auth"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"url": "https://middle.network/account/api-keys/"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"primaryDocumentation": [
|
|
35
|
+
{
|
|
36
|
+
"url": "https://middle.network/developers/"
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
}
|