Flags SDK now supports OpenFeature

The Flags SDK adapter for OpenFeature allows using any Node.js OpenFeature provider with the Flags SDK. Pick from a wide range of flag providers, while benefiting from the Flag SDK's tight integration into Next.js and SvelteKit.

flags.ts
import { createOpenFeatureAdapter } from "@flags-sdk/openfeature";
import type { EvaluationContext } from "@openfeature/server-sdk";
OpenFeature.setProvider(new YourProviderOfChoice());
const openFeatureAdapter = createOpenFeatureAdapter(OpenFeature.getClient());
export const exampleFlag = flag<boolean, EvaluationContext>({
key: "example-flag",
adapter: openFeatureAdapter.booleanValue(),
});

Declare a feature flag using the Flags SDK and OpenFeature adapter

OpenFeature is an open specification that provides a vendor-agnostic, community-driven API for feature flagging that works with your favorite feature flag management tool or in-house solution. OpenFeature exposes various providers through a unified API.

The Flags SDK sits between your application and the source of your flags, helping you follow best practices and keep your website fast. Use the Flags SDK OpenFeature adapter in your application to load feature flags from all compatible Node.js OpenFeature providers, including:

  • AB Tasty

  • Bucket

  • Cloudbees

  • Confidence by Spotify

  • ConfigCat

  • DevCycle

  • Environment Variables Provider

  • FeatBit

  • flagd

  • Flipt

  • GO Feature Flag

  • GrowthBook

  • Hypertune

  • Kameleoon

  • LaunchDarkly

  • PostHog

  • Split

View the OpenFeature adapter or clone the template to get started.