MCPcopy Index your code
hub / github.com/branchard/fast-speedtest-api

github.com/branchard/fast-speedtest-api @0.3.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.3.2 ↗ · + Follow
20 symbols 31 edges 5 files 13 documented · 65%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

fast.com logo

fast.com API / CLI tool

Build Status NPM version Node version GitHub license

A speed test powered by fast.com
From scratch, with no dependencies

Installation

$ npm install --save fast-speedtest-api

Command-Line Tool

$ npm install --global fast-speedtest-api
$ fast-speedtest --help
    fast-speedtest - speed test powered by fast.com
    usage: fast-speedtest token [-v, --verbose] [-r, --raw] [-n, --no-https] [-t, --timeout timeout] [-c, --count url-count] [-b, --buffer buffer-size] [-u, --unit output-unit]

Api usage

Example:

const FastSpeedtest = require("fast-speedtest-api");

let speedtest = new FastSpeedtest({
    token: "your-app-token", // required
    verbose: false, // default: false
    timeout: 10000, // default: 5000
    https: true, // default: true
    urlCount: 5, // default: 5
    bufferSize: 8, // default: 8
    unit: FastSpeedtest.UNITS.Mbps // default: Bps
});

speedtest.getSpeed().then(s => {
    console.log(`Speed: ${s} Mbps`);
}).catch(e => {
    console.error(e.message);
});

FAQ

How to get app token ?

Go on fast.com, open your browser devtools, go on Network tab and copy the token on the request url that looks like https://api.fast.com/netflix/speedtest?https=true&token=<the-token>&urlCount=5

TODO

  • Better verbose mode
  • Add tests

Feel free to contribute

Core symbols most depended-on inside this repo

getArgParam
called by 4
src/cli.js
average
called by 2
src/Api.js
get
called by 2
src/Api.js
addCallback
called by 1
src/Timer.js
start
called by 1
src/Timer.js
resume
called by 1
src/Timer.js
stop
called by 1
src/Timer.js
clear
called by 1
src/Timer.js

Shape

Method 13
Class 6
Function 1

Languages

TypeScript100%

Modules by API surface

src/Timer.js9 symbols
src/Api.js7 symbols
src/ApiError.js3 symbols
src/cli.js1 symbols

For agents

$ claude mcp add fast-speedtest-api \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact