Files
vercel__flags/packages/adapter-statsig/README.md
T
Dominik Ferber ba4eec7b23 replace eslint and prettier with biome (#187)
* remove @pyra/eslint-config

* wip

* wip

* convert shirt-shop-api

* convert shirt-shop

* convert snippets

* convert next-13

* convert next-14

* convert next-15

* eslint configs

* upgrade prettier

* use eslint v9

* run prettier

* resolve type-check

* adjust eslint

* drop Next.js v13

* fix next-14

Avoid accidentally using implicitly installed eslint v8

* update lockfile

* rm @eslint/eslintrc

* add @next/eslint-plugin-next

* biome

* biome fixes

* wip

* apply formatting

* tabs

* rm prettier

* spaces

* fix svelte

* update lockfile

* single quotes

* format all

* rm eslint-disable comments

* upgrade playwright

* upgrade publint

* upgrade playwright ci workflow

* try chromium headless

* try adding executablePath
2025-10-15 23:38:17 +03:00

979 B

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.