Hacker
Selvakumar K
@selvakumark
Stack
- JavaScript
- Java
- Python
- Go
- Kotlin
- AI Agents
- PostgreSQL
- SQL
- Flask
- FastAPI
- REST APIs
Projects
FlagLens — Control Tower, IDE Lens, AST Reaper & Canary Watchdog for Flagsmith
Flagsmith Experimentation HackathonNov 2026
**FlagLens** transforms Open-Source Flagsmith from a browser dashboard into an end-to-end developer ecosystem—solving dashboard tab-switching, string-literal flag typos, stale zombie-flag technical debt, and risky production rollouts. ### What FlagLens Includes 1. **Standalone Control Tower Web Console (`npm run ui`):** - **Multi-Environment Flag Matrix:** Toggle flags across Development and Production in real time, inspect JSON remote configs, and visualize multivariate traffic splits. - **Multi-Language Codebase Map:** AST-scans both **TypeScript/React** and **Python** services (`billing.py`) to map every flag call down to its exact file and line number, computing a **Flag Health Score**. - **AST Reaper Studio:** Previews surgical red/green diffs and cleanly prunes stale `if/else`, ternary, and JSX `&&` flag branches without reformatting unrelated code, with one-click Git branch commits. - **Canary Watchdog & Auto-Rollback:** Monitors live runtime telemetry (`POST /api/telemetry`) and automatically disables crashing flags in Flagsmith when error rates cross threshold. 2. **VS Code / Antigravity IDE Extension (`packages/vscode-ext` + `.vsix`):** - Inline **CodeLens** environment status badges, one-click **Toggle in Development**, and **Prune Flag** actions. - Rich **Hover Cards** showing remote config JSON and multivariate percentages. - Levenshtein typo diagnostics (`"Did you mean dark_mode_beta?"`) with one-click Quick Fixes + **FlagLens Explorer** sidebar. 3. **Type-Safe Codegen & CLI (`@flaglens/cli`):** - `flaglens generate` infers strict TypeScript interfaces from JSON remote configs and literal unions from multivariate flags. - `flaglens status`, `flaglens toggle`, and `flaglens reap --pr` automate terminal and CI workflows. 4. **Self-Hosted Open-Source Flagsmith Ready:** - Includes `docker-compose.yml` for local open-source Flagsmith (`http://localhost:8000/api/v1`), configurable `FLAGSMITH_BASE_URL`, full pagination + `429` backoff + TTL snapshot caching, automatic Feature Versioning v2 + legacy v1 compatibility, and a GitHub Actions CI workflow (`.github/workflows/flaglens-ci.yml`).
Dr. Engineer@saibalakrish10