FeatureFlags
Ship features safely with instant rollbacks. Percentage rollouts, user targeting, and environment overrides built in.
Key endpoints
POST /v1/flags— Create a flagGET /v1/flags— List flagsGET /v1/flags/evaluate— Evaluate flags for a contextPATCH /v1/flags/:id— Update a flagDELETE /v1/flags/:id— Delete a flag
curl
bash
# Evaluate flags "text-[var(--color-info)] font-medium">for a usercurl "https://api.luxkern.com/v1/flags/evaluate?user_id=usr_123&env=production" \ -H "Authorization: Bearer lxk_live_xxx"Node.js (with SDK)
js
"text-[var(--color-info)] font-medium">import { LuxkernFlags } "text-[var(--color-info)] font-medium">from "@luxkern/flags"; "text-[var(--color-info)] font-medium">const flags = "text-[var(--color-info)] font-medium">new LuxkernFlags({ apiKey: "lxk_live_xxx" }); "text-[var(--color-info)] font-medium">const isEnabled = "text-[var(--color-info)] font-medium">await flags.isEnabled("">new-checkout", { userId: "usr_123", env: "production",}); "text-[var(--color-info)] font-medium">if (isEnabled) { // Show "text-[var(--color-info)] font-medium">new checkout flow}