Getting Started
3. Connect an SDK

3. Connect an SDK

The use of SDK is an essential skill for understanding how to deliver, control, and experiment with the software through feature flags.

In the last step "Try interacting with the demo", you've learned how to use feature flags to make the game component appear/disappear, and switch the difficulty mode of the game. Now let's see how it's implemented in the code.

Follow the guide in the portal

The easiest way is to follow the instructions on the portal's Getting Started page. In the portal, you can

Step 1. Select one of the feature flags you just created in the previous step. Then click the "Next" button to go to step 2.

Step 2. Choose a programming language you're comfortable with. Copy the automatically generated code and run it in your IDE.

The code generated by the portal contains all necessary elements, such as:

  • SDK installation
  • SDK initialization with server URL, environment key
  • Identification of a user with customized properties
  • Feature flag implementation
  • Feature flag evaluation
  • Feature flag update listener
  • And so on

Connect SDKs manually

We provide a variety of client-side, server-side, and mobile SDKs to choose from. You can select the language you're good at to accelerate completing your quick start.

👾

We recommend that you use our SDK, because we have already implemented the best practices for you.

Javascript

We provide a client-side Javascript/Typescript SDK (opens in a new tab). We also provide a "Dino Game" sample for React (opens in a new tab) and Vue (opens in a new tab). This SDK works perfectly with Typescript, React, Vue, Angular, etc.

The SDK's GitHub repository contains a full tutorial on how to use it. It also provides a sample project for you to try out.

Node.js

We provide a server-side Node.js SDK (opens in a new tab) for you to use. This SDK can be used in your console APP or Express.js and other web application framework APP.

The SDK's GitHub repository contains a full tutorial on how to use it. It also provides a sample project for you to try out.

.NET

We provide a server-side .NET SDK (opens in a new tab) for you to use. This SDK can be used in your console APP or ASP.NET Core APP.

It can also work for front-end application such as WPF, WinForm, MAUI, etc. But we don't recommend you to use it in mobile application because it consumes more battery power than a real mobile SDK.

The SDK's GitHub repository contains a full tutorial on how to use it. It also provides a sample project for you to try out.

Java

We provide a Java SDK (opens in a new tab) for you to use. This SDK can be used in your console APP or Spring Boot APP.

The SDK's GitHub repository contains a full tutorial on how to use it. It also provides a sample project for you to try out.

Python

We provide a Python SDK (opens in a new tab). The SDK's GitHub repository contains a full tutorial on how to use it. It also provides a sample project for you to try out.

Go

We provide a Go SDK (opens in a new tab). The SDK's GitHub repository contains a full tutorial on how to use it. It also provides a sample project for you to try out.

REST APIs & WebSocket

For any other language or framework that we didn't provide an SDK yet, you can use our REST APIs to get feature flags. See the documentation here.

You can use our WebSocket interface to get real-time feature flag update. Please join our Slack channel to get more information about this feature.