Project 37 of 84
FlagPilot
Self-hosted feature-flag platform in the style of LaunchDarkly (repo/package name rollkit; first marketed as FlagPilot, now presented as Rollkit on the new marketing site and auth-email brand): organizations, projects and environments, typed flags with targeting rules, segments and deterministic percentage rollouts, an audit log with restore, and a Node SDK that evaluates locally.
- Status
- Shipped
- Last activity
- 2026
- Live
- Stack
- TypeScript
- Node
- pnpm workspaces
- Hono
- Zod
- Drizzle ORM
- PostgreSQL / Supabase Postgres
- Next.js
Highlights
- Designed and shipped FlagPilot, a self-hosted LaunchDarkly-style feature-flag platform, from first commit to production in 12 days (2026-11-02 to 2026-11-14). It spans a Hono management API, a separate SDK delivery service, a Next.js 16 dashboard, a marketing site and a Node SDK, built in 51 PRs.
- Built a shared deterministic evaluation engine (@rollkit/eval) with golden vectors, used by the Node SDK, the delivery service and the dashboard debugger, so a flag evaluates the same way wherever it runs.
- Designed poll-first flag delivery on immutable per-environment snapshots (ETag/304, key revocation within 30 s). Load-tested optional SSE push over Postgres LISTEN/NOTIFY and shipped it disabled after it missed the p99 < 2 s gate (4,736 ms at 1,000 streams).
- Took the platform to production across Vercel (dashboard), CapRover on Hostinger with ECR images (API and delivery), Supabase Postgres and a Terraform-managed Zitadel OIDC/PKCE org, with secrets flowing from 1Password to AWS SSM and Vercel.
- Implemented secure org onboarding with join requests and DNS TXT-proven domain discovery. Email-verification state fails closed after 1 hour, following an internal security review.
- Built a Redis/Upstash-backed refresh-token lock so multiple Vercel instances cannot invalidate a Zitadel session by rotating the same refresh token at once.
- Shipped a static marketing site whose claims and catalog tests parse the SDK, evaluation engine and OpenAPI specs and fail the build when copy drifts from the code.
- Expanded Playwright coverage to 40 spec files (PR #35: +8,855/-451 lines across 192 files), with catalog test ids, page objects and state-attribute waits. Moved e2e to a manually dispatched, report-only workflow on self-hosted runners (ADR).
- Added uniform pagination and search (page/per_page or offset/limit, plus q) with one response envelope across every list endpoint, and paged, searchable member, invitation and join-request lists in the dashboard.
- Diagnosed a production sign-in failure where every token was rejected: added safe rejection-reason logging, traced it to a missing JWKS URL, and fixed it through the secrets pipeline and an ansible redeploy, verified with a real signed-in API call.
- Added uniform pagination and search (page/per_page or offset/limit, plus q) with one response envelope across every list endpoint except the cursor-based audit feed, and paged, searchable member, invitation and join-request lists in the dashboard.
- Diagnosed a production sign-in failure where API requests were rejected: added safe token-rejection-reason logging, traced it to a missing explicit AUTH_JWKS_URL, and fixed it through the secrets scripts and a pinned v0.1.2 API image; the owner then confirmed a working sign-in.
- Added production hardening to the platform: a /ready endpoint that does one real DB round-trip for uptime monitoring (#47) and web security headers (nosniff, strict-origin-when-cross-origin referrer policy, frame-ancestors 'none', restrictive permissions policy) (#49).
- Provisioned a verified SES sending identity for product auth email (Easy DKIM, custom MAIL FROM, Cloudflare SPF/DMARC) as a Terraform root that reuses a shared, From-address-scoped sender instead of minting new IAM credentials.
- Built and shipped a cinematic marketing site for Rollkit (PR #53): a scroll-scrubbed hero video with a reduced-motion fallback, real product screenshots and an interactive flag switchboard, deployed by prebuilt Vercel deploy to the product's root domain.
- Ran a browser smoke test of the production app after the sign-in fix, covering flag create and toggle, the concurrent-edit conflict banner, the audit log, SDK delivery caching (200/304) and key revocation (401).