Paste a user as JSON and watch every flag decide, rule by rule: each condition ticks or crosses, the winning rule lights up, later ones grey out, and the served variant swaps in. Broken JSON and wrong types get called out instead of quietly failing.
akafeature flags·flag debugger·evaluation
Powered by Qnot · the rules, matching and serialisation are Qnot; this is the UI on top.
Run this in any project set up for the shadcn CLI. It copies the Flag Playground source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/flag-playground.jsonImport it and render it. Every prop has a typed default, so it works straight away, and you pass your own data when you’re ready.
import { FlagPlayground } from "@/components/flag-playground";
export default function Page() {
return <FlagPlayground />;
}A free React component in the Filters collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Flag Playground source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| fieldsrequired | Fields | — |
| flagsrequired | PlaygroundFlag[] | — |
| presetsrequired | ContextPreset[] | — |
| className | string | — |