Getting Started with the JavaScript SDK

Split’s JavaScript SDK provides robust, scalable feature flag management, giving any team the power to safely launch features and target them to users.

Why use the Split JavaScript SDK?

Split’s JavaScript SDK brings scalable feature flags to any app, website or experience built with JavaScript. Split helps teams control rollouts, and customer experiences, while gathering new data and insight on how their products are being engaged.

Front-end teams are always experimenting with new things, trying to make the website, the app, or the business more successful. But each new experiment or quickly-turned-around feature introduces risk—that response times will be slower, that a change in the funnel will add friction, that your users simply may not like the change. Split’s JavaScript SDK puts all of these issues under your control, by letting you:

  • Release features to production but disabled for all users by default
  • Target new features only to internal QA teams
  • Slowly roll out features to a broader audience by percentage, demographic, geography, account type, or any other metric
  • Kill features with a single click to revert back to your safe state

Split works across many different languages, letting developers, PMs and support teams control feature rollout from one unified view—and monitor the success of any new code. Our integrations bring rollout updates into the tools your team is already using, further opening the feature-delivery process up to your entire organization.

Using Split with Javascript Frameworks

Split’s JavaScript SDK works with today’s most popular JS frameworks right out of the box invocation, with no extra steps necessary. This includes popular favorites like Ember, AngularJS, Backbone and React.

Logos of popular JavaScript frameworks

Split Node.js SDK

Node.js is a runtime environment, not a framework, and has its own special considerations that must be taken into account to properly execute feature flagging. Because of this, Split has its own Node.js SDK.

Our Node.js SDK is published using NPM, so you don’t have to change your existing workflow to integrate Split. Get started with our Node SDK documentation, or learn more about the package at npmjs.com.

Getting Started with Split for JavaScript

All of Split’s SDKs are very simple to integrate into your code base; that’s no different in JavaScript. All it really takes to get rolling with Split is initiating the SDK, then splitting your code.

View the Documentation