{"id":26582958,"url":"https://github.com/capybara003/react-browser-hook","last_synced_at":"2026-04-20T05:31:19.937Z","repository":{"id":281890928,"uuid":"946499455","full_name":"Capybara003/react-browser-hook","owner":"Capybara003","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-11T08:39:58.000Z","size":259,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T08:19:08.819Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Capybara003.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2025-03-11T08:34:35.000Z","updated_at":"2025-03-11T08:40:36.000Z","dependencies_parsed_at":"2025-03-11T18:04:18.480Z","dependency_job_id":null,"html_url":"https://github.com/Capybara003/react-browser-hook","commit_stats":null,"previous_names":["capybara003/react-browser-hook"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Capybara003/react-browser-hook","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Capybara003%2Freact-browser-hook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Capybara003%2Freact-browser-hook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Capybara003%2Freact-browser-hook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Capybara003%2Freact-browser-hook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Capybara003","download_url":"https://codeload.github.com/Capybara003/react-browser-hook/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Capybara003%2Freact-browser-hook/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32034544,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"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-03-23T08:19:10.677Z","updated_at":"2026-04-20T05:31:19.917Z","avatar_url":"https://github.com/Capybara003.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-browser-hooks\n\nReact Browser Hooks\n\n[![CircleCI](https://circleci.com/gh/nearform/react-browser-hooks.svg?style=svg\u0026circle-token=6519ab8ff84d4bf291788588738f2b2000c8fc3a)](https://circleci.com/gh/nearform/react-browser-hooks)\n[![NPM version](https://img.shields.io/npm/v/react-browser-hooks.svg)](https://www.npmjs.com/package/react-browser-hooks)\n[![Coverage Status](https://coveralls.io/repos/github/nearform/react-browser-hooks/badge.svg?branch=master)](https://coveralls.io/github/nearform/react-browser-hooks?branch=master)\n[![Netlify Status](https://api.netlify.com/api/v1/badges/8855d56c-7b73-4070-92e8-e7c1b2e80d7e/deploy-status)](https://app.netlify.com/sites/react-browser-hooks/deploys)\n![minified \u0026 gzipped size](https://img.shields.io/bundlephobia/minzip/react-browser-hooks.svg?style=flat)\n\u003c!-- [![BrowserStack Status](https://www.browserstack.com/automate/badge.svg?badge_key=b1dHQTVIVmpFLzYwVnZuaWlqUmpLa01ScUdQM2VrZUZIZG9Hc0ZTWVZjVT0tLW44NnBTK0hrdjNDaDVBeDFLQUJhUnc9PQ==--536a48a483a1ad3da80e28a99cc396d7de9a9151)](https://www.browserstack.com/automate/public-build/b1dHQTVIVmpFLzYwVnZuaWlqUmpLa01ScUdQM2VrZUZIZG9Hc0ZTWVZjVT0tLW44NnBTK0hrdjNDaDVBeDFLQUJhUnc9PQ==--536a48a483a1ad3da80e28a99cc396d7de9a9151) --\u003e\n\nA simple utility library that provides custom hooks for some common browser events.\n\n## Installation\n\n[npm](https://www.npmjs.com/package/react-browser-hooks):\n\n```bash\nnpm install react-browser-hooks\n```\n\n## Documentation \u0026 Demo\n\nYou can find documentation and demo on https://react-browser-hooks.netlify.com/\n\n## Example Usage\n\nE.g. The FullScreen hook:\n\n```javascript\nimport { useFullScreen } from 'react-browser-hooks'\n\nconst fs = useFullScreen()\n\u003cbutton onClick={fs.toggle}\u003e{fs.fullScreen ? 'Close' : 'Open'}\u003c/button\u003e\n```\n\n### Server-side rendering\n\nSensible defaults are provided to allow each hook to be safely used when rendering on the server.\n\n[build-badge]: https://img.shields.io/travis/user/repo/master.png?style=flat-square\n[build]: https://travis-ci.org/user/repo\n[npm-badge]: https://img.shields.io/npm/v/npm-package.png?style=flat-square\n[npm]: https://www.npmjs.org/package/npm-package\n[coveralls-badge]: https://img.shields.io/coveralls/user/repo/master.png?style=flat-square\n[coveralls]: https://coveralls.io/github/user/repo\n\n## License\n\nCopyright 2019 NearForm\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\n[![BrowserStack](https://p14.zdusercontent.com/attachment/1015988/mg687dwxHqXtriITEf8kxZV3W?token=eyJhbGciOiJkaXIiLCJlbmMiOiJBMTI4Q0JDLUhTMjU2In0..tPLabhhdTeWxyc3TTt-RCg.bmk4nO95zIaYIcNaaDEVtxph9ap6d9X__07O0wPpvgsx5RBYvue1gMxCGhnYcgtQA51YjC5BFCxev9bBGZ0f6wHGr83j_nBID68oZCdgurHQhuZjsBZTotXtVdGDJoGg8KHMvl2qK9_FFlxohxGkPatEyccPXfLxZGGrGhvGnZVs6sFcy5bSevRHwe84yH3y0-PhbwE9HPAqzYsJyjBsSnez3gllgrIqX_7UucPPyAxtESSOaevl3zs6n5EfJ6teaJ3_KhWTmux9Nlk5csiWwvcRcCXp7p14Xln9tBYR64k.-1SqygSW1Ke0iJ-t3ED3SQ)](http://browserstack.com/)\n\nWe use BrowserStack to support as many browsers and devices as possible\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcapybara003%2Freact-browser-hook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcapybara003%2Freact-browser-hook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcapybara003%2Freact-browser-hook/lists"}