All Projects → launchdarkly → js-client-sdk

launchdarkly / js-client-sdk

Licence: other
LaunchDarkly Client-side SDK for Browser JavaScript

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
shell
77523 projects
typescript
32286 projects
CSS
56736 projects

Projects that are alternatives of or similar to js-client-sdk

ios-client-sdk
LaunchDarkly Client-side SDK for iOS (Swift and Obj-C)
Stars: ✭ 45 (-51.61%)
Mutual labels:  feature-flags, feature-toggles, launchdarkly, launchdarkly-sdk
php-server-sdk
LaunchDarkly Server-side SDK for PHP
Stars: ✭ 31 (-66.67%)
Mutual labels:  feature-flags, feature-toggles, launchdarkly, launchdarkly-sdk
ruby-server-sdk
LaunchDarkly Server-side SDK for Ruby
Stars: ✭ 25 (-73.12%)
Mutual labels:  feature-flags, feature-toggles, launchdarkly, launchdarkly-sdk
erlang-server-sdk
LaunchDarkly Server-Side SDK for Erlang/Elixir
Stars: ✭ 16 (-82.8%)
Mutual labels:  feature-flags, feature-toggles, launchdarkly, launchdarkly-sdk
java-server-sdk
LaunchDarkly Server-Side SDK for Java
Stars: ✭ 71 (-23.66%)
Mutual labels:  feature-flags, feature-toggles, launchdarkly, launchdarkly-sdk
ld-scheduler
Schedule Launch Darkly flags on or off
Stars: ✭ 14 (-84.95%)
Mutual labels:  feature-flags, feature-toggles, launchdarkly
ld-redux
A library to integrate launch darkly with react redux
Stars: ✭ 33 (-64.52%)
Mutual labels:  feature-flags, feature-toggles, launchdarkly
jest-launchdarkly-mock
Easily unit test LaunchDarkly feature flagged components with jest
Stars: ✭ 14 (-84.95%)
Mutual labels:  feature-flags, feature-toggles, launchdarkly
react-client-sdk
LaunchDarkly Client-side SDK for React.js
Stars: ✭ 42 (-54.84%)
Mutual labels:  feature-flags, feature-toggles, launchdarkly-sdk
Flipt
An open-source, on-prem feature flag solution
Stars: ✭ 1,623 (+1645.16%)
Mutual labels:  feature-flags, feature-toggles
java-client
Java SDK client for Split Software
Stars: ✭ 20 (-78.49%)
Mutual labels:  feature-flags, feature-toggles
Flagsmith Frontend
Web App and Mobile App for Flagsmith
Stars: ✭ 86 (-7.53%)
Mutual labels:  feature-flags, feature-toggles
Flagr
Flagr is a feature flagging, A/B testing and dynamic configuration microservice
Stars: ✭ 1,776 (+1809.68%)
Mutual labels:  feature-flags, feature-toggles
Featureflags
The guide to decoupling feature rollout from code deployment for feature flag-driven development. Feature flags give a software organization the power to reduce risk, iterate quicker, and get more control.
Stars: ✭ 231 (+148.39%)
Mutual labels:  feature-flags, feature-toggles
Flagsmith Api
Feature flagging and remote config service. Host yourself or use our hosted version at https://www.flagsmith.com/
Stars: ✭ 223 (+139.78%)
Mutual labels:  feature-flags, feature-toggles
Flipper
Flipper is a simple and useful tool to deal with feature toggles
Stars: ✭ 64 (-31.18%)
Mutual labels:  feature-flags, feature-toggles
Unleash Client Go
Unleash Client for Go
Stars: ✭ 78 (-16.13%)
Mutual labels:  feature-flags, feature-toggles
Molasses
Feature toggle library for elixir
Stars: ✭ 70 (-24.73%)
Mutual labels:  feature-flags, feature-toggles
Unleash Client Python
Unleash client for Python 💡💡💡
Stars: ✭ 44 (-52.69%)
Mutual labels:  feature-flags, feature-toggles
php-client
PHP SDK client for Split Software
Stars: ✭ 14 (-84.95%)
Mutual labels:  feature-flags, feature-toggles

LaunchDarkly SDK for Browser JavaScript

Circle CI

LaunchDarkly overview

LaunchDarkly is a feature management platform that serves over 100 billion feature flags daily to help teams build better software, faster. Get started using LaunchDarkly today!

Twitter Follow

Getting started

Refer to the SDK documentation for instructions on getting started with using the SDK.

Note: If you are using JavaScript in a non-browser environment, please see our server-side Node.js SDK, client-side Node.js SDK, and Electron SDK.

Please note that the JavaScript SDK has two special requirements in terms of your LaunchDarkly environment. First, in terms of the credentials for your environment that appear on your Account Settings dashboard, the JavaScript SDK uses the "Client-side ID"-- not the "SDK key" or the "Mobile key". Second, for any feature flag that you will be using in JavaScript code, you must check the "Make this flag available to client-side SDKs" box on that flag's Settings page.

ReactJS

The SDK does not require any particular JavaScript framework. However, if you are using React, there is an add-on to simplify use of the SDK. See react-client-sdk.

Browser compatibility

The LaunchDarkly SDK can be used in all major browsers. However, web browsers vary widely in their support of specific features and standards. Three features that are used by the LaunchDarkly SDK that may not be available on every browser are Promise, EventSource, and document.querySelectorAll(). For more information on whether you may need to use a polyfill to ensure compatibility, and how to do so, see "JS SDK requirements and polyfills".

Logging

By default, the SDK sends log output to the browser console. There are four logging levels: debug, info, warn, and error; by default, debug and info messages are hidden. See LDOptions.logger and createConsoleLogger for more details.

Learn more

Check out our documentation for in-depth instructions on configuring and using LaunchDarkly. You can also head straight to the complete reference guide for this SDK. Additionally, the authoritative full description of all properties, types, and methods is the online TypeScript documentation. If you are not using TypeScript, then the types are only for your information and are not enforced, although the properties and methods are still the same as described in the documentation.

For examples of using the SDK in a simple JavaScript application, see hello-js and hello-bootstrap.

Testing

We run integration tests for all our SDKs using a centralized test harness. This approach gives us the ability to test for consistency across SDKs, as well as test networking behavior in a long-running application. These tests cover each method in the SDK, and verify that event sending, flag evaluation, stream reconnection, and other aspects of the SDK all behave correctly.

Contributing

We encourage pull requests and other contributions from the community. Check out our contributing guidelines for instructions on how to contribute to this SDK.

About LaunchDarkly

  • LaunchDarkly is a continuous delivery platform that provides feature flags as a service and allows developers to iterate quickly and safely. We allow you to easily flag your features and manage them from the LaunchDarkly dashboard. With LaunchDarkly, you can:
    • Roll out a new feature to a subset of your users (like a group of users who opt-in to a beta tester group), gathering feedback and bug reports from real-world use cases.
    • Gradually roll out a feature to an increasing percentage of users, and track the effect that the feature has on key metrics (for instance, how likely is a user to complete a purchase if they have feature A versus feature B?).
    • Turn off a feature that you realize is causing performance problems in production, without needing to re-deploy, or even restart the application with a changed configuration file.
    • Grant access to certain features based on user attributes, like payment plan (eg: users on the ‘gold’ plan get access to more features than users in the ‘silver’ plan). Disable parts of your application to facilitate maintenance, without taking everything offline.
  • LaunchDarkly provides feature flag SDKs for a wide variety of languages and technologies. Check out our documentation for a complete list.
  • Explore LaunchDarkly
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].