Now with Edge Runtime support

Feature Flags for the Modern Stack

Ship features with confidence using edge-first feature flags. Built for Next.js, React Server Components, and TypeScript. Evaluate flags in under 5ms at the edge.

<5ms

Edge evaluation

100%

Type-safe SDK

0

Runtime dependencies

Simple API, powerful features

One function call. That's all it takes to evaluate a feature flag. Works seamlessly with React Server Components, Edge Functions, and traditional SSR.

  • Zero client-side JavaScript for SSR/RSC
  • Type-safe with full TypeScript inference
  • Edge-cached for instant evaluation
page.tsx
import { getFlag } from '@switchflag/sdk'

export default async function CheckoutPage() {
  // Evaluate flag at the edge - no client JS needed
  const showNewCheckout = await getFlag('new-checkout-flow', {
    userId: user.id,
    plan: user.plan,
  })

  if (!showNewCheckout) {
    return <LegacyCheckout />
  }

  return <NewCheckout />
}

Everything you need for feature management

Built by engineers, for engineers. No bloat, just the features you need.

Edge-First Evaluation

Evaluate flags at the edge in under 5ms. No cold starts, no latency. Perfect for Vercel Edge Functions and Cloudflare Workers.

🧩

Server Components Ready

Built for the React Server Components era. Use flags directly in your RSC without any client-side JavaScript.

🔒

Type-Safe SDK

Full TypeScript support with inference. Know exactly what flags exist and their types at compile time.

🎯

Targeting Rules

Target users by attributes, percentages, or custom rules. Roll out features gradually with confidence.

🔄

Real-time Updates

Flag changes propagate instantly to the edge. No redeploys needed to update your feature flags.

📋

Audit Logging

Track every flag change with detailed audit logs. Know who changed what and when.

Ready to ship features faster?

Join thousands of teams using Switchflag to safely roll out features and experiments.