Hacker

Karthikeyan. H

@hkarthi10

Joined Nov 2026Student at Anna UniversityIndia

Projects

  • Flight Check for Flagsmith

    Flagsmith Experimentation HackathonNov 2026

    Self-hosted Flagsmith experiments can look healthy even when their events never arrive. SDKs send events to Flagsmith Cloud by default, so an application can run perfectly while its experiment data goes to the wrong destination without any visible error. Flight Check is a command-line tool that helps detect and diagnose these silent event-pipeline failures in self-hosted Flagsmith environments. Its `doctor` command validates the API Key, API URL, and Events URL to ensure they all belong to the same environment (local or cloud). It then sends a real synthetic event to the configured Events URL and prints PASS/FAIL checks with actionable fix hints, ending with either `RESULT: READY` or `RESULT: NOT READY`. It also includes `plan` for rough sample-size and experiment-duration estimates, `guard` for checking per-arm bad-event rates and reporting experiment health to Feature Health, and a simulator for generating experiment traffic. Flight Check is designed for developers who self-host Flagsmith and want to run reliable feature experiments. Developers can get started using: `npx @hkarthi10/flagsmith-flight-check init` They can then run the CLI's `doctor` command to validate their configuration and test event delivery. The doctor checks the API URL, API reachability, Events URL, and environment key. It then sends a synthetic event using a POST request to `<eventsUrl>v1/events`. I tested this against a real local Flagsmith instance: - The synthetic event was accepted with HTTP 202. - The Warehouse's "Total events received" count increased by exactly one for each run. - When I pointed the Events URL to Flagsmith Cloud, the request returned HTTP 403 with "Unknown environment key". This demonstrated that Flight Check could distinguish successful local event delivery from an incorrectly configured cloud destination. The CLI also supports `--ci` and `--json` modes, allowing developers to integrate configuration and event-pipeline checks into automated CI workflows.