{"id":19093015,"url":"https://github.com/foxt/fast-js","last_synced_at":"2025-07-25T08:09:47.302Z","repository":{"id":85788400,"uuid":"485067966","full_name":"foxt/fast-js","owner":"foxt","description":"CLI \u0026 Node.js library for Netflix' fast.com speedtesting service","archived":false,"fork":false,"pushed_at":"2022-05-25T14:43:58.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-22T07:48:31.954Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/foxt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-24T15:39:57.000Z","updated_at":"2022-05-26T21:51:55.000Z","dependencies_parsed_at":"2023-03-04T14:00:37.510Z","dependency_job_id":null,"html_url":"https://github.com/foxt/fast-js","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/foxt/fast-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxt%2Ffast-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxt%2Ffast-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxt%2Ffast-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxt%2Ffast-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/foxt","download_url":"https://codeload.github.com/foxt/fast-js/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxt%2Ffast-js/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266978002,"owners_count":24015486,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-25T02:00:09.625Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T03:23:04.002Z","updated_at":"2025-07-25T08:09:47.261Z","avatar_url":"https://github.com/foxt.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fast-js\nCLI \u0026 Node.js library for Netflix' fast.com speedtesting service\n\n## Usage\n\n### CLI\n\n#### Simple usage\n```sh\n$ ./fast.js\n\nDownloaded 550.50MB in 5.28s\nAverage speed: 834.09 mbps\n┌─────────┬─────────────────┬────────────┬──────────┬───────────────┐\n│ (index) │    location     │     mb     │ duration │     mbps      │\n├─────────┼─────────────────┼────────────┼──────────┼───────────────┤\n│    0    │ 'Kirk Ella, GB' │ '157.29MB' │ '5275ms' │ '238.54 mbps' │\n│    1    │   'Hull, GB'    │ '157.29MB' │ '5689ms' │ '221.18 mbps' │\n│    2    │   'hull, GB'    │ '131.07MB' │ '5717ms' │ '183.41 mbps' │\n│    3    │   'HULL, GB'    │ '78.64MB'  │ '4693ms' │ '134.06 mbps' │\n│    4    │  'London, GB'   │ '26.21MB'  │ '5026ms' │ '41.73 mbps'  │\n└─────────┴─────────────────┴────────────┴──────────┴───────────────┘\n```\n#### Advanced options\n```\n$ /fast.js --help\nOptions:\n  -s \u003cnumber\u003e  The amount of servers to test (default: 5)\n  -t \u003cnumber\u003e  The amount of threads per server (default: 1)\n  -d \u003cnumber\u003e  The duration of the test (default: 5)\n  -f [4|6]     IP address family (IPv4/6) to use. If not specified, both will be used.\n  -j           Output in JSON format\n```\n```sh \n$ ./fast.js -s 2 -t 3 -d 10\nDownloaded 1048.58MB in 10.73s\nAverage speed: 781.73 mbps\n┌─────────┬─────────────────┬────────────┬───────────┬───────────────┐\n│ (index) │    location     │     mb     │ duration  │     mbps      │\n├─────────┼─────────────────┼────────────┼───────────┼───────────────┤\n│    0    │ 'Kirk Ella, GB' │ '183.50MB' │ '10375ms' │ '141.49 mbps' │\n│    1    │ 'Kirk Ella, GB' │ '183.50MB' │ '10592ms' │ '138.60 mbps' │\n│    2    │   'Hull, GB'    │ '183.50MB' │ '11004ms' │ '133.41 mbps' │\n│    3    │   'Hull, GB'    │ '183.50MB' │ '11306ms' │ '129.84 mbps' │\n│    4    │ 'Kirk Ella, GB' │ '157.29MB' │ '10270ms' │ '122.52 mbps' │\n│    5    │   'Hull, GB'    │ '157.29MB' │ '10838ms' │ '116.10 mbps' │\n└─────────┴─────────────────┴────────────┴───────────┴───────────────┘\n```\n\n#### JSON output\n```\n$ ./fast.js -j\n{\"bytes\":524288000,\"duration\":5416.2,\"threadResults\":[{\"url\":\"shortened\",\"bytes\":78643200,\"duration\":5093},{\"url\":\"shortened\",\"bytes\":131072000,\"duration\":5604},{\"url\":\"shortened\",\"bytes\":131072000,\"duration\":5449},{\"url\":\"shortened\",\"bytes\":157286400,\"duration\":5582},{\"url\":\"shortened\",\"bytes\":26214400,\"duration\":5353}]}\n```\n\n### Programatically\n```\n\u003e require(\"./fast.js\")\n{\n  runSpeedTest: [AsyncFunction: runSpeedTest],\n  getFastServers: [Function: getFastServers]\n}\n\u003e await require(\"./fast.js\").getFastServers(amountOfServers)\n{\n  client: {\n    ip: '123.456.789.123',\n    asn: '12345',\n    location: { city: 'Hull', country: 'GB' }\n  },\n  targets: [\n    {\n      name: 'https://...',\n      url: 'https://...',\n      location: { city: 'Hull', country: 'GB' }\n    }\n  ]\n}\n\u003e await require(\"./fast.js\").runSpeedTest(serverCount,threadPerServer, duration, verbose)\n{\n  bytes: 471859200,\n  duration: 4610.2,\n  threadResults: [\n    {\n      url: 'https://...',\n      bytes: 78643200,\n      duration: 4351\n    },\n    ...\n  ]\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoxt%2Ffast-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffoxt%2Ffast-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoxt%2Ffast-js/lists"}