Introduction
Feature flags for developers who ship
Feature flags that get out of your way. Deploy gradually, test in production, roll back instantly.
import { FlipswitchWebProvider } from '@flipswitch-io/web-provider';
import { OpenFeature, useFlag } from '@openfeature/react-sdk';
const provider = new FlipswitchWebProvider({ apiKey: 'YOUR_API_KEY' });
await OpenFeature.setProviderAndWait(provider);
function Checkout() {
const { value: newCheckout } = useFlag('new-checkout', false);
return newCheckout ? <NewCheckout /> : <OldCheckout />;
}What You Get
- Real-time updates - Toggle flags in the dashboard, see changes instantly via SSE
- Gradual rollouts - Ship to 1% of users, then 10%, then everyone
- Targeting rules - Show features to specific users, teams, or segments
- OpenFeature native - Works with any OpenFeature SDK via OFREP