{"id":36601211,"url":"https://github.com/unlaunch/javascript-sdk","last_synced_at":"2026-01-12T08:38:33.085Z","repository":{"id":57386686,"uuid":"319524514","full_name":"unlaunch/javascript-sdk","owner":"unlaunch","description":"Unlaunch JavaScript Library","archived":false,"fork":false,"pushed_at":"2021-02-24T04:45:45.000Z","size":1769,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"develop","last_synced_at":"2025-10-25T04:49:53.494Z","etag":null,"topics":["feature-flags","javascript-sdk"],"latest_commit_sha":null,"homepage":"https://docs.unlaunch.io/docs/sdks/javascript-library","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":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-12-08T04:21:48.000Z","updated_at":"2021-08-29T15:57:15.000Z","dependencies_parsed_at":"2022-09-07T01:23:08.201Z","dependency_job_id":null,"html_url":"https://github.com/unlaunch/javascript-sdk","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/unlaunch/javascript-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unlaunch%2Fjavascript-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unlaunch%2Fjavascript-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unlaunch%2Fjavascript-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unlaunch%2Fjavascript-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unlaunch","download_url":"https://codeload.github.com/unlaunch/javascript-sdk/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unlaunch%2Fjavascript-sdk/sbom","scorecard":{"id":910640,"data":{"date":"2025-08-11","repo":{"name":"github.com/unlaunch/javascript-sdk","commit":"9d93486d29b96b242faeb79860c423cd451ad93a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.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":"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":"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":"Code-Review","score":0,"reason":"Found 0/30 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":"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":"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":"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":"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":"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":"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":"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":"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"}},{"name":"Vulnerabilities","score":0,"reason":"35 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-w8qv-6jwh-64r5","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-5fw9-fq32-wv5p","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-g6ww-v8xp-vmwg","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-hxcc-f52p-wc94","Warn: Project is vulnerable to: GHSA-4wf5-vphf-c2xc","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-jgrx-mgxx-jf9v","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-6fc8-4gx4-v693","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T19:00:07.752Z","repository_id":57386686,"created_at":"2025-08-24T19:00:07.752Z","updated_at":"2025-08-24T19:00:07.752Z"},"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","javascript-sdk"],"created_at":"2026-01-12T08:38:33.023Z","updated_at":"2026-01-12T08:38:33.070Z","avatar_url":"https://github.com/unlaunch.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Unlaunch JavaScript Library\n\n| main                                                                                                                | develop                                                                                                                |\n|---------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------|\n| [![Build Status](https://travis-ci.com/unlaunch/javascript-sdk.svg?branch=main)](https://travis-ci.com/unlaunch/javascript-sdk) | [![Build Status](https://travis-ci.com/unlaunch/javascript-sdk.svg?branch=develop)](https://travis-ci.com/unlaunch/javascript-sdk) |\n\n\n## Overview\nThe Unlaunch JavaScript Library provides JavaScript API to access Unlaunch feature flags and other features. Using this library, you can easily build JavaScript apps that can evaluate feature flags, dynamic configurations, and more.\n\n### Important Links\n\n- To create feature flags to use with JavaScript Library, login to your Unlaunch Console at [https://app.unlaunch.io](https://app.unlaunch.io)\n- [Official Guide - Read this first](https://docs.unlaunch.io/docs/sdks/javascript-library)\n- [npmjs](https://www.npmjs.com/package/unlaunch-js-client-lib)\n\n### Compatibility\nThe Unlaunch JavaScript library doesn't require or depend on any specific JavaScript framework. You can use it with your favorite framework like Angular. If you want to integrate with React, we have a separate React SDK available.\n\n#### Browser Support\nThe Unlaunch Javascript Library can be used in all major browsers. However, some browsers may not support some features that the library uses, such as ES6 Promises. You may have to use polyfill if your target users use browsers that do not support ES6 Promise.\n\n## Getting Started\nHere is a simple example. \n\nFirst, add the library to your project. To load the JavaScript Library, include the following in the \u003chead\u003e or \u003cbody\u003e tag of your webpage.\n\n### Embed directly in your HTML\n```javascript\n\u003cscript crossorigin=\"anonymous\" src=\"https://unpkg.com/unlaunch-js-client-lib/dist/ulclient.min.js\"\u003e\n\u003c/script\u003e\n```\n\n### Integrate with a JavaScript framework\nOr using, `npm install`:\n\n```\nnpm i unlaunch-js-client-lib\n```\n\nand then,\n\n```javascript\nimport * as ULClient from \"unlaunch-js-client-lib\";\n```\n\nHere's how you'd use JavaScript library in an HTML page.\n\n```javascript\nconst flag = '\u003cYOUR_FLAG_KEY\u003e'\nconst apiKey = '\u003cPROVIDE_BROWSER_PUBLIC_KEY_FOR_YOUR_PROJECT\u003e'\nconst identity = 'anonymous' // Use special anonymous identity which generates a unique UUID\n\nconst options = {\n    localStorage: true, // Use local storage\n    logLevel: 'debug'   // Available logLevels are ['error','warn','info','debug','none']. Default logLevel is 'error'. To disable logging use 'none'. If empty ''            \n                        // loglevel is provided all logs are printed. \n                        // Log levels severity are in the order ['error','warn','info','debug']. Error has high severity and debug has lowest.\n                        // All logs which have high severity level then the level provided will be printed. So if logLevel info is selected 'error', 'warn' and \n                        // 'info' logs are printed. If 'debug' is provided only debug logs are printed.   \n}\n\nconst ulclient = ULClient.initialize(\n    apiKey,\n    [flag],\n    identity,\n    null,\n    options\n);\n\nulclient.on('ready', function () {\n\nlet variation = ulclient.variation(flag);\nconsole.log(`[UL] Variation is ${variation}`)\n\nconst details = ulclient.variationDetail(flag);\nconsole.log(`[UL] Evaluation reason is ${details.reason}`)\n\n\nif (variation === 'on') {\n    // Show the feature\n} else {\n    // Hide the feature\n}\n```\n\nFor more information, see the [official guide](https://docs.unlaunch.io/docs/sdks/javascript-library).\n\n## Build instructions\n\n### Requirements\n- npm version 6.14.5 or higher\n- node version 12.18.2 or higher\n\nThe library has dependency in [javascript-sdk-common](https://github.com/unlaunch/javascript-sdk-common) project. After cloning both the repos, follow these steps.\n\n1. Go to `javascript-sdk-common` directory and run `npm install` and then run `npm run build`\n2. Go to `javascript-sdk-common` directory and run `npm link`. Then go to the `javascript-client-sd`k and type `npm link unlaunch-js-sdk-common`\n3. Install `javascript-client-sdk` dependencies by running `npm install` and then build `npm run build`\n4. Go to your project directory and run `npm link \u003cpath-to-js-client-sdk-directory\u003e`\n5. In your project directory run `npm install`\n6. Import `unlaunch-js-client-lib` in your project or use the minified JavaScript library.\n\n### Publish to npm\n- npm login\n- npm publish\n\n## Customization\n\nYou can use options to customize the client. For more information, see the [official guide](https://docs.unlaunch.io/docs/sdks/javascript-library#client-configuration).\n\n```javascript\nvar options = {\n     localStorage: true,\n     offline: false,\n     requestTimeoutInMillis: 1000\n}\n```\n\n### Offline Mode\n\nYou can start the SDK in offline mode for testing purposes. In offline mode, flags aren't downloaded from the server and no data is sent. All calls to `variation()` or its variants will return `control`. Read more in the [official guide](https://docs.unlaunch.io/docs/sdks/javascript-library#offline).\n \n\n## Contributing\nPlease see [CONTRIBUTING](CONTRIBUTING.md) to find how you can contribute.\n\n## License\nLicensed under the Apache License, Version 2.0. See: [Apache License](LICENSE.md).\n\n## Publish Releases on npmjs\nTODO\n\n## About Unlaunch\nUnlaunch is a Feature Release Platform for engineering teams. Our mission is allow engineering teams of all\nsizes 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\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%2Fjavascript-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funlaunch%2Fjavascript-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funlaunch%2Fjavascript-sdk/lists"}