Skip to main content

Quickstart

Install the SDK and read your first flag.

npm install @lumenstack/sdk
import { init } from "@lumenstack/sdk";

const flags = await init({ sdkKey: process.env.LUMENSTACK_SDK_KEY });
if (flags.bool("new-checkout", false)) {
  // new code path
}

SDK keys start with ls_sdk_. Keep server keys out of client bundles.