Flags SDK

This page contains example snippets for the Flags SDK.

See flags-sdk.dev for the full documentation, or GitHub for the source code.

Snippets

Concepts

Adapter
How to use an adapter with the Flags SDK
Dedupe
How to use dedupe with the Flags SDK
Identify (Basic)
Establishing evaluation context
Identify (Advanced)
Establishing evaluation context
Precompute (Manual)
Precompute flags manually
Precompute (Automatic)
Precompute flags with the full setup

Examples

Dashboard Page
Using feature flags on dynamic pages
Marketing Page
Using feature flags on static pages
Feature Flags in Edge Middleware
Manually using feature flags in Edge Middleware
Pages Router (Basic)
Using feature flags in Pages Router on dynamic pages
Pages Router (Precomputed)
Using feature flags in Pages Router on static pages
Suspense Fallbacks
Using prerendered suspense fallbacks