{"id":22314724,"url":"https://github.com/tusharhow/connext","last_synced_at":"2025-10-14T04:30:51.652Z","repository":{"id":227701194,"uuid":"772187206","full_name":"tusharhow/Connext","owner":"tusharhow","description":" 🚀 \"Introducing Connext: Real-time Connectivity Status in Jetpack Compose!\" 🌐","archived":false,"fork":false,"pushed_at":"2024-03-15T05:42:48.000Z","size":21046,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T23:34:24.311Z","etag":null,"topics":["compose","connection","jetpack","library","network"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/tusharhow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2024-03-14T17:42:58.000Z","updated_at":"2024-05-15T12:23:54.000Z","dependencies_parsed_at":"2024-03-14T19:15:35.010Z","dependency_job_id":"969bf160-8407-4d32-8733-cd4e92b98389","html_url":"https://github.com/tusharhow/Connext","commit_stats":null,"previous_names":["tusharhow/connext"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/tusharhow/Connext","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tusharhow%2FConnext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tusharhow%2FConnext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tusharhow%2FConnext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tusharhow%2FConnext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tusharhow","download_url":"https://codeload.github.com/tusharhow/Connext/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tusharhow%2FConnext/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017942,"owners_count":26086213,"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-10-14T02:00:06.444Z","response_time":60,"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":["compose","connection","jetpack","library","network"],"created_at":"2024-12-03T22:11:13.906Z","updated_at":"2025-10-14T04:30:50.289Z","avatar_url":"https://github.com/tusharhow.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Connext\n\n![Connext](art/header.png)\n\n🚀 Connext is a Jetpack Compose library to observe live connectivity status in a Compose way!\n\n \u003cimg src=\"art/connext.gif\" width=\"250\" height=\"30%\"/\u003e\n\n\n## 💡Introduction\n\nObserving Live connectivity status in Jetpack Compose way! Connext is a Jetpack Compose library to observe live connectivity status in a Compose way! It provides a simple way to check connectivity status, network type, and internet connection status in Jetpack Compose.\n\n## 🚀 Implementation\n\nYou can check [/app](/app) directory which includes example application for demonstration.\n\n### Gradle setup\nIn `settings.gradle`  include this\n\n```gradle\nmaven(url = \"https://jitpack.io\")\n```\n\n\nIn `build.gradle` of app module, include this dependency\n\n```gradle\ndependencies {\n    implementation (\"com.github.tusharhow:Connext:1.0.0\")\n}\n```\n\n\n_You can find latest version and changelogs in the [releases](https://github.com/tusharhow/Connext/releases)_.\n\n### Usage\n\n#### 1. Check Connectivity Status:\n\n```kotlin\n CheckConnectivityStatus(\n  connectedContent = {\n    Text(\"Connected\")\n  },\n  disconnectedContent = {\n    Text(\"Disconnected\")\n  }\n)\n```\n\n\n#### 2. Check Current Connectivity Type:\n\n\n```kotlin\n  val context = LocalContext.current\n  val networkType = context.getNetworkType()\n\nwhen (networkType) {\n  is NetworkType.WIFI -\u003e {\n    Text(text = \"Connected to wifi\")\n  }\n  is NetworkType.CELLULAR -\u003e {\n    Text(text = \"Connected to cellular\")\n  }\n  is NetworkType.NONE -\u003e {\n    Text(text = \"No network\")\n  }\n}\n```\n\n#### 3. Check Connected to the Internet:\n\n```kotlin\nval connection by connectivityStatus()\nval isConnected = connection === ConnectionStatus.Connected\n\n  if (isConnected) {\n    Text(text = \"Connected to internet\")\n  } else {\n    Text(text = \"No internet\")\n  }\n```\n\n## 📝 License\n\n```\nMIT License\n\nCopyright (c) 2024 Tushar Mahmud\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftusharhow%2Fconnext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftusharhow%2Fconnext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftusharhow%2Fconnext/lists"}