{"id":36503447,"url":"https://github.com/jsoncruz/react-navigator-geolocation","last_synced_at":"2026-01-12T02:26:43.756Z","repository":{"id":57341793,"uuid":"266888385","full_name":"jsoncruz/react-navigator-geolocation","owner":"jsoncruz","description":"A react geolocation hook","archived":false,"fork":false,"pushed_at":"2023-08-30T05:52:14.000Z","size":363,"stargazers_count":4,"open_issues_count":5,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-26T00:58:31.295Z","etag":null,"topics":["coordinates","geolocation","hook","reactjs"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/jsoncruz.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2020-05-25T22:00:12.000Z","updated_at":"2023-04-24T17:54:22.000Z","dependencies_parsed_at":"2024-06-21T13:13:34.323Z","dependency_job_id":"6f5023f1-28ad-44fb-befa-e44ab47d9a16","html_url":"https://github.com/jsoncruz/react-navigator-geolocation","commit_stats":{"total_commits":14,"total_committers":1,"mean_commits":14.0,"dds":0.0,"last_synced_commit":"fe7335a0eb02b983fe5f8800fcadc171eb55196e"},"previous_names":["dev-judsoncruz/react-navigator-geolocation"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jsoncruz/react-navigator-geolocation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsoncruz%2Freact-navigator-geolocation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsoncruz%2Freact-navigator-geolocation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsoncruz%2Freact-navigator-geolocation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsoncruz%2Freact-navigator-geolocation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsoncruz","download_url":"https://codeload.github.com/jsoncruz/react-navigator-geolocation/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsoncruz%2Freact-navigator-geolocation/sbom","scorecard":{"id":538848,"data":{"date":"2025-08-11","repo":{"name":"github.com/jsoncruz/react-navigator-geolocation","commit":"3cffd2a2a1bf9add584a3bcd41e6c1a4d620f400"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/15 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"13 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-hpx4-r86g-5jrg","Warn: Project is vulnerable to: GHSA-prr3-c3m5-p7q2","Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T07:41:48.897Z","repository_id":57341793,"created_at":"2025-08-20T07:41:48.897Z","updated_at":"2025-08-20T07:41:48.897Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28332448,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T00:36:25.062Z","status":"online","status_checked_at":"2026-01-12T02:00:08.677Z","response_time":98,"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":["coordinates","geolocation","hook","reactjs"],"created_at":"2026-01-12T02:26:43.156Z","updated_at":"2026-01-12T02:26:43.749Z","avatar_url":"https://github.com/jsoncruz.png","language":"TypeScript","readme":"# react-navigator-geolocation\n\nA react geolocationing hook  \n\n## Installation  \n\n**Yarn**  \n\n```console\n$ yarn add react-navigator-geolocation\n```\n\n**Npm**  \n\n```console\n$ npm install react-navigator-geolocation\n```\n\n## Examples\n\n[![Edit distracted-hellman-8ychm](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/distracted-hellman-8ychm?fontsize=14\u0026hidenavigation=1\u0026theme=dark)  \n*Simple syntax*  \n\n```TSX\nimport React from \"react\";\nimport useGeolocation from \"react-navigator-geolocation\";\n\nconst App: React.FC = () =\u003e {\n  const { isEnabled, coords } = useGeolocation();\n\n  return isEnabled ? (\n    \u003ch3\u003e{ coords?.latitude + ', ' + coords?.longitude }\u003c/h3\u003e\n  ) : (\n    \u003ch4\u003eLocation permission is not enabled\u003c/h4\u003e\n  )\n};\n\nexport default App;\n\n\n```\n\n[![Edit cold-voice-ofn2p](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/cold-voice-ofn2p?fontsize=14\u0026hidenavigation=1\u0026theme=dark)  \n*Suppressed on mountage*  \n\n```TSX\n\nimport React from \"react\";\nimport useGeolocation from \"react-navigator-geolocation\";\n\nconst App: React.FC = () =\u003e {\n  const { isAvailable, isEnabled, coords, suppressRequest } = useGeolocation({ suppressOnMount: true });\n\n  return isAvailable ? (\n    isEnabled ? (\n      \u003cdiv\u003e\n        \u003ch1\u003eCoordinates granted\u003c/h1\u003e\n        \u003ch2\u003e{coords?.latitude + ', ' + coords?.longitude}\u003c/h2\u003e\n      \u003c/div\u003e\n    ) : isEnabled === false ? (\n      \u003ch1\u003eLocation permission disabled\u003c/h1\u003e\n    ) : (\n      \u003cbutton type=\"button\" onClick={() =\u003e suppressRequest(false)}\u003e\n        disable suppression\n      \u003c/button\u003e\n    )\n  ) : (\n    \u003ch1\u003eYour browser doesn't support Geolocation API\u003c/h1\u003e\n  );\n};\n\nexport default App;\n```  \n\n## Parameters  \n\n|      Param      | Type    | Default | Definition |\n| :-------------- | :-----: | :-----: | :--------- |\n| suppressOnMount | boolean |  `false`  | Suppress request on mountage |\n| positionOptions | object  | `{ enableHighAccuracy: true, timeout: 5000, maximumAge: 0 }` | [Read more](https://developer.mozilla.org/pt-BR/docs/Web/API/PositionOptions) |\n| watchMode       | boolean |  `false`  | When enable it returns periodically (by movement) coordinates |  \n\n\u003e useGeolocation({ suppressOnMount: false, positionOptions: { enableHighAccuracy: true, timeout: 5000, maximumAge: 0 }, watchMode: false })\n\n## Response\n\n| Variable | Type | Definition |\n| :------: | :--: | :--------- |\n|   isAvailable   | boolean | Browser does support Geolocation API |\n|   isSupressed   | boolean | If request was suppressed |\n|    isEnabled    | boolean | If location is granted or denied |\n|    isExpired    | boolean | If request is timed out |\n|     coords      | object  | [Read more](https://developer.mozilla.org/pt-BR/docs/Web/API/GeolocationCoordinates)  \n| suppressRequest | method  | It receives a boolean as value |\n|     watchId     | number  | If watchMode is enabled you'll get the id of watching\n\n\u003e const { isAvailable, isSupressed, isEnabled, isExpired, coords, suppressRequest, watchId } = useGeolocation(...)\n\n## License\n[MIT](https://github.com/dev-judsoncruz/react-navigator-geolocation/blob/master/LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsoncruz%2Freact-navigator-geolocation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsoncruz%2Freact-navigator-geolocation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsoncruz%2Freact-navigator-geolocation/lists"}