# node-red-contrib-fast-bandwidth

> Test network bandwidth using Fast.com

Latest version **0.0.3** (published 2021-06-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install node-red-contrib-fast-bandwidth
pnpm add node-red-contrib-fast-bandwidth
yarn add node-red-contrib-fast-bandwidth
bun add node-red-contrib-fast-bandwidth
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2021-06-03 |
| First published | 2021-04-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 10.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | jasoncarreira |
| Maintainers | jcarreira |
| Keywords | node-red, bandwidth, fast |

## Links

- npm: https://www.npmjs.com/package/node-red-contrib-fast-bandwidth
- npm.io page: https://npm.io/package/node-red-contrib-fast-bandwidth

## Dependencies (4)

- [ora](https://npm.io/package/ora.md) ^3.1.0
- [delay](https://npm.io/package/delay.md) ^5.0.0
- [puppeteer](https://npm.io/package/puppeteer.md) ^9.1.1
- [zen-observable](https://npm.io/package/zen-observable.md) ^0.8.15

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 0.0.3 (latest) — 2021-06-03
- 0.0.2 — 2021-04-20
- 0.0.1 — 2021-04-19

## README

# node-red-contrib-fast-bandwidth

Tests your network bandwidth using [Fast.com.](http://fast.com) 

This will trigger on any message without looking at the payload. 
The only configuration parameter is _upload_ to set whether to also test upload bandwidth. This is on by default. 
Turning this off will make it return faster.

The message from this node will look like this:

    payload: { 
        downloadSpeed: 25, 
        uploadSpeed: 140,
        latency: 30,
        bufferBloat: 208,
        downloadUnit: 'Mbps',
        uploadUnit: 'Kbps',
        latencyUnit: 'ms',
        bufferBloatUnit: 'ms',
        isDone: true 
    }

NOTE: If you want to run this in Node-RED in Docker, you'll need a custom Dockerfile for Node-RED to pre-install 
Puppeteer / Chromium. See [here:](https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md#running-puppeteer-in-docker)

This one worked for me:

    FROM nodered/node-red:latest
    
    USER root
    
    # Installs latest Chromium (89) package.
    RUN apk add --no-cache \
    chromium \
    nss \
    freetype \
    harfbuzz \
    ca-certificates \
    ttf-freefont
    
    # Tell Puppeteer to skip installing Chrome. We'll be using the installed package.
    ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true \
    PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
    
    # Puppeteer v6.0.0 works with Chromium 89.
    RUN yarn add puppeteer@6.0.0
    
    # Add user so we don't need --no-sandbox.
    RUN mkdir -p /usr/src/node-red/Downloads \
    && chown -R node-red:node-red /usr/src/node-red/Downloads
    
    USER node-red

---
_Source: https://npm.io/package/node-red-contrib-fast-bandwidth · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
