{"id":13880664,"url":"https://github.com/radarlabs/radar-sdk-js","last_synced_at":"2026-03-05T01:06:15.907Z","repository":{"id":32441434,"uuid":"134005405","full_name":"radarlabs/radar-sdk-js","owner":"radarlabs","description":"Web JavaScript SDK for Radar, the leading geofencing and location tracking platform","archived":false,"fork":false,"pushed_at":"2026-02-12T02:40:01.000Z","size":2525,"stargazers_count":49,"open_issues_count":26,"forks_count":18,"subscribers_count":10,"default_branch":"master","last_synced_at":"2026-02-12T03:21:18.501Z","etag":null,"topics":["geocoding","geofencing","geolocation","html5-geolocation","html5-geolocation-api","location-tracking","radar"],"latest_commit_sha":null,"homepage":"https://radar.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/radarlabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-05-18T21:20:45.000Z","updated_at":"2026-01-21T15:41:55.000Z","dependencies_parsed_at":"2023-01-14T21:14:17.720Z","dependency_job_id":"f862bae3-6ac9-449a-ae40-346479b4db10","html_url":"https://github.com/radarlabs/radar-sdk-js","commit_stats":{"total_commits":169,"total_committers":18,"mean_commits":9.38888888888889,"dds":0.6153846153846154,"last_synced_commit":"f3d9fe0dbc12c34107b7350396162da4d451a3c4"},"previous_names":[],"tags_count":231,"template":false,"template_full_name":null,"purl":"pkg:github/radarlabs/radar-sdk-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radarlabs%2Fradar-sdk-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radarlabs%2Fradar-sdk-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radarlabs%2Fradar-sdk-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radarlabs%2Fradar-sdk-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/radarlabs","download_url":"https://codeload.github.com/radarlabs/radar-sdk-js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radarlabs%2Fradar-sdk-js/sbom","scorecard":{"id":757568,"data":{"date":"2025-08-11","repo":{"name":"github.com/radarlabs/radar-sdk-js","commit":"5844e35cc64470dcd39d969dcdbbe7ece9d78494"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.4,"checks":[{"name":"Maintained","score":3,"reason":"4 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 3","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":6,"reason":"Found 13/21 approved changesets -- score normalized to 6","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":10,"reason":"no dangerous workflow patterns detected","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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/codeql-analysis.yml:1","Warn: no topLevel permission defined: .github/workflows/radar-pre-release-actions.yml:1","Warn: no topLevel permission defined: .github/workflows/radar-release-actions.yml:1","Info: no jobLevel write permissions found"],"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":"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":2,"reason":"dependency not pinned by hash detected -- score normalized to 2","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/radarlabs/radar-sdk-js/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/radarlabs/radar-sdk-js/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/radarlabs/radar-sdk-js/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:52: update your workflow using https://app.stepsecurity.io/secureworkflow/radarlabs/radar-sdk-js/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/radar-pre-release-actions.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/radarlabs/radar-sdk-js/radar-pre-release-actions.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/radar-pre-release-actions.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/radarlabs/radar-sdk-js/radar-pre-release-actions.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/radar-pre-release-actions.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/radarlabs/radar-sdk-js/radar-pre-release-actions.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/radar-release-actions.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/radarlabs/radar-sdk-js/radar-release-actions.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/radar-release-actions.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/radarlabs/radar-sdk-js/radar-release-actions.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/radar-release-actions.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/radarlabs/radar-sdk-js/radar-release-actions.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/radar-release-actions.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/radarlabs/radar-sdk-js/radar-release-actions.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/radar-release-actions.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/radarlabs/radar-sdk-js/radar-release-actions.yml/master?enable=pin","Info:   0 out of   8 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   4 third-party GitHubAction dependencies pinned","Info:   2 out of   2 npmCommand dependencies pinned"],"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":"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: Apache License 2.0: 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":"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":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/radar-pre-release-actions.yml:6"],"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":"SAST","score":10,"reason":"SAST tool is run on all commits","details":["Info: SAST configuration detected: CodeQL","Info: all commits (25) are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'error-listener'","Warn: branch protection not enabled for branch 'incognito'","Warn: branch protection not enabled for branch 'accessibility-improvements'","Warn: branch protection not enabled for branch 'ip-change-listener'","Warn: branch protection not enabled for branch 'fix-react-ref-bug-in-debug-mode'","Warn: branch protection not enabled for branch 'reuse-url-object-incache'","Warn: branch protection not enabled for branch 'use-custom-style-default-marker'","Warn: branch protection not enabled for branch 'core-sdk-build'","Info: 'allow deletion' disabled on branch 'master'","Info: 'force pushes' disabled on branch 'master'","Warn: 'branch protection settings apply to administrators' is disabled on branch 'master'","Warn: 'stale review dismissal' is disabled on branch 'master'","Warn: required approving review count is 1 on branch 'master'","Warn: codeowners review is not required on branch 'master'","Warn: 'last push approval' is disabled on branch 'master'","Warn: no status checks found to merge onto branch 'master'","Info: PRs are required in order to make changes on 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":"21 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-rv95-896h-c2vc","Warn: Project is vulnerable to: GHSA-qw6h-vgh9-j6wx","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-rhx6-c78j-4q9w","Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-76p7-773f-r4q5","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","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-22T22:11:47.866Z","repository_id":32441434,"created_at":"2025-08-22T22:11:47.866Z","updated_at":"2025-08-22T22:11:47.866Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29563467,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T21:50:49.831Z","status":"ssl_error","status_checked_at":"2026-02-17T21:46:15.313Z","response_time":100,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["geocoding","geofencing","geolocation","html5-geolocation","html5-geolocation-api","location-tracking","radar"],"created_at":"2024-08-06T08:03:21.690Z","updated_at":"2026-02-18T00:29:30.282Z","avatar_url":"https://github.com/radarlabs.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"assets/logo.svg\"\u003e\n\u003c/p\u003e\n\n\u003ch4 align=\"center\"\u003e\n  \u003ca href=\"https://radar.com\"\u003eWebsite\u003c/a\u003e |\n  \u003ca href=\"https://radar.com/blog\"\u003eBlog\u003c/a\u003e |\n  \u003ca href=\"https://radar.com/documentation\"\u003eDocumentation\u003c/a\u003e |\n  \u003ca href=\"mailto:support@radar.com\"\u003eSupport\u003c/a\u003e\n\u003c/h4\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/radar-sdk-js\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/radar-sdk-js.svg\" alt=\"npm\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://app.circleci.com/pipelines/github/radarlabs/radar-sdk-js\"\u003e\u003cimg src=\"https://img.shields.io/circleci/project/github/radarlabs/radar-sdk-js/master.svg\" alt=\"CircleCI branch\"\u003e\u003c/a\u003e\n  \u003ca href=\"http://npm-stat.com/charts.html?package=radar-sdk-js\"\u003e\u003cimg src=\"https://img.shields.io/npm/dm/radar-sdk-js.svg?style=flat-square\" alt=\"NPM downloads\"\u003e\u003c/a\u003e\n  \u003ca href=\"LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-Apache%202-blue\" alt=\"License\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  ⚡ Use Radar SDKs and APIs to add location context to your apps with just a few lines of code. ⚡\n\u003c/p\u003e\n\n🔥 Try it! 🔥\n\n- \u003ca href=\"https://radar.com/demo/js\"\u003eGeofencing\u003c/a\u003e\n- \u003ca href=\"https://radar.com/demo/api\"\u003eMaps APIs\u003c/a\u003e\n- \u003ca href=\"https://radar.com/documentation/maps/maps\"\u003eMaps UI\u003c/a\u003e\n- \u003ca href=\"https://radar.com/documentation/maps/autocomplete\"\u003eAutocomplete UI\u003c/a\u003e\n\n## 🚀 Installation and Usage\n\n### With npm\n\nInstall the core SDK:\n\n```bash\n# with npm\nnpm install radar-sdk-js\n\n# with yarn\nyarn add radar-sdk-js\n```\n\nThen import and initialize:\n\n```js\nimport Radar from 'radar-sdk-js';\n\n// initialize with your test or live publishable key\nRadar.initialize('prj_test_pk_...', {\n  /* options */\n});\n```\n\n### With a script tag\n\nAdd the following to your HTML:\n\n```html\n\u003cscript src=\"https://js.radar.com/v5.0.0-beta.9/radar.min.js\"\u003e\u003c/script\u003e\n\n\u003cscript\u003e\n  Radar.initialize('prj_test_pk_...', {\n    /* options */\n  });\n\u003c/script\u003e\n```\n\n## Adding plugins\n\nIn v5 the Maps, Autocomplete, and Fraud components are separate packages that\nyou install alongside the core SDK. This keeps the core bundle small if you\nonly need the API.\n\n### Maps plugin (npm)\n\n```bash\nnpm install @radarlabs/plugin-maps maplibre-gl\n```\n\n```js\nimport Radar from 'radar-sdk-js';\nimport { createMapsPlugin } from '@radarlabs/plugin-maps';\nimport '@radarlabs/plugin-maps/dist/radar-maps.css';\n\nRadar.registerPlugin(createMapsPlugin());\nRadar.initialize('prj_test_pk_...');\n\nconst map = Radar.ui.map({\n  container: 'map',\n});\n```\n\n### Autocomplete plugin (npm)\n\n```bash\nnpm install @radarlabs/plugin-autocomplete\n```\n\n```js\nimport Radar from 'radar-sdk-js';\nimport { createAutocompletePlugin } from '@radarlabs/plugin-autocomplete';\nimport '@radarlabs/plugin-autocomplete/dist/radar-autocomplete.css';\n\nRadar.registerPlugin(createAutocompletePlugin());\nRadar.initialize('prj_test_pk_...');\n\nRadar.ui.autocomplete({\n  container: 'autocomplete',\n  onSelection: (result) =\u003e {\n    console.log(result);\n  },\n});\n```\n\n### Fraud plugin (npm)\n\n```bash\nnpm install @radarlabs/plugin-fraud\n```\n\n```js\nimport Radar from 'radar-sdk-js';\nimport { createFraudPlugin } from '@radarlabs/plugin-fraud';\n\nRadar.registerPlugin(createFraudPlugin());\nRadar.initialize('prj_live_pk_...');\n\nconst { token, user, events } = await Radar.fraud.trackVerified();\n```\n\n### Plugins via script tag (CDN)\n\nPlugin CDN bundles auto-register with the core SDK when loaded. Load\nthe core SDK first, then any plugins you need:\n\n```html\n\u003clink href=\"https://js.radar.com/maps/v5.0.0-beta.4/radar-maps.css\" rel=\"stylesheet\" /\u003e\n\u003clink href=\"https://js.radar.com/autocomplete/v5.0.0-beta.4/radar-autocomplete.css\" rel=\"stylesheet\" /\u003e\n\n\u003cscript src=\"https://js.radar.com/v5.0.0-beta.9/radar.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://js.radar.com/maps/v5.0.0-beta.4/radar-maps.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://js.radar.com/autocomplete/v5.0.0-beta.4/radar-autocomplete.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://js.radar.com/fraud/v5.0.0-beta.1/radar-fraud.min.js\"\u003e\u003c/script\u003e\n```\n\n## Quickstart\n\n### Create a map\n\nInitialize the SDK and the maps plugin, then render a map into an HTML element\nby ID or element reference.\n\n```html\n\u003chtml\u003e\n  \u003chead\u003e\n    \u003clink href=\"https://js.radar.com/maps/v5.0.0-beta.4/radar-maps.css\" rel=\"stylesheet\" /\u003e\n    \u003cscript src=\"https://js.radar.com/v5.0.0-beta.9/radar.min.js\"\u003e\u003c/script\u003e\n    \u003cscript src=\"https://js.radar.com/maps/v5.0.0-beta.4/radar-maps.min.js\"\u003e\u003c/script\u003e\n  \u003c/head\u003e\n\n  \u003cbody\u003e\n    \u003cdiv id=\"map\" style=\"width: 100%; height: 500px;\" /\u003e\n\n    \u003cscript\u003e\n      Radar.initialize('\u003cRADAR_PUBLISHABLE_KEY\u003e');\n\n      const map = Radar.ui.map({\n        container: 'map', // OR document.getElementById('map')\n      });\n    \u003c/script\u003e\n  \u003c/body\u003e\n\u003c/html\u003e\n```\n\n\u003e Provide a `width` and `height` on the container element for the map to\n\u003e render correctly.\n\n### Create an autocomplete input\n\n```html\n\u003chtml\u003e\n  \u003chead\u003e\n    \u003clink href=\"https://js.radar.com/autocomplete/v5.0.0-beta.4/radar-autocomplete.css\" rel=\"stylesheet\" /\u003e\n    \u003cscript src=\"https://js.radar.com/v5.0.0-beta.9/radar.min.js\"\u003e\u003c/script\u003e\n    \u003cscript src=\"https://js.radar.com/autocomplete/v5.0.0-beta.4/radar-autocomplete.min.js\"\u003e\u003c/script\u003e\n  \u003c/head\u003e\n\n  \u003cbody\u003e\n    \u003cdiv id=\"autocomplete\" /\u003e\n\n    \u003cscript\u003e\n      Radar.initialize('\u003cRADAR_PUBLISHABLE_KEY\u003e');\n\n      // create autocomplete widget\n      Radar.ui.autocomplete({\n        container: 'autocomplete', // OR document.getElementById('autocomplete')\n        responsive: true,\n        width: '600px',\n        onSelection: (result) =\u003e {\n          console.log(result);\n        },\n      });\n    \u003c/script\u003e\n  \u003c/body\u003e\n\u003c/html\u003e\n```\n\n### Geofencing\n\nUse the [Track API](https://radar.com/documentation/api#track) to get the\nuser's current location for geofence and event detection. No UI plugins\nare needed for geofencing.\n\n```html\n\u003chtml\u003e\n  \u003chead\u003e\n    \u003cscript src=\"https://js.radar.com/v5.0.0-beta.9/radar.min.js\"\u003e\u003c/script\u003e\n  \u003c/head\u003e\n\n  \u003cbody\u003e\n    \u003cscript\u003e\n      Radar.initialize('\u003cRADAR_PUBLISHABLE_KEY\u003e');\n\n      Radar.trackOnce({ userId: 'example-user-id' }).then(({ location, user, events }) =\u003e {\n        // do something with user location or events\n      });\n    \u003c/script\u003e\n  \u003c/body\u003e\n\u003c/html\u003e\n```\n\n## Packages\n\n| Package                          | npm                                                                                                                                     | Description                                               |\n| -------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------- |\n| `radar-sdk-js`                   | [![npm](https://img.shields.io/npm/v/radar-sdk-js.svg)](https://www.npmjs.com/package/radar-sdk-js)                                     | Core SDK — tracking, geocoding, search, routing           |\n| `@radarlabs/plugin-maps`         | [![npm](https://img.shields.io/npm/v/@radarlabs/plugin-maps.svg)](https://www.npmjs.com/package/@radarlabs/plugin-maps)                 | Maps UI — RadarMap, RadarMarker, RadarPopup (MapLibre GL) |\n| `@radarlabs/plugin-autocomplete` | [![npm](https://img.shields.io/npm/v/@radarlabs/plugin-autocomplete.svg)](https://www.npmjs.com/package/@radarlabs/plugin-autocomplete) | Autocomplete UI widget                                    |\n| `@radarlabs/plugin-fraud`        | [![npm](https://img.shields.io/npm/v/@radarlabs/plugin-fraud.svg)](https://www.npmjs.com/package/@radarlabs/plugin-fraud)               | Fraud detection — verified tracking, location tokens      |\n\n## Plugin system\n\nVersion 5 introduces a plugin architecture. UI components like Maps and\nAutocomplete are no longer bundled in the core SDK. Instead, you register\nplugins before or after calling `Radar.initialize()`:\n\n```js\nimport Radar from 'radar-sdk-js';\nimport { createMapsPlugin } from '@radarlabs/plugin-maps';\nimport { createAutocompletePlugin } from '@radarlabs/plugin-autocomplete';\nimport { createFraudPlugin } from '@radarlabs/plugin-fraud';\n\nRadar.registerPlugin(createMapsPlugin());\nRadar.registerPlugin(createAutocompletePlugin());\nRadar.registerPlugin(createFraudPlugin());\nRadar.initialize('prj_test_pk_...');\n```\n\nIf you're building a custom plugin, import the plugin types from the\n`radar-sdk-js/plugin` subpath:\n\n```ts\nimport type { RadarPlugin, RadarPluginContext } from 'radar-sdk-js/plugin';\n```\n\n## 🔗 Other links\n\n- [Contributing](CONTRIBUTING.md)\n- [Migrating from 3.x to 4.x](https://github.com/radarlabs/radar-sdk-js/blob/v4-beta/MIGRATION.md)\n- [Migrating from 4.x to 5.x](MIGRATION.md)\n- [Radar documentation](https://radar.com/documentation/sdk/web)\n\n## 📫 Support\n\nHave questions? We're here to help! Email us at [support@radar.com](mailto:support@radar.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fradarlabs%2Fradar-sdk-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fradarlabs%2Fradar-sdk-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fradarlabs%2Fradar-sdk-js/lists"}