Client vs. server
Client SDKs
Run in browsers, mobile apps, and other public clients. Use a client key (
slc_), which serves an obfuscated configuration.Server SDKs
Run in trusted backends. Use a server key (
sls_), which reads the full configuration. Keep it secret.Available SDKs
React
@softlaunch/react — a provider and hooks for React apps.JavaScript
@softlaunch/js — a client for any JavaScript runtime.Node.js
Coming soon
Go
Coming soon
Python
Coming soon
A shared API
Every SDK exposes one typed accessor per flag type. The arguments are the same everywhere:| Argument | Description |
|---|---|
flagKey | The key of the flag to evaluate. |
subjectKey | A stable identifier for the user or entity. |
attributes | Key–value attributes used for targeting. |
defaultValue | Returned while loading, or if the flag is missing or mistyped. |
getBooleanFlag, getStringFlag, getIntegerFlag, getNumericFlag, and getJsonFlag (the React SDK exposes the same set as hooks: useBooleanFlag, and so on).
SDKs stay subscribed after the first load. When you change a flag, connected SDKs receive the update in real time and re-evaluate.