Build deterministic rollouts, ordered rule evaluation, a subscription store, and a useFlag hook with a live control panel.
What you'll build
A flag client and useFlag hook driving a gradual rollout you can change live from a control panel.
Feature flags let you deploy code dark and release it gradually: 1% of users, then 10%, then everyone, with a kill switch if anything goes wrong. You'll build the client side of a flag system:
useFlag hook built on useSyncExternalStore, with bootstrapped values so there's no flicker.Security note: in production, rules are evaluated on the server and the browser receives only results. Flags hide UI; they don't enforce access. Anything sensitive must also be checked server-side.