Hacker
Siddhanto Goswami
@siddhanto
Projects
Flagsmith Experiment Starter: self-hosted A/B testing in 4 commands
Flagsmith Experimentation HackathonNov 2026
1. We built Flagsmith Experiment Starter, a starter kit that takes a developer from zero to a running A/B experiment on self-hosted, open-source Flagsmith in four commands. Setting up an experiment on self-hosted Flagsmith is a lot of manual work: running it in Docker, creating a multivariate flag with variants, a conversion metric and an experiment through the API, wiring the SDK to the self-hosted URLs (a common pitfall is events silently going to Flagsmith Cloud), and generating test traffic. Our kit automates all of it and documents the gotchas we hit. It also adds what we found missing on our self-hosted instance: Flagsmith recorded exposures and conversions, but its own win-probability calculation stayed on "Collecting data". The kit calculates a Bayesian win probability from the same data and labels it clearly as "Computed by this kit". 2. USERS -> Developers and small teams who self-host Flagsmith and want to try experimentation, or who want a working template to copy for their own app. How it works: 1. Start Flagsmith with Docker. 2. Run the bootstrap script. It creates the project, a multivariate flag, a conversion metric and the experiment through the Management API, and it is safe to run twice. 3. A Next.js demo app shows a button whose text depends on the variant Flagsmith assigns. Exposures are recorded automatically and clicks are sent as conversion events to our self-hosted events endpoint. 4. A traffic simulator sends visitors with different click rates, so you get results without real users. 5. The app shows exposures, conversions, conversion rate and win probability per variant, plus a flag-state page that compares one flag across environments and flags drift. To reuse it, change the flag name, variants and metric in the bootstrap script and the component, and you have an experiment running on your own Flagsmith. All traffic in the demo is simulated.
Curved Bananas@amritkn2244,@coderkanha47,@soovam