Files
vercel__flags/packages/adapter-statsig
Dominik Ferber b375e4e755 fill out metadata (#92)
* fill out metadata

* add changeset
2025-03-08 10:27:56 +02:00
..
2024-12-12 13:01:06 +02:00
2025-02-27 17:45:19 +02:00
2025-03-08 10:27:56 +02:00
2024-12-12 13:01:06 +02:00
2024-12-12 13:01:06 +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.