n8n-nodes-speedtest-net 0.0.0-stage → 0.1.0

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 ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Daniel Dolezal
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,71 @@
1
- # Temporary Holding Version
1
+ # n8n-nodes-speedtest-net
2
+ A TypeScript n8n community node for internet speed tests using [`speedtest-net`](https://github.com/ddsol/speedtest.net) and the Ookla Speedtest CLI. Adapted from the behavior of the included Node-RED example, which is left unchanged.
2
3
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
4
+ ## Features
5
+ - One speed test per input item, executed sequentially to avoid competing for bandwidth.
6
+ - Download/upload throughput, ping, jitter, server details, ISP, and the raw Ookla result.
7
+ - Convenient `downloadMbps` and `uploadMbps` fields (decimal megabits/second).
8
+ - Optional Ookla server ID, source interface IP, and a real cancellation timeout (default 120 seconds).
9
+ - n8n item linking, expressions, and **On Error → Continue (using regular output)** support.
10
+ - Explicit license/GDPR consent switches, both disabled by default.
11
+
12
+ ## Requirements and limitations
13
+ - Self-hosted n8n with Node.js 22 or newer. This is not an n8n Cloud-compatible verified node: it runs a local executable and uses a third-party dependency.
14
+ - The test measures the connection of the **n8n worker/container**, not your browser. VPNs, routing, and Docker networking affect the result.
15
+ - `speedtest-net` downloads an Ookla executable on first use and needs outbound internet access plus a writable cache directory. Platform support is limited to that of `speedtest-net` and the Ookla binary. Alpine/musl containers may need a compatible runtime or a glibc-based worker image.
16
+ - Review [Ookla's EULA](https://www.speedtest.net/about/eula), [Terms](https://www.speedtest.net/about/terms), and [Privacy Policy](https://www.speedtest.net/about/privacy). Ookla's CLI license has use restrictions; this package's MIT license does not override them.
17
+ - Tests consume bandwidth and may use significant data. Start with a Manual Trigger and avoid short schedule intervals.
18
+
19
+ ### Important: upstream native dependency
20
+ `speedtest-net@2.2.0` imports `decompress-tarxz`, which depends on the old `lzma-native@4`. That native dependency can fail on modern Node.js even on platforms where the XZ extractor is not used.
21
+
22
+ This repository uses a root npm override to select `lzma-native@8`. **npm overrides do not propagate from a dependency to its consumer.** When installing this package into a separate community-node project, add the following override to that project's root `package.json` before installation:
23
+ ```json
24
+ {
25
+ "overrides": {
26
+ "decompress-tarxz": {
27
+ "lzma-native": "^8.0.6"
28
+ }
29
+ }
30
+ }
31
+ ```
32
+
33
+ With npm 12, also allow the reviewed `lzma-native` install script in that project's `allowScripts` configuration. Do not blindly enable every dependency script. A one-click community-node install without this root configuration is **not verified** on modern Node.js.
34
+
35
+ `speedtest-net` also brings legacy transitive dependencies with known npm audit findings. This implementation does not claim to resolve those upstream issues. Review them before deployment, especially for shared or production instances.
36
+
37
+ ## Build and test
38
+ ```bash
39
+ npm ci
40
+ npm test
41
+ npm run typecheck
42
+ npm run build
43
+ npm pack
44
+ ```
45
+
46
+ The generated package is `n8n-nodes-speedtest-net-0.1.0.tgz`. The Node-RED reference, tests, and development files are not shipped in it.
47
+
48
+ ## Local installation into self-hosted n8n
49
+ Build and pack the project first. Copy the tarball to the n8n host/container. In n8n's community-package directory (typically `~/.n8n/nodes`), create a root package.json if needed, apply the native-dependency override above, and install the tarball with npm. Run npm as the same user that owns n8n's files, then restart n8n. In queue mode, install the package on every worker as well as the main instance.
50
+
51
+ Alternatively, for development, expose the built `dist/nodes` directory through `N8N_CUSTOM_EXTENSIONS`, and make this project's `node_modules` available alongside it. Restart n8n after rebuilding. Installation, discovery, and a real speed test still need to be verified in your actual n8n environment.
52
+
53
+ ## Usage
54
+ 1. Add **Manual Trigger → Speedtest**.
55
+ 2. Review Ookla's terms and explicitly enable both acceptance switches if you agree.
56
+ 3. Optionally choose **Server ID**, **Source IP**, or **Timeout (Seconds)** under Options.
57
+ 4. Execute the workflow.
58
+ 5. Use `{{ $json.downloadMbps }}`, `{{ $json.uploadMbps }}`, or `{{ $json.ping.latency }}` downstream.
59
+
60
+ Output is the raw speedtest result plus the two Mbps fields. Timestamps are JSON strings. Original bandwidth values in `download.bandwidth` and `upload.bandwidth` remain in **bytes per second**. On continued failure, output is `{ "error": "..." }`, linked to its input item.
61
+
62
+ The Node-RED example's `maxTime` setting is not a supported `speedtest-net@2.2.0` option. This node instead implements its own timeout using the library's cancellation API. Timeout covers first-use setup too; the wrapper may finish an already-started download before observing cancellation.
63
+
64
+ ## Project layout
65
+ - `nodes/Speedtest/Speedtest.node.ts`: n8n UI and execution integration.
66
+ - `nodes/Speedtest/runSpeedtest.ts`: wrapper, timeout, and output conversion.
67
+ - `tests/`: isolated unit tests; no Ookla connections or bandwidth tests.
68
+ - `node-red-contrib-speedtest/`: original reference project, unchanged.
69
+
70
+ ## License
71
+ MIT. See `LICENSE`. The original Node-RED example retains its own license and attribution.
@@ -0,0 +1,5 @@
1
+ import { type IExecuteFunctions, type INodeExecutionData, type INodeType, type INodeTypeDescription } from 'n8n-workflow';
2
+ export declare class Speedtest implements INodeType {
3
+ description: INodeTypeDescription;
4
+ execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
5
+ }
@@ -0,0 +1,110 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Speedtest = void 0;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ const runSpeedtest_1 = require("./runSpeedtest");
6
+ class Speedtest {
7
+ description = {
8
+ displayName: 'Speedtest',
9
+ name: 'speedtest',
10
+ icon: 'file:speedtest.svg',
11
+ group: ['transform'],
12
+ version: 1,
13
+ description: 'Measure internet download, upload, and latency using Ookla Speedtest',
14
+ defaults: { name: 'Speedtest' },
15
+ inputs: ['main'],
16
+ outputs: ['main'],
17
+ properties: [
18
+ {
19
+ displayName: 'Tests run on the n8n worker, not your browser. They can consume substantial bandwidth. Ookla terms apply.',
20
+ name: 'notice',
21
+ type: 'notice',
22
+ default: '',
23
+ },
24
+ {
25
+ displayName: 'Accept Ookla License',
26
+ name: 'acceptLicense',
27
+ type: 'boolean',
28
+ default: false,
29
+ description: 'Whether you accept the Ookla EULA, Terms of Use, and Privacy Policy (speedtest.net/about/eula, /terms, /privacy)',
30
+ },
31
+ {
32
+ displayName: 'Accept Ookla GDPR Terms',
33
+ name: 'acceptGdpr',
34
+ type: 'boolean',
35
+ default: false,
36
+ description: 'Whether you accept the Ookla GDPR terms and consent to the processing described by Ookla',
37
+ },
38
+ {
39
+ displayName: 'Options',
40
+ name: 'options',
41
+ type: 'collection',
42
+ placeholder: 'Add Option',
43
+ default: {},
44
+ options: [
45
+ {
46
+ displayName: 'Server ID',
47
+ name: 'serverId',
48
+ type: 'string',
49
+ default: '',
50
+ description: 'Ookla server ID. Leave empty to select a server automatically.',
51
+ },
52
+ {
53
+ displayName: 'Source IP',
54
+ name: 'sourceIp',
55
+ type: 'string',
56
+ default: '',
57
+ description: 'Local IP address of the interface to test. Leave empty for the default route.',
58
+ },
59
+ {
60
+ displayName: 'Timeout (Seconds)',
61
+ name: 'timeout',
62
+ type: 'number',
63
+ default: 120,
64
+ typeOptions: { minValue: 1, maxValue: 3600, numberPrecision: 0 },
65
+ description: 'Maximum time to wait for a result before cancelling the test',
66
+ },
67
+ ],
68
+ },
69
+ ],
70
+ };
71
+ async execute() {
72
+ const items = this.getInputData();
73
+ const output = [];
74
+ // Run sequentially: parallel speed tests would distort each other's results.
75
+ for (let itemIndex = 0; itemIndex < items.length; itemIndex++) {
76
+ try {
77
+ const acceptLicense = this.getNodeParameter('acceptLicense', itemIndex);
78
+ const acceptGdpr = this.getNodeParameter('acceptGdpr', itemIndex);
79
+ if (!acceptLicense || !acceptGdpr) {
80
+ throw new Error('Review and enable both Ookla consent options before running a speed test');
81
+ }
82
+ const options = this.getNodeParameter('options', itemIndex, {});
83
+ const timeout = options.timeout ?? 120;
84
+ if (!Number.isInteger(timeout) || timeout < 1 || timeout > 3600) {
85
+ throw new Error('Timeout must be an integer between 1 and 3600 seconds');
86
+ }
87
+ const serverId = options.serverId?.trim();
88
+ const sourceIp = options.sourceIp?.trim();
89
+ const json = await (0, runSpeedtest_1.runSpeedtest)({
90
+ acceptLicense,
91
+ acceptGdpr,
92
+ ...(serverId ? { serverId } : {}),
93
+ ...(sourceIp ? { sourceIp } : {}),
94
+ }, timeout);
95
+ output.push({ json, pairedItem: { item: itemIndex } });
96
+ }
97
+ catch (error) {
98
+ const cause = error instanceof Error ? error : new Error(String(error));
99
+ if (this.continueOnFail()) {
100
+ output.push({ json: { error: cause.message }, pairedItem: { item: itemIndex } });
101
+ continue;
102
+ }
103
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), cause, { itemIndex });
104
+ }
105
+ }
106
+ return [output];
107
+ }
108
+ }
109
+ exports.Speedtest = Speedtest;
110
+ //# sourceMappingURL=Speedtest.node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Speedtest.node.js","sourceRoot":"","sources":["../../../nodes/Speedtest/Speedtest.node.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,EAAE,IAAI,EAAE,CAAC;gBAC1C,MAAM,IAAI,GAAG,MAAM,IAAA,2BAAY,EAAC;oBAC/B,aAAa;oBACb,UAAU;oBACV,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;oBACjC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;iBACjC,EAAE,OAAO,CAAC,CAAC;gBACZ,MAAM,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,CAAC,CAAC;YACxD,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBAChB,MAAM,KAAK,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;gBACxE,IAAI,IAAI,CAAC,cAAc,EAAE,EAAE,CAAC;oBAC3B,MAAM,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,CAAC,CAAC;oBACjF,SAAS;gBACV,CAAC;gBACD,MAAM,IAAI,iCAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,CAAC,CAAC;YACpE,CAAC;QACF,CAAC;QACD,OAAO,CAAC,MAAM,CAAC,CAAC;IACjB,CAAC;CACD;AAxGD,8BAwGC"}
@@ -0,0 +1,8 @@
1
+ import type { IDataObject } from 'n8n-workflow';
2
+ export interface SpeedtestOptions {
3
+ acceptLicense: boolean;
4
+ acceptGdpr: boolean;
5
+ serverId?: string;
6
+ sourceIp?: string;
7
+ }
8
+ export declare function runSpeedtest(options: SpeedtestOptions, timeoutSeconds: number): Promise<IDataObject>;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.runSpeedtest = runSpeedtest;
7
+ const speedtest_net_1 = __importDefault(require("speedtest-net"));
8
+ async function runSpeedtest(options, timeoutSeconds) {
9
+ const cancel = speedtest_net_1.default.makeCancel();
10
+ let timer;
11
+ try {
12
+ const result = await Promise.race([
13
+ (0, speedtest_net_1.default)({ ...options, cancel }),
14
+ new Promise((_, reject) => {
15
+ timer = setTimeout(() => {
16
+ reject(new Error('Speed test timed out after ' + timeoutSeconds + ' seconds'));
17
+ cancel();
18
+ }, timeoutSeconds * 1000);
19
+ }),
20
+ ]);
21
+ if (!result || !Number.isFinite(result.download?.bandwidth) || !Number.isFinite(result.upload?.bandwidth)) {
22
+ throw new Error('Speedtest returned no valid download/upload result');
23
+ }
24
+ // Ookla reports bandwidth in bytes/second; Mbps uses decimal megabits.
25
+ return JSON.parse(JSON.stringify({
26
+ ...result,
27
+ downloadMbps: result.download.bandwidth * 8 / 1_000_000,
28
+ uploadMbps: result.upload.bandwidth * 8 / 1_000_000,
29
+ }));
30
+ }
31
+ finally {
32
+ if (timer !== undefined)
33
+ clearTimeout(timer);
34
+ }
35
+ }
36
+ //# sourceMappingURL=runSpeedtest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runSpeedtest.js","sourceRoot":"","sources":["../../../nodes/Speedtest/runSpeedtest.ts"],"names":[],"mappings":";;;;;AAUA,oCAyBC;AAlCD,kEAAsC;AAS/B,KAAK,UAAU,YAAY,CAAC,OAAyB,EAAE,cAAsB;IACnF,MAAM,MAAM,GAAG,uBAAS,CAAC,UAAU,EAAE,CAAC;IACtC,IAAI,KAAgD,CAAC;IACrD,IAAI,CAAC;QACJ,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC;YACjC,IAAA,uBAAS,EAAC,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,CAAC;YACjC,IAAI,OAAO,CAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE;gBAChC,KAAK,GAAG,UAAU,CAAC,GAAG,EAAE;oBACvB,MAAM,CAAC,IAAI,KAAK,CAAC,6BAA6B,GAAG,cAAc,GAAG,UAAU,CAAC,CAAC,CAAC;oBAC/E,MAAM,EAAE,CAAC;gBACV,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC,CAAC;YAC3B,CAAC,CAAC;SACF,CAAC,CAAC;QACH,IAAI,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,EAAE,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,EAAE,CAAC;YAC3G,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAC;QACvE,CAAC;QACD,uEAAuE;QACvE,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC;YAChC,GAAG,MAAM;YACT,YAAY,EAAE,MAAM,CAAC,QAAQ,CAAC,SAAS,GAAG,CAAC,GAAG,SAAS;YACvD,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,SAAS,GAAG,CAAC,GAAG,SAAS;SACnD,CAAE,CAAgB,CAAC;IACrB,CAAC;YAAS,CAAC;QACV,IAAI,KAAK,KAAK,SAAS;YAAE,YAAY,CAAC,KAAK,CAAC,CAAC;IAC9C,CAAC;AACF,CAAC"}
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><rect width="64" height="64" rx="12" fill="#182b49"/><path d="M12 46a23 23 0 1 1 40 0" fill="none" stroke="#40c9a2" stroke-width="6"/><path d="m32 36 14-15" stroke="white" stroke-width="5" stroke-linecap="round"/><circle cx="32" cy="36" r="5" fill="white"/></svg>
package/package.json CHANGED
@@ -1,6 +1,52 @@
1
1
  {
2
2
  "name": "n8n-nodes-speedtest-net",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0",
4
+ "description": "Run Ookla internet speed tests in n8n using speedtest-net",
5
+ "license": "MIT",
6
+ "keywords": [
7
+ "n8n-community-node-package",
8
+ "n8n",
9
+ "speedtest",
10
+ "speedtest-net"
11
+ ],
12
+ "files": [
13
+ "dist"
14
+ ],
15
+ "scripts": {
16
+ "build": "tsc && node scripts/copy-assets.mjs",
17
+ "test": "vitest run",
18
+ "typecheck": "tsc --noEmit",
19
+ "prepack": "npm run build"
20
+ },
21
+ "engines": {
22
+ "node": ">=22"
23
+ },
24
+ "n8n": {
25
+ "n8nNodesApiVersion": 1,
26
+ "nodes": [
27
+ "dist/nodes/Speedtest/Speedtest.node.js"
28
+ ]
29
+ },
30
+ "dependencies": {
31
+ "speedtest-net": "^2.2.0"
32
+ },
33
+ "overrides": {
34
+ "decompress-tarxz": {
35
+ "lzma-native": "^8.0.6"
36
+ }
37
+ },
38
+ "allowScripts": {
39
+ "lzma-native": true,
40
+ "esbuild": true
41
+ },
42
+ "peerDependencies": {
43
+ "n8n-workflow": "*"
44
+ },
45
+ "devDependencies": {
46
+ "n8n-workflow": "^2.16.0",
47
+ "@types/node": "^22.0.0",
48
+ "@types/speedtest-net": "^2.1.5",
49
+ "typescript": "~5.9.3",
50
+ "vitest": "^3.2.7"
51
+ }
52
+ }