Skip to content

Get started

Your first local evaluation.

Connect a supported SDK, fetch configuration, and read a flag with an explicit fallback.

  1. 01Install
  2. 02Configure
  3. 03Evaluate

1. Install the SDK

npm install <nanoflags-sdk-package>

2. Use a scoped key

Browser keys only access browser-safe configuration. Server keys stay on the server.
const flags = createClient({
  environment: "development",
  sdkKey: "<your-browser-key>",
});
await flags.ready();

3. Evaluate with an explicit default

flags.boolean("checkout-v2", false, { key: "example-user" });
If startup has no usable configuration, the documented fallback policy applies. A local result is not a network delivery acknowledgement.
Next: create a saved scenario