{"id":36601196,"url":"https://github.com/unlaunch/react-sdk","last_synced_at":"2026-01-12T08:38:32.530Z","repository":{"id":57386681,"uuid":"331207733","full_name":"unlaunch/react-sdk","owner":"unlaunch","description":null,"archived":false,"fork":false,"pushed_at":"2021-09-21T06:31:21.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"develop","last_synced_at":"2025-11-02T02:22:21.093Z","etag":null,"topics":["feature-flags","feature-toggles","sdk"],"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/unlaunch.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}},"created_at":"2021-01-20T05:56:38.000Z","updated_at":"2021-09-21T06:30:19.000Z","dependencies_parsed_at":"2022-09-11T09:12:02.050Z","dependency_job_id":null,"html_url":"https://github.com/unlaunch/react-sdk","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/unlaunch/react-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unlaunch%2Freact-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unlaunch%2Freact-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unlaunch%2Freact-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unlaunch%2Freact-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unlaunch","download_url":"https://codeload.github.com/unlaunch/react-sdk/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unlaunch%2Freact-sdk/sbom","scorecard":{"id":910643,"data":{"date":"2025-08-11","repo":{"name":"github.com/unlaunch/react-sdk","commit":"a1b52149861bdb977aa80d4d8132ffd668db4abc"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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/12 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":"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":"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":"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":"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":"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":"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":"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":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"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 'develop'"],"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"}}]},"last_synced_at":"2025-08-24T19:00:10.833Z","repository_id":57386681,"created_at":"2025-08-24T19:00:10.833Z","updated_at":"2025-08-24T19:00:10.833Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28337599,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T06:09:07.588Z","status":"ssl_error","status_checked_at":"2026-01-12T06:05:18.301Z","response_time":98,"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":["feature-flags","feature-toggles","sdk"],"created_at":"2026-01-12T08:38:32.469Z","updated_at":"2026-01-12T08:38:32.525Z","avatar_url":"https://github.com/unlaunch.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Unlaunch React SDK\n\n| main                                                                                                                | development                                                                                                                |\n|---------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------|\n|  [![Build Status](https://app.travis-ci.com/unlaunch/react-sdk.svg?branch=main)](https://app.travis-ci.com/unlaunch/react-sdk) | [![Build Status](https://app.travis-ci.com/unlaunch/react-sdk.svg?branch=develop)](https://app.travis-ci.com/unlaunch/react-sdk) |\n\n## Overview\nThe Unlaunch React SDK provides a React API to access Unlaunch feature flags and other features. Using the SDK, you can\n easily build React applications that can evaluate feature flags, dynamic configurations, and more.\n\n### Important Links\n\n- To create feature flags to use with Java SDK, login to your Unlaunch Console at [https://app.unlaunch.io](https://app.unlaunch.io)\n- [Official Guide](https://docs.unlaunch.io/docs/sdks/react-sdk)\n\n### Compatibility\nUnlaunch React SDK requires React 16.3.0 or higher.\n\n## Getting Started\nHere is a simple example. \n\nFirst, add the npm dependency to your project.\n\n```$xslt\n npm install --save unlaunch-react-sdk\n```\nHere's how you'd use the React SDK in your application.\n\n1. asyncWithUnlaunchProvider\n\n```js\nimport { asyncWithUnlaunchProvider } from 'unlaunch-react-sdk';\n\n(async () =\u003e {\n  const unLaunchProvider = await asyncWithUnlaunchProvider({\n    flagKeys : ['flag-1','flag-1'] // Flag key set\n    apiKey : '\u003cPROVIDE_BROWSER_PUBLIC_KEY_FOR_YOUR_PROJECT\u003e'\n    identity : 'anonymous' // Use special anonymous identity which generates a unique UUID\n    options = {\n       offline: false,         \n       requestTimeoutInMillis: 1000,\n       logLevel: 'debug'  \n    });\n\n    render(\n      \u003cUnlaunchProvider\u003e\n        \u003cYourApp /\u003e\n      \u003c/UnlaunchProvider\u003e,\n      document.getElementById('reactDiv'),\n    );\n})();\n   }\n}\n```\n\n2. withUnlaunchProvider\n\n```js\nimport { withUnlaunchProvider } from 'unlaunch-react-sdk';\n\nexport default withUnlaunchProvider({\n  flagKeys : ['flag-1','flag-1'] // Flag key set\n  apiKey : '\u003cPROVIDE_BROWSER_PUBLIC_KEY_FOR_YOUR_PROJECT\u003e'\n  identity : 'anonymous' // Use special anonymous identity which generates a unique UUID\n  options: { /* ... */ }\n})(YourApp);\n```\n### withUnlaunchConsumer\n\nThis is a wrapper function with which we can access flags and unlaunchClient as props in any component at any level of hierarchy. The return value of withUnlaunchConsumer is a wrapper function that takes your component and returns a React component injected with flags \u0026 unlaunchClient as props.\n\n```js\nimport { withUnlaunchConsumer } from 'unlaunch-react-sdk';\n\nconst Home = ({ flags, unlaunchClient /*, ...otherProps */ }) =\u003e {\n  // You can call any of the methods from the Unlaunch JavaScript SDK\n\n  return flags.testFlag ? \u003cdiv\u003eFlag on\u003c/div\u003e : \u003cdiv\u003eFlag off\u003c/div\u003e;\n};\n\nexport default withUnlaunchConsumer()(Home);\n\n```\n For more information, see the [official guide](https://docs.unlaunch.io/docs/sdks/react-sdk).\n\n## License\nLicensed under the Apache License, Version 2.0. See: [Apache License](LICENSE.md).\n\n## About Unlaunch\nUnlaunch is a Feature Release Platform for engineering teams. Our mission is allow engineering teams of all\n sizes to release features safely and quickly to delight their customers. To learn more about Unlaunch, please visit\n  [www.unlaunch.io](https://unlaunch.io). You can sign up to get started for free at [https://app.unlaunch.io/signup\n  ](https://app.unlaunch.io/signup).\n\n## More Questions?\nAt Unlaunch, we are obsessed about making it easier for developers all over the world to release features safely and with confidence. If you have *any* questions or something isn't working as expected, please email **unlaunch@gmail.com**.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funlaunch%2Freact-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funlaunch%2Freact-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funlaunch%2Freact-sdk/lists"}