Features
- Local evaluation: Flag rules evaluate on your infrastructure in microseconds
- App Router support: Works with React Server Components and Client Components
- OpenFeature compatible: Standard feature flag API through OpenFeature provider
- Background sync: Flag rules and logging sync with Confidence in the background
- High reliability: No network dependency at evaluation time
Installation
Setup
1. Configure the provider
Create a file to initialize the Confidence provider:2. Add the provider to your layout
Wrap your application with theConfidenceProvider:
Usage
Server Components
Use thegetFlag function in React Server Components:
Client Components
Use theuseFlag hook in Client Components:

