Hacker
Biprayan Choudhuri
@code_neuron58
Projects
FlagLens for Flagsmith
Flagsmith Experimentation HackathonNov 2026
FlagLens is a free, open-source VS Code extension for Flagsmith, built for self-hosted Flagsmith. It lets you play a full Toggle Wars round without leaving the editor: create a flag, pick a metric, split the traffic, ship the winner, and then clean up the code. The problem: feature flags fail silently. A mistyped flag key returns false, so the feature never ships. A mistyped metric event (trackEvent('Purchase') against a metric on "purchase") counts nothing, so an experiment runs for days and measures nothing. And every change means switching to the dashboard. How it works: FlagLens reads your flags, metrics and experiments from the Flagsmith Admin API and checks your code as you type. It shows live flag states in every environment (hover, CodeLens, sidebar) and warns about unknown flag keys and case-mismatched metric events, with one-click fixes. "Wrap as A/B Test" creates a multivariate flag and writes the experiment check, "Start Experiment" picks the metric and the split, and an experiment card and panel show conversions, lift, the 95% credible interval and the chance to beat control. "Roll out the winner" ends the experiment, and "Clean Up" removes the A/B check from the code, keeps the winning branch and archives the flag. Every write asks first, production asks twice, and winners are only named at 95%. Who would use it: any developer team using Flagsmith, especially teams that self-host it. It's on the VS Code Marketplace and Open VSX, and the repo has a one-command Docker demo.