Statsig provider for the Flags SDK
npm install @flags-sdk/statsigThe Statsig provider for the Flags SDK contains support for Statsig's Feature Gates, Dynamic Config, Experiments, Autotune and Layers.
The Statsig provider is available in the @flags-sdk/statsig module. You can install it with
``bash`
pnpm i @flags-sdk/statsig
You can import the default adapter instance statigAdapter from @flags-sdk/statsig:
`ts`
import { statsigAdapter } from "@flags-sdk/statsig";
`ts
import { flag } from "flags/next";
import { statsigAdapter } from "@flags-sdk/statsig";
export const marketingGate = flag
key: "marketing_gate",
adapter: statsigAdapter.featureGate((config) => config.value),
});
``
Please check out the Statsig provider documentation for more information.