SDK + evaluate API

The hosted evaluate endpoint uses the seed catalog. Local workspace edits stay in the browser.

POST /api/evaluate

curl -s /api/evaluate -H 'content-type: application/json' -d '{"flag":"billing.checkout_v2","env":"production","user":{"userId":"user_42","email":"maya@flaglane.dev"}}'

Tiny client

export async function flag(key, user) {
  const res = await fetch("/api/evaluate", {
    method: "POST",
    headers: { "content-type": "application/json" },
    body: JSON.stringify({ flag: key, env: "production", user }),
  });
  const json = await res.json();
  return json.value;
}