The feature flags toolkit
Flags SDK is a free, open-source library for using feature flags in Next.js and SvelteKit.
$npx skills add vercel/flags@flags-sdk
Using flags as code
The SDK sits between your application and the source of your flags, helping you follow best practices and keep your website fast.
Works with any provider
Use any flag provider, or none at all. Flexible integrations for your projects.
Effortless integration
Integrate with App Router, Pages Router, and Routing Middleware.
Release strategically
Ideal for A/B testing and controlled rollouts. Experiment with confidence.
Effortless setup
With a simple declarative API to define and use your feature flags.
Declaring a flag
Using a flag
What builders say about the Flags SDK
Deploy your first flag today
Get Started
$npm i flags