Set up feature flags
Ship features without sweating the launch. Roll out gradually, kill instantly if needed.
Tools that power the Set up feature flags stack
LaunchDarkly
Enterprise feature flags
Industry-standard feature flag platform with targeting, experimentation, and audit logs
PostHog
Flags and product analytics
Combine feature flags with session replays and funnels in a single open-source platform
Unleash
Self-hosted feature toggles
Open-source feature toggle service you can host on your own infrastructure
Flagsmith
Open-source remote config
Feature flags and remote configuration with both cloud and self-hosted options
- 1PostHog
Sign up for PostHog Cloud (or self-host) and install the posthog-js snippet. Go to Feature Flags and create a boolean flag. In your code, wrap the new feature in if (posthog.isFeatureEnabled('my-flag')). Start with a 0% rollout and increase gradually. PostHog automatically records which flag variant each user received alongside their analytics events.
Open PostHog - 2LaunchDarkly
Create a LaunchDarkly account and project. Install the SDK for your language and initialize it with your SDK key. Create a feature flag in the dashboard and define targeting rules by user attribute (plan, beta tester, internal team). Use the kill switch to instantly disable a feature for all users if an issue is detected in production.
Open LaunchDarkly - 3Unleash
Deploy Unleash via the official Docker image or Unleash Cloud. Create a feature toggle in the admin UI and install the Unleash client SDK in your application. Configure a gradual rollout strategy that starts at 10% of users. The Unleash Proxy can be deployed at the edge to reduce latency for flag evaluation.
Open Unleash - 4Flagsmith
Sign up for Flagsmith and create a project with separate development and production environments. Each environment has its own API key so flag states are isolated. Add the flagsmith npm package and call flagsmith.hasFeature('my-flag') in your code. Use the Remote Config feature to store arbitrary string values (API endpoints, copy, thresholds) that you can change without a deployment.
Open Flagsmith
Frequently asked questions
Costs depend on your scale. Most tools in this stack offer a free tier to start. Open the cost calculator on this page to estimate monthly cost based on your users and revenue.
This stack uses 4 tools: LaunchDarkly, PostHog, Unleash, Flagsmith. Each tool is picked to work well with the others and to cover a specific part of the workflow.
Yes. The stack is a recommended starting point. You can replace any tool with an alternative you already use. Check the setup guide first to confirm the integration points you'll need to rebuild.
Most makers finish the 4-step setup in under an hour. Creating accounts and connecting the first integration takes the most time.
Related stacks
Run A/B tests on your site
Stop guessing what works. Test it with real users and let the data decide.
Shares: PostHog (relevance score 5)
See the full Run A/B tests on your site workflowTrack MVP user behavior
See what your users actually do, not what you hope they do. Set up in an afternoon.
Shares: PostHog (relevance score 3)
Track MVP user behavior setup guideShip landing page today
Go live today, not next week. From blank page to launched in hours.
Explore the Ship landing page today stackAccept payments online
Start getting paid. Everything wired together so nothing falls through the cracks.
How to build Accept payments onlineBrowse more stacks by category
Have a better stack?
Share your favorite tool combination and help other builders.