What is Feature Flag?
A feature flag (also called a feature toggle) is a software development technique that lets you turn functionality on or off at runtime without changing code or redeploying your application. Feature flags decouple deployment from release, allowing you to ship code to production while controlling who sees it.
Feature flags enable several powerful workflows: gradual rollouts (releasing to 5% of users, then 20%, then 100%), canary releases (testing with internal users first), A/B testing (comparing variants), and kill switches (instantly disabling a broken feature).
At their simplest, feature flags are boolean values checked in your code. In practice, they can be targeted by user attributes (plan, geography, role), evaluated as percentages, or used to serve entirely different feature variants.
Example
You're launching a new dashboard redesign. Instead of a big-bang release, you use a feature flag to show it to 10% of users first, monitor error rates and feedback, then gradually increase to 100% over two weeks.
Code Example
// Check a feature flag with Kitbase
const showNewDashboard = kitbase.isFeatureEnabled("new-dashboard");
if (showNewDashboard) {
renderNewDashboard();
} else {
renderLegacyDashboard();
} Using a feature flag to conditionally render UI
Related Terms
Ship features with confidence
Use feature flags to control rollouts, run A/B tests, and instantly kill problematic features.
Explore Feature Flags