{"id":20367529,"url":"https://github.com/hikire/iback","last_synced_at":"2026-02-27T21:02:02.402Z","repository":{"id":57270614,"uuid":"136821087","full_name":"hikire/iback","owner":"hikire","description":"a CLI utility to notify you when your Internet speed is back to normal","archived":false,"fork":false,"pushed_at":"2018-09-13T18:34:05.000Z","size":38,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-04T14:45:46.420Z","etag":null,"topics":["bandwidth","check","cli","internet","internet-speed","internet-speed-checker","notify"],"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/hikire.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}},"created_at":"2018-06-10T15:31:47.000Z","updated_at":"2024-01-06T12:16:53.000Z","dependencies_parsed_at":"2022-09-06T21:52:44.066Z","dependency_job_id":null,"html_url":"https://github.com/hikire/iback","commit_stats":null,"previous_names":["zurajanainazayda/iback"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/hikire/iback","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hikire%2Fiback","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hikire%2Fiback/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hikire%2Fiback/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hikire%2Fiback/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hikire","download_url":"https://codeload.github.com/hikire/iback/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hikire%2Fiback/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29913657,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T19:37:42.220Z","status":"ssl_error","status_checked_at":"2026-02-27T19:37:41.463Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bandwidth","check","cli","internet","internet-speed","internet-speed-checker","notify"],"created_at":"2024-11-15T00:32:59.672Z","updated_at":"2026-02-27T21:02:02.380Z","avatar_url":"https://github.com/hikire.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Iback\n\nThis CLI tool notifies you when your internet connection speed is back to normal, so you can kick back instead of watching Chrome's dinosaur while clicking F5.\n\n![iback - failed and retrying](https://user-images.githubusercontent.com/39221661/41248474-ddffa7c8-6db9-11e8-85f7-0abdda54926a.png)\n![iback - success](https://user-images.githubusercontent.com/39221661/41237716-e3c62c44-6d9c-11e8-9e13-2c0740b1503f.png)\n\n\n## Installation\n\n```sh\nnpm i -g iback\n```\n\n## Usage\n\n```sh\niback\n```\n\n### Options\n\n      Options\n    --help Display this help\n    --min-download=\u003cspeed\u003e, -d=\u003cspeed\u003e Set the minimum download speed in Mbps to pass the test\n      default: 0.01\n    --min-upload=\u003cspeed\u003e, -u=\u003cspeed\u003e Set the minimum upload speed in Mbps to pass the test\n      default: 0.01\n    --max-ping=\u003cms\u003e, -p=\u003cms\u003e Set the maximum ping to pass the test\n      default: 5000\n    --silent, -s  Don't send notifications\n    --stiky-notifications, -sn Make all notifications wait\n    --no-sounds, -ns Stop the notification sounds\n    --notify-on-errors, -ne Show a notification when an error occurs\n    --log-errors, -le Log errors\n    --error-retry-time=\u003cseconds\u003e, -ert=\u003cseconds\u003e Set the time to wait before retrying when an error occurs\n      default: 60\n    --no-error-retry, -ner Don't retry when an error occurs\n    --notify-on-failures, -nf Show a notification when the test result is slow Internet\n    --log-failures, -lf Log failures (Slow Internet)\n    --failure-retry-time=\u003cseconds\u003e, -frt=\u003cseconds\u003e Set the time to wait before retrying when the Internet is slow\n      default: 0\n    --no-failure-retry, -nfr Don't retry when the Internet is slow\n    --max-time=\u003cms\u003e, -mt Set the maximum length of a single test run (upload or download)\n      default: 5000\n\n### Examples\n\n```sh\niback --min-download=0.5 --log-failures\n```\n\n## API\n\nIback can be extended or built on:\n\n```sh\nnpm i -S iback\n```\n\n```js\nconst { Iback } = require(\"iback\");\n\nconst iback = new Iback({ minDownload: 3 });\n\niback.on(\"iback\", sendSMS);\n\niback.on(\"error\", logError);\n\niback.start();\n```\n\n### Options\n\nIback receives an options object can be like this:\n\n```js\nconst options = {\n    test: { maxTime: 5000 }, // original speedtest-net settings, see (https://github.com/ddsol/speedtest.net)\n    retryOnError: 60, // time to retry after error, or false to disable autoretry on errors\n    retryOnFailure: 0, // time to retry after failure, or false to disable autoretry on failures\n    minDownload: 0.01, // minimum accepted download speed in Mbps\n    minUpload: 0.01, // minimum accepted upload speed in Mbps\n    maxPing: 5000, // maximum accepted ping speed in ms\n    ...options\n};\nconst iback = new Iback(options);\n```\n\n### Events\n\n#### testing\n\nFired when testing the connection starts.\n\n```js\niback.on(\"testing\", cb);\n```\n\n#### iback\n\nFired when test finishes and the internet connection meets the specified requirements in options.\n\nCallback receives an object conains the following:\n\n-   download: the download speed.\n-   upload: the upload speed.\n-   ping: ping to the testing server.\n-   result: original [speedtest-net](https://github.com/ddsol/speedtest.net) result.\n\n```js\niback.on(\"iback\", ({ download, upload, ping, result }) =\u003e {\n    console.dir({ download, upload, ping });\n});\n```\n\n#### failure\n\nFired when test finishes and the internet connection doesn't meet the specified requirements in options.\n\nCallback receives an object conains the following:\n\n-   download: the download speed.\n-   upload: the upload speed.\n-   ping: ping to the testing server.\n-   result: original [speedtest-net](https://github.com/ddsol/speedtest.net) result.\n\n```js\niback.on(\"failure\", ({ download, upload, ping, result }) =\u003e {\n    console.dir({ download, upload, ping });\n});\n```\n\n#### error\n\nFired when an error occur and the test couldn't be finished.\n\nCallback receives error string.\n\n```js\niback.on(\"error\", err =\u003e {\n    console.error(err);\n});\n```\n\n#### result\n\nFired when test finishes.\n\nCallback receives an object conains the following:\n\n-   result: original [speedtest-net](https://github.com/ddsol/speedtest.net) result.\n\n```js\niback.on(\"result\", result =\u003e {\n    console.dir(result);\n});\n```\n\n#### retryingafter\n\nFired each second while waiting for a retry.\n\nCallback receives the number of remaining seconds before next retry.\n\n```js\niback.on(\"retryingafter\", secondsLeftToRetry =\u003e {\n    console.dir(secondsLeftToRetry);\n});\n```\n\n#### retrying\n\nFired just before starting the test again.\n\n```js\niback.on(\"retrying\", () =\u003e console.log(\"retrying now\"));\n```\n\n## Troubleshooting\n\nIf notifications don't work please see [node-notifier](https://github.com/mikaelbr/node-notifier).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhikire%2Fiback","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhikire%2Fiback","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhikire%2Fiback/lists"}