Adapters

Supported Providers

Integrate any flag provider.

Note that adapters are still a work-in-progress. The packages already exist, but not every package exports an adapter yet.

Integrate any feature flag provider with the Flags SDK using an adapter. We publish adapters for the most common providers, but it is also possible to write a custom adapter in case we don't list your provider or in case you have an in-house solution for feature flags.

Adapters conceptually replace the decide and origin parts of a flag declaration.

Supported Providers

We maintain curated adapters for the most common providers:

@flags-sdk/launchdarkly

@flags-sdk/statsig

@flags-sdk/split

@flags-sdk/optimizely

@flags-sdk/hypertune

All curated adapters follow this pattern:

flags.tsx
import { flag } from 'flags/next';
import { statsig } from '@flags-sdk/statsig';
 
export const exampleFlag = flag({
  key: 'example-flag',
  adapter: statsig(),
});