{"id":51143787,"url":"https://github.com/usebarekey/react","last_synced_at":"2026-06-26T01:02:24.171Z","repository":{"id":344239770,"uuid":"1181091770","full_name":"usebarekey/react","owner":"usebarekey","description":"React bindings for Barekey","archived":false,"fork":false,"pushed_at":"2026-03-14T01:37:46.000Z","size":35,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-03-14T07:01:35.300Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/usebarekey.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-03-13T18:34:32.000Z","updated_at":"2026-03-14T01:33:00.000Z","dependencies_parsed_at":"2026-03-14T07:01:39.543Z","dependency_job_id":null,"html_url":"https://github.com/usebarekey/react","commit_stats":null,"previous_names":["usebarekey/react"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/usebarekey/react","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usebarekey%2Freact","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usebarekey%2Freact/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usebarekey%2Freact/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usebarekey%2Freact/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/usebarekey","download_url":"https://codeload.github.com/usebarekey/react/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usebarekey%2Freact/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34798183,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-25T02:00:05.521Z","response_time":101,"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":"2026-06-26T01:02:22.586Z","updated_at":"2026-06-26T01:02:24.073Z","avatar_url":"https://github.com/usebarekey.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @barekey/react\n\nReact bindings for Barekey with Suspense-friendly `useBarekey()` reads and a dev-only browser leak guard for private variables.\n\n```tsx\nimport { PublicBarekeyClient } from \"@barekey/sdk/public\";\nimport { BarekeyProvider, useBarekey } from \"@barekey/react\";\nimport barekeyConfig from \"../barekey.json\" with { type: \"json\" };\n\nconst barekeyClient = new PublicBarekeyClient({\n  json: barekeyConfig,\n});\n\nfunction App() {\n  const env = useBarekey();\n  return \u003cdiv\u003e{env.get(\"PUBLIC_THEME\")}\u003c/div\u003e;\n}\n\nexport function Root() {\n  return (\n    \u003cBarekeyProvider client={barekeyClient} fallback={null}\u003e\n      \u003cApp /\u003e\n    \u003c/BarekeyProvider\u003e\n  );\n}\n```\n\nYou can also pass a client directly when you want to read Barekey values before any provider exists:\n\n```tsx\nimport { PublicBarekeyClient } from \"@barekey/sdk/public\";\nimport { useBarekey } from \"@barekey/react\";\nimport barekeyConfig from \"../barekey.json\" with { type: \"json\" };\n\nfunction Bootstrap() {\n  const env = useBarekey(new PublicBarekeyClient({ json: barekeyConfig }));\n  return \u003cdiv\u003e{env.get(\"PUBLIC_THEME\")}\u003c/div\u003e;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusebarekey%2Freact","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fusebarekey%2Freact","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusebarekey%2Freact/lists"}