Hacker

Raja Athiban P

@athiban_32

Joined Nov 2026Database Engineer at Mydbops LLPIndia

Projects

  • flag-debt: find forgotten feature flags and experiments in self-hosted Flagsmith

    Flagsmith Experimentation HackathonNov 2026

    Feature flags are cheap to add and easy to forget. After a few months a project has flags nobody reads, finished experiments whose losing variants are still in the code, and typos in flag keys that fail silently. Flagsmith knows the flags and the repository knows the code, but nothing connects the two. flag-debt connects them. It reads a Flagsmith project through the Admin API (read only), scans the codebase for flag reads (including flags read through TypeScript enums, Python Enums and constant objects), and reports: - experiments running on flags no code reads, which can never get a result - completed experiments whose losing branches are still in the code - flag keys that don't exist in Flagsmith, with a "did you mean" - archived flags still read - flags fully on or off everywhere for weeks - flags on in production only Each finding comes with the fix and the exact lines. It's for any team using Flagsmith, self-hosted or Cloud. It runs as a zero-dependency CLI (npx github:Athiban-32/flag-debt), a GitHub Action that posts a sticky PR comment and can fail the check, an HTML flag-health dashboard with "Open in Flagsmith" links, and a --code-only inventory for repos without API access. On real code it scanned Flagsmith's own frontend (1,292 files, clean) and bcgov/mds (3,127 files), where it found 4 unused flag constants that I reported in bcgov/mds#4062.