{"id":16776591,"url":"https://github.com/emanueljcc/react-detect-internet-connection","last_synced_at":"2026-02-14T11:36:35.646Z","repository":{"id":57688491,"uuid":"477849003","full_name":"emanueljcc/react-detect-internet-connection","owner":"emanueljcc","description":"Library to detect the state of the internet connection in an application with react.js in a dynamic way.","archived":false,"fork":false,"pushed_at":"2022-04-04T19:48:35.000Z","size":355,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-17T20:45:09.237Z","etag":null,"topics":["connection","css3","hook","hooks","html","internet","library","navigator-api","network","react"],"latest_commit_sha":null,"homepage":"https://emanueljcc.github.io/react-detect-internet-connection/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/emanueljcc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-04T19:43:46.000Z","updated_at":"2024-09-17T12:16:18.000Z","dependencies_parsed_at":"2022-08-25T15:41:24.629Z","dependency_job_id":null,"html_url":"https://github.com/emanueljcc/react-detect-internet-connection","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emanueljcc%2Freact-detect-internet-connection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emanueljcc%2Freact-detect-internet-connection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emanueljcc%2Freact-detect-internet-connection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emanueljcc%2Freact-detect-internet-connection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emanueljcc","download_url":"https://codeload.github.com/emanueljcc/react-detect-internet-connection/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248288393,"owners_count":21078903,"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","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":["connection","css3","hook","hooks","html","internet","library","navigator-api","network","react"],"created_at":"2024-10-13T07:10:27.092Z","updated_at":"2026-02-14T11:36:30.622Z","avatar_url":"https://github.com/emanueljcc.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align='center'\u003e\n  React detect internet connection (custom hook) 📶\n\u003c/h1\u003e\n\n\u003cp align='center'\u003e\n  \u003ca href=\"https://emanueljcc.github.io/react-detect-internet-connection/\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://i.ibb.co/LYYmFv8/ezgif-1-b07b8de0a8.gif\" width=\"800\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align='center'\u003e\n  \u003ca href=\"https://emanueljcc.github.io/react-detect-internet-connection/\" target=\"_blank\"\u003e\n    View Demo\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## Description\nLibrary to detect the state of the internet connection in an application with react.js in a dynamic way.\n\n## Install\n\n```bash\nnpm install react-detect-internet-connection\n```\nOR\n```bash\nyarn add react-detect-internet-connection\n```\n\n## Usage\nAdd the react-detect-internet-connection to your main.js for a global import:\n\n```javascript\nimport React from 'react'\n\nimport useNetworkStatus from 'react-detect-internet-connection'\n\nconst App = () =\u003e {\n  // PROPS\n  const {\n    isOnline,\n    updateDate,\n    rtt,\n    type,\n    saveData,\n    downlink,\n    downlinkMax,\n    effectiveType,\n  } = useNetworkStatus()\n\n  return (\n    \u003ch1\u003eContent...\u003c/h1\u003e\n  );\n}\n```\n\n## Documentation\n\n```javascript\nconst {\n    isOnline,\n    updateDate,\n    rtt,\n    type,\n    saveData,\n    downlink,\n    downlinkMax,\n    effectiveType,\n  } = useNetworkStatus()\n```\n\n\u003cp align='center'\u003e\n  \u003ca href=\"https://emanueljcc.github.io/react-detect-internet-connection/\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://i.ibb.co/TTrMggn/Captura-de-Pantalla-2022-04-04-a-la-s-3-37-52-p-m.png\" width=\"800\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\nSIMPLE 😃\n\n## Support\n\u003ca href=\"mailto:emanuelcastillo9101@gmail.com\"\u003eemanuelcastillo9101@gmail.com\u003c/a\u003e.\nYou can also send me a direct message on twitter\n\u003ca href=\"https://twitter.com/emanueljcc\"\u003e@emanueljcc\u003c/a\u003e.\n\n## Contributing\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\n## License\n[MIT](https://choosealicense.com/licenses/mit/) License © 2022 [Emanuel Castillo](https://github.com/emanueljcc)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femanueljcc%2Freact-detect-internet-connection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femanueljcc%2Freact-detect-internet-connection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femanueljcc%2Freact-detect-internet-connection/lists"}