{"id":19356898,"url":"https://github.com/alexfigliolia/beaconer","last_synced_at":"2026-02-21T16:40:40.272Z","repository":{"id":168765896,"uuid":"644555610","full_name":"alexfigliolia/beaconer","owner":"alexfigliolia","description":"A backward compatible wrapper around the Beacon API","archived":false,"fork":false,"pushed_at":"2024-08-08T20:23:31.000Z","size":56,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-24T04:38:42.349Z","etag":null,"topics":["beacon","beacon-api","http","http-requests","sendbeacon"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/beaconer","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/alexfigliolia.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,"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":"2023-05-23T19:09:13.000Z","updated_at":"2024-08-08T20:23:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"fbdf5c6a-3f60-49b3-8e66-90e253ae99a3","html_url":"https://github.com/alexfigliolia/beaconer","commit_stats":null,"previous_names":["alexfigliolia/beaconer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alexfigliolia/beaconer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexfigliolia%2Fbeaconer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexfigliolia%2Fbeaconer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexfigliolia%2Fbeaconer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexfigliolia%2Fbeaconer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexfigliolia","download_url":"https://codeload.github.com/alexfigliolia/beaconer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexfigliolia%2Fbeaconer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29686798,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T15:51:39.154Z","status":"ssl_error","status_checked_at":"2026-02-21T15:49:03.425Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["beacon","beacon-api","http","http-requests","sendbeacon"],"created_at":"2024-11-10T07:05:47.287Z","updated_at":"2026-02-21T16:40:40.266Z","avatar_url":"https://github.com/alexfigliolia.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Beaconer\n\nA backward compatible wrapper around the Beacon API! \n\nThis API is commonly used for sending application analytics or diagnostics that were historically sent in the background using some combination of standard HTTP Requests with the page visibility API. A common pitfall developers would run into is that the browser, in some cases, would choose not to send out the request when a browser tab is in the background. The Beacon API was implemented to fix this issue. \n\nThis package wraps the API with an `XMLHttpRequest` fallback.\n\n## Installation\n```bash\nnpm i -S beaconer\n\nyarn add beaconer\n```\n\n## Usage\nThe `Beaconer` has two public properties:\n\n```typescript\nimport { Beaconer } from \"beaconer\";\n\nconst success = await Beaconer.send(\"url\", JSON.stringify({ someData: 123 }));\n\nconst isUsingBeaconAPI = Beaconer.browserSupport;\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexfigliolia%2Fbeaconer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexfigliolia%2Fbeaconer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexfigliolia%2Fbeaconer/lists"}