{"id":28406401,"url":"https://github.com/hwclass/browserapi","last_synced_at":"2026-03-01T04:09:51.748Z","repository":{"id":67696892,"uuid":"55445552","full_name":"hwclass/browserapi","owner":"hwclass","description":"A wrapper tool for next generation browser apis like vibration, fullscreen, and etc.","archived":false,"fork":false,"pushed_at":"2017-05-16T21:55:19.000Z","size":13,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-11T09:57:40.630Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/hwclass.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2016-04-04T21:12:02.000Z","updated_at":"2019-07-13T18:58:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"537398a9-43ba-405b-9e1d-c96734ff6329","html_url":"https://github.com/hwclass/browserapi","commit_stats":{"total_commits":30,"total_committers":1,"mean_commits":30.0,"dds":0.0,"last_synced_commit":"2dcade07415b5633149b4be7827467ffa43a4bbf"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hwclass/browserapi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hwclass%2Fbrowserapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hwclass%2Fbrowserapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hwclass%2Fbrowserapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hwclass%2Fbrowserapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hwclass","download_url":"https://codeload.github.com/hwclass/browserapi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hwclass%2Fbrowserapi/sbom","scorecard":{"id":474585,"data":{"date":"2025-08-11","repo":{"name":"github.com/hwclass/browserapi","commit":"2dcade07415b5633149b4be7827467ffa43a4bbf"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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/29 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":"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":"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":"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":"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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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":"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":"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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 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"}}]},"last_synced_at":"2025-08-19T14:57:20.719Z","repository_id":67696892,"created_at":"2025-08-19T14:57:20.719Z","updated_at":"2025-08-19T14:57:20.719Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278266895,"owners_count":25958733,"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-04T02:00:05.491Z","response_time":63,"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":[],"created_at":"2025-06-01T22:11:14.044Z","updated_at":"2025-10-04T04:57:22.768Z","avatar_url":"https://github.com/hwclass.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# browserapi\nA wrapper tool for next generation browser apis like vibration, fullscreen, and etc.\n\n### Supported APIs\n\n- [x] Geolocation\n- [x] fetch\n- [x] Fullscreen API\n- [x] Battery\n- [x] ServiceWorker\n- [x] DeviceOrientation\n- [x] Vibrate\n- [x] AudioContext\n- [x] caches\n\n#### Geolocation\n```javascript\nbrowserapi.get('geolocation')((geolocation) =\u003e {\n  geolocation.getCurrentPosition(function (data) {\n    console.dir(data); //successfully get the Geoposition data\n  }, function (err) {\n    console.dir(err); // logs the error stack\n  }, {\n    enableHighAccuracy: true,\n    timeout: 5000,\n    maximumAge: 0\n  }); //options while getting geolocation data\n});\n```\n\n#### fetch\n```javascript\nbrowserapi.get('fetch')((fetch) =\u003e {\n  fetch(new Request('\u003cURL\u003e')).then(function (data) {\n    console.dir(data);\n  });\n});\n```\n\n##### Fullscreen API\n```javascript\nbrowserapi.get('fullScreen')(document.querySelector('body'), (fullScreen) =\u003e {\n  console.dir(fullScreen);\n});\n```\n##### Note : This method invocation prints \"Failed to execute 'requestFullScreen' on 'Element': API can only be initiated by a user gesture.\". Since the security concerns, it only can be triggered by a user event like click or etc. \n\n#### Battery\n```javascript\nbrowserapi.get('battery')((battery) =\u003e console.log(battery.level));\n//logs 0.97\n```\n\n#### Service Worker\n```javascript\nbrowserapi.get('serviceWorker')((serviceWorker) =\u003e {\n  console.dir(instance);\n});\n```\n\n#### Local Storage\n```javascript\nbrowserapi.get('localStorage')((localStorage) =\u003e {\n   localStorage.setItem('some_data', '{some_data : \"yes, cool...\"}');\n   console.dir(localStorage.getItem('some_data'));\n});\n```\n\n#### Device Orientation\n```javascript\nbrowserapi.get('deviceOrientation')((deviceOrientation) =\u003e {\n   console.dir(deviceOrientation);\n});\n```\n\n#### vibrate\n```javascript\nbrowserapi.get('vibrate')((vibrate) =\u003e {\n   navigator['vibrate'](1000);\n});\n```\n\n#### audioContext\n```javascript\nbrowserapi.get('audioContext')((audioContext) =\u003e {\n   console.dir(audioContext);\n});\n```\n\n#### Caches API\n```javascript\nbrowserapi.get('caches')((caches) =\u003e {\n   console.dir(caches);\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhwclass%2Fbrowserapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhwclass%2Fbrowserapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhwclass%2Fbrowserapi/lists"}