This guide walks you through installing Flipper, wiring it into an application, and verifying that feature flags are working as expected.
bun add @flippercloud/flipperFor most scenarios you can begin with the in-memory adapter:
import { Flipper, MemoryAdapter } from '@flippercloud/flipper'
const adapter = new MemoryAdapter()
const flipper = new Flipper(adapter)Later you can swap in Redis, Sequelize, or any custom adapter that implements the storage contract.
const featureKey = 'search'
const isEnabled = await flipper.isFeatureEnabled(featureKey, currentUser)
if (isEnabled) {
// roll out the feature
}Flags are disabled by default. Use the Flipper API to target who sees what.
await flipper.enable('search')
await flipper.enableActor('search', currentUser)
await flipper.enableGroup('search', 'admin')
await flipper.enablePercentageOfActors('search', 25)- Memory adapter: best for tests and simple apps.
- Redis adapter: distribute feature state across servers.
- SQL adapters: manage state alongside relational data.
Browse the adapter guides once you're ready to move beyond in-memory storage.