Files
vercel__flags/packages/adapter-statsig
github-actions[bot] c7a56d6a66 Version Packages (#461)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-04 19:12:09 +02:00
..
2026-08-04 13:14:03 +02:00
2026-08-04 19:12:09 +02:00
2026-08-04 19:12:09 +02:00
2024-12-12 13:01:06 +02:00

Flags SDK — Statsig Provider

The Statsig provider for the Flags SDK contains support for Statsig's Feature Gates, Dynamic Config, Experiments, Autotune and Layers.

Setup

The Statsig provider is available in the @flags-sdk/statsig module. You can install it with

pnpm i @flags-sdk/statsig

Provider Instance

You can import the default adapter instance statigAdapter from @flags-sdk/statsig:

import { statsigAdapter } from "@flags-sdk/statsig";

Example

import { flag } from "flags/next";
import { statsigAdapter } from "@flags-sdk/statsig";

export const marketingGate = flag<boolean>({
  key: "marketing_gate",
  adapter: statsigAdapter.featureGate((config) => config.value),
});

Documentation

Please check out the Statsig provider documentation for more information.