v1.0 is now live

Feature Flags for the
Modern Stack

Ship features with confidence using edge-first feature flags. Built for Next.js, RSC, and TypeScript. Evaluate flags in under 5ms.

Get Started Free
npm install switchflag
page.tsx
// Server Component Example
import { getFlag } from '@switchflag/next';

export default async function Page() {
// Evaluated at the edge in <5ms
const isNewCheckout = await getFlag('new-checkout-flow');

if (isNewCheckout) {
return <CheckoutV2 />;
}

return <CheckoutOriginal />;
}

Seamlessly Integrated With

Next.js
Vercel
TypeScript
React
Tailwind

Setup in Seconds

No complex configuration. Just install the SDK and start evaluating flags immediately.

01

Install the SDK

Drop our lightweight package into your project. Support for all major package managers.

$ npm install @switchflag/sdk
02

Initialize Client

Connect to your environment using your secure API key.

import { createClient } from '@switchflag/sdk'
const client = createClient({ apiKey: 'sk_live_...' })
03

Evaluate Flag

Wrap your features in a simple conditional and ship instantly.

const flag = await client.getFlag('new-ui')
if (flag.value) {
// show feature
}

Platform Features

5ms Latency

Global edge network ensures your flags evaluate instantly, preventing content flash or layout shifts.

Type-Safe SDKs

Generated types based on your dashboard configuration. Catch missing flags at build time, not runtime.

Team Management

Granular permissions, audit logs, and environment scoping. Built for scaling engineering teams.

Instant Rollbacks

Kill switch functionality allows you to disable buggy features instantly without redeploying code.

A/B Testing

Run experiments on specific user segments. Analyze data and roll out the winning variant.

User Segmentation

Target flags based on email, region, subscription tier, or any custom attribute you define.

Ready to Ship Faster?

Join thousands of developers managing features, not hotfixes.

Start Your Free Project