Control feature rollouts
Control feature releases with precision. Percentage rollouts, user targeting based on attributes, environment overrides, and real-time flag updates. Perfect for gradual rollouts and A/B testing.
import { sylphx } from '@sylphx/sdk'
const showNewUI = await sylphx.flags.isEnabled('new-dashboard', {
userId: user.id,
attributes: { plan: user.plan },
})
if (showNewUI) {
return <NewDashboard />
}import { useFlag } from '@sylphx/react'
function Component() {
const showBeta = useFlag('beta-feature')
return showBeta ? <BetaFeature /> : <StableFeature />
}Looking for more examples?
View on GitHub