Hacker
Prarabdha Srivastava
@prarabdha
Projects
pgsmith
Flagsmith Experimentation HackathonNov 2026
pgsmith is a Postgres extension that evaluates Flagsmith feature flags inside the database, with the same answers as Flagsmith's own engine. Flagsmith's SDKS live in your application, but a lot of product logic lives in the database: row-level security policies, search ranking queries, nightly backfills, reports. None of that code can call an SDK, so it can't see your flags. With pgsmith, a policy or query reads a flag in the same statement that reads your data, with no network call. Who would use it: teams on Supabase or self-hosted Postgres who use Flagsmith and want flags in policies, ranking, batch jobs and analytics. How it works: - It syncs each Flagsmith environment into Postgres, through Flagsmith's webhooks or, on Supabase, from inside the database with pg_cron. - It compiles the configuration into SQL that the query planner inlines, so evaluation is fast: 1M users _ 50 flags in 6 seconds. - It installs with one command on Supabase or RDS, and on any PostgreSQL 14_18. It also includes FlagShift, a "terraform plan" for flag changes. It shows which of your real users a change would move before you ship it, which gives open-source Flagsmith a review step.