{"id":20700376,"url":"https://github.com/s-a/browserwall","last_synced_at":"2025-08-21T20:05:45.483Z","repository":{"id":143866198,"uuid":"296525173","full_name":"s-a/browserwall","owner":"s-a","description":"A small, fast and rich-API browser/platform/engine detector for React.","archived":false,"fork":false,"pushed_at":"2020-09-18T09:43:56.000Z","size":20,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-18T05:18:43.756Z","etag":null,"topics":["browser","detection","ender","parser","react","reactcomponent","reactjs","sniff","ua","user-agent","useragent"],"latest_commit_sha":null,"homepage":"","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/s-a.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}},"created_at":"2020-09-18T05:43:40.000Z","updated_at":"2023-04-15T15:18:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"d9436a55-ba7e-4c36-b134-78871960f327","html_url":"https://github.com/s-a/browserwall","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s-a%2Fbrowserwall","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s-a%2Fbrowserwall/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s-a%2Fbrowserwall/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s-a%2Fbrowserwall/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/s-a","download_url":"https://codeload.github.com/s-a/browserwall/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242967728,"owners_count":20214281,"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","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":["browser","detection","ender","parser","react","reactcomponent","reactjs","sniff","ua","user-agent","useragent"],"created_at":"2024-11-17T00:35:07.833Z","updated_at":"2025-03-11T03:51:34.396Z","avatar_url":"https://github.com/s-a.png","language":"JavaScript","readme":"[![NPM Version](http://img.shields.io/npm/v/browserwall.svg)](https://www.npmjs.org/package/browserwall)\r\n[![NPM Downloads](https://img.shields.io/npm/dm/browserwall.svg)](https://www.npmjs.org/package/browserwall)\r\n[![Massachusetts Institute of Technology (MIT)](https://s-a.github.io/license/img/mit.svg)](/LICENSE.md#mit)\r\n[![Donate](http://s-a.github.io/donate/donate.svg)](http://s-a.github.io/donate/)\r\n\r\n# React Browser Wall Component\r\n\r\n\r\nThis component is based on [bowser](https://github.com/lancedikson/bowser) so `\u003cBrowserWall /\u003e` [property settings are defined here](https://github.com/lancedikson/bowser). `\u003cBrowserWallExit /\u003e` will render a default `Browser not supported DOM` but you can define your own `children` and provide a side entrance link.\r\n\r\n## Installation\r\n\r\n```bash\r\nnpm i browserwall --save\r\n```\r\n\r\n## Example 1\r\n\r\n```javascript\r\nimport {BrowserWall, BrowserWallExit} from 'browserwall'\r\n\r\nconst supportedBrowserTree = {\r\n\tchrome: '\u003e86',\r\n\tfirefox: '\u003e80',\r\n\tedge: '\u003e86'\r\n}\r\nconst result = (\r\n\t\u003cErrorBoundary\u003e\r\n\t\t\u003cBrowserWall {...supportedBrowserTree}\u003e\r\n\t\t\t\u003cdiv className=\"App\" valid=\"true\"\u003e\r\n\t\t\t\t{this.state.user ? null : \u003cRedirect to={`/login${redirectUri}`}\u003e\u003c/Redirect\u003e}\r\n\t\t\t\t{this.renderApplicationCore()}\r\n\t\t\t\t\u003cToastContainer /\u003e\r\n\t\t\t\u003c/div\u003e\r\n\t\t\t\u003cBrowserWallExit /\u003e\r\n\t\t\u003c/BrowserWall\u003e\r\n\t\u003c/ErrorBoundary\u003e\r\n)\r\n```\r\n\r\n## Example 2\r\n\r\n```javascript\r\nimport {BrowserWall, BrowserWallExit} from 'browserwall'\r\n\r\nconst supportedBrowserTree = {\r\n\tchrome: '\u003e86',\r\n\tfirefox: '\u003e80',\r\n\tedge: '\u003e86'\r\n}\r\nconst result = (\r\n\t\u003cErrorBoundary\u003e\r\n\t\t\u003cBrowserWall {...supportedBrowserTree} isValidBrowser={this.state.isValidBrowser}\u003e\r\n\t\t\t\u003cdiv className=\"App\" valid=\"true\"\u003e\r\n\t\t\t\t{this.state.user ? null : \u003cRedirect to={`/login${redirectUri}`}\u003e\u003c/Redirect\u003e}\r\n\t\t\t\t{this.renderApplicationCore()}\r\n\t\t\t\t\u003cToastContainer /\u003e\r\n\t\t\t\u003c/div\u003e\r\n\t\t\t\u003cBrowserWallExit\u003e:O( \u003ca href=\"#side-entrance\" onClick={this.onSideEntranceClick.bind(this)}\u003eI feel adventurous. I want to go in anyway.\u003c/a\u003e\u003c/BrowserWallExit\u003e\r\n\t\t\u003c/BrowserWall\u003e\r\n\t\u003c/ErrorBoundary\u003e\r\n)\r\n```\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs-a%2Fbrowserwall","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fs-a%2Fbrowserwall","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs-a%2Fbrowserwall/lists"}