[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-openai-vercel-flags":3,"mdc--kemm5k-key":30,"related-repo-openai-vercel-flags":3668,"related-org-openai-vercel-flags":3790},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":19,"repoUrl":20,"updatedAt":21,"license":22,"forks":23,"topics":24,"repo":25,"sourceUrl":28,"mdContent":29},"vercel-flags","manage feature flags with Vercel Flags","Vercel Flags guidance — feature flags platform with unified dashboard, Flags Explorer, gradual rollouts, A\u002FB testing, and provider adapters. Use when implementing feature flags, experimentation, or staged rollouts.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"openai","OpenAI","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fopenai.png",[12,16],{"name":13,"slug":14,"type":15},"Vercel","vercel","tag",{"name":17,"slug":18,"type":15},"Feature Flags","feature-flags",3992,"https:\u002F\u002Fgithub.com\u002Fopenai\u002Fplugins","2026-04-06T18:41:12.375686",null,465,[],{"repoUrl":20,"stars":19,"forks":23,"topics":26,"description":27},[],"OpenAI Plugins","https:\u002F\u002Fgithub.com\u002Fopenai\u002Fplugins\u002Ftree\u002FHEAD\u002Fplugins\u002Fvercel\u002Fskills\u002Fvercel-flags","---\nname: vercel-flags\ndescription: Vercel Flags guidance — feature flags platform with unified dashboard, Flags Explorer, gradual rollouts, A\u002FB testing, and provider adapters. Use when implementing feature flags, experimentation, or staged rollouts.\nmetadata:\n  priority: 6\n  docs:\n    - \"https:\u002F\u002Fvercel.com\u002Fdocs\u002Fworkflow-collaboration\u002Ffeature-flags\"\n    - \"https:\u002F\u002Fflags-sdk.dev\"\n  sitemap: \"https:\u002F\u002Fvercel.com\u002Fsitemap\u002Fdocs.xml\"\n  pathPatterns:\n    - 'flags.ts'\n    - 'flags.js'\n    - 'src\u002Fflags.ts'\n    - 'src\u002Fflags.js'\n    - 'lib\u002Fflags\u002F**'\n    - 'src\u002Flib\u002Fflags\u002F**'\n    - 'lib\u002Fflags.*'\n    - 'src\u002Flib\u002Fflags.*'\n    - '.well-known\u002Fvercel\u002Fflags\u002F**'\n    - 'app\u002F.well-known\u002Fvercel\u002Fflags\u002F**'\n    - 'src\u002Fapp\u002F.well-known\u002Fvercel\u002Fflags\u002F**'\n  importPatterns:\n    - 'flags'\n    - 'flags\u002Fnext'\n    - 'flags\u002Fsveltekit'\n    - '@vercel\u002Fflags'\n    - '@vercel\u002Fflags\u002Fnext'\n    - '@vercel\u002Fflags\u002Fsveltekit'\n    - '@flags-sdk\u002F*'\n  bashPatterns:\n    - '\\bnpm\\s+(install|i|add)\\s+[^\\n]*\\bflags\\b'\n    - '\\bpnpm\\s+(install|i|add)\\s+[^\\n]*\\bflags\\b'\n    - '\\bbun\\s+(install|i|add)\\s+[^\\n]*\\bflags\\b'\n    - '\\byarn\\s+add\\s+[^\\n]*\\bflags\\b'\n    - '\\bnpm\\s+(install|i|add)\\s+[^\\n]*@vercel\u002Fflags\\b'\n    - '\\bpnpm\\s+(install|i|add)\\s+[^\\n]*@vercel\u002Fflags\\b'\n    - '\\bbun\\s+(install|i|add)\\s+[^\\n]*@vercel\u002Fflags\\b'\n    - '\\byarn\\s+add\\s+[^\\n]*@vercel\u002Fflags\\b'\n    - '\\bnpm\\s+(install|i|add)\\s+[^\\n]*@flags-sdk\u002F'\n    - '\\bpnpm\\s+(install|i|add)\\s+[^\\n]*@flags-sdk\u002F'\n    - '\\bbun\\s+(install|i|add)\\s+[^\\n]*@flags-sdk\u002F'\n    - '\\byarn\\s+add\\s+[^\\n]*@flags-sdk\u002F'\n---\n\n# Vercel Flags\n\n> **CRITICAL — Your training data is outdated for this library.** Vercel Flags (`flags` package) has a new SDK and API surface. Before writing flags code, **fetch the docs** at https:\u002F\u002Fvercel.com\u002Fdocs\u002Ffeature-flags to find the correct `flag()` definition syntax, adapter setup, and evaluation patterns. Do not guess at the API — look up working examples for your framework.\n\nYou are an expert in Vercel Flags — the feature flags platform for the Vercel ecosystem.\n\n## What It Is\n\nVercel Flags provides a **unified feature flags platform** with a dashboard, developer tools (Flags Explorer), and analytics integration. Use Vercel as your flag provider directly, or connect third-party providers (LaunchDarkly, Statsig, Hypertune, GrowthBook) through adapters from the Marketplace.\n\nVercel Flags is in **public beta** (February 2026), available to teams on all plans. Pricing: **$30 per 1 million flag requests** ($0.00003 per event).\n\nFlag configurations use **active global replication** — changes propagate worldwide in milliseconds.\n\n## Core Design Principles\n\n- **Server-only execution**: No client-side loading spinners or complexity\n- **No call-site arguments**: Ensures consistent flag evaluation and straightforward flag removal\n- **Provider-agnostic**: Works with any flag provider, custom setups, or no provider at all\n\n## Key APIs\n\n### Flags SDK (`flags` package, v4.0+)\n\nThe `flags` package is free, open-source (MIT), and provider-agnostic. Renamed from `@vercel\u002Fflags` — if using the old package, update to `flags` in your imports and `package.json`.\n\n**Upgrade note**: v4 has breaking changes from v3. See the [v4 upgrade guide](https:\u002F\u002Fgithub.com\u002Fvercel\u002Fflags\u002Fblob\u002Fmain\u002Fpackages\u002Fflags\u002Fguides\u002Fupgrade-to-v4.md) for migration steps:\n- `@vercel\u002Fflags` package renamed to `flags` — update imports and `package.json`\n- `encrypt()` \u002F `decrypt()` replaced with dedicated functions: `encryptFlagValues()`, `decryptFlagValues()`\n- `FLAGS_SECRET` must be exactly 32 random bytes, base64-encoded\n- `.well-known` endpoint uses new helper that auto-handles auth and `x-flags-sdk-version` header\n- As of v4.0.3, declaring a flag without a `decide` function (or with an adapter missing `decide`) throws an error at declaration time\n\n```ts\nimport { flag } from 'flags\u002Fnext'; \u002F\u002F Framework adapters: flags\u002Fnext, flags\u002Fsveltekit\n\n\u002F\u002F Define a boolean flag\nexport const showNewCheckout = flag({\n  key: 'show-new-checkout',\n  description: 'Enable the redesigned checkout flow',\n  decide: () => false, \u002F\u002F default value\n});\n\n\u002F\u002F Define a multi-variant flag\nexport const theme = flag({\n  key: 'theme',\n  options: [\n    { value: 'light', label: 'Light Theme' },\n    { value: 'dark', label: 'Dark Theme' },\n    { value: 'auto', label: 'Auto' },\n  ],\n  decide: () => 'auto',\n});\n\n\u002F\u002F Read flag values (Server Components, Route Handlers, Server Actions)\nconst isEnabled = await showNewCheckout();\nconst currentTheme = await theme();\n```\n\n### Vercel Adapter (`@flags-sdk\u002Fvercel`)\n\nConnects the Flags SDK to Vercel Flags as the provider (reads `FLAGS` env var):\n\n```ts\nimport { flag, dedupe } from 'flags\u002Fnext';\nimport { vercelAdapter } from '@flags-sdk\u002Fvercel';\n\ntype Entities = {\n  user?: { id: string; email: string; plan: string };\n  team?: { id: string; name: string };\n};\n\n\u002F\u002F Dedupe ensures identify runs once per request\nconst identify = dedupe(async (): Promise\u003CEntities> => {\n  const session = await getSession();\n  return {\n    user: session?.user ? {\n      id: session.user.id,\n      email: session.user.email,\n      plan: session.user.plan,\n    } : undefined,\n  };\n});\n\nexport const premiumFeature = flag\u003Cboolean, Entities>({\n  key: 'premium-feature',\n  adapter: vercelAdapter(), \u002F\u002F reads FLAGS env var automatically\n  identify,\n});\n```\n\n**Environment variables**:\n- `FLAGS` — SDK Key (auto-provisioned when you create your first flag)\n- `FLAGS_SECRET` — 32 random bytes, base64-encoded; encrypts overrides and authenticates Flags Explorer\n\n### Flags Explorer Setup (GA)\n\nThe Flags Explorer is **generally available** (part of the Vercel Toolbar). It lets developers override flags in their browser session without code changes.\n\n**App Router** — create the discovery endpoint:\n\n```ts\n\u002F\u002F app\u002F.well-known\u002Fvercel\u002Fflags\u002Froute.ts\nimport { createFlagsDiscoveryEndpoint, getProviderData } from 'flags\u002Fnext';\nimport * as flags from '..\u002F..\u002F..\u002F..\u002Fflags';\n\nexport const GET = createFlagsDiscoveryEndpoint(() => getProviderData(flags));\n```\n\n**Pages Router** — API route + rewrite:\n\n```ts\n\u002F\u002F pages\u002Fapi\u002Fvercel\u002Fflags.ts\nimport { verifyAccess, version } from 'flags';\nimport { getProviderData } from 'flags\u002Fnext';\nimport * as flags from '..\u002F..\u002F..\u002Fflags';\n\nexport default async function handler(req, res) {\n  const access = await verifyAccess(req.headers['authorization']);\n  if (!access) return res.status(401).json(null);\n  res.setHeader('x-flags-sdk-version', version);\n  return res.json(getProviderData(flags));\n}\n```\n\n```js\n\u002F\u002F next.config.js (rewrite)\nmodule.exports = {\n  async rewrites() {\n    return [{ source: '\u002F.well-known\u002Fvercel\u002Fflags', destination: '\u002Fapi\u002Fvercel\u002Fflags' }];\n  },\n};\n```\n\n### Precompute Pattern (Static + Personalized)\n\nGenerate static page variants per flag combination, serve via middleware:\n\n```ts\nexport const layoutVariant = flag({\n  key: 'layout-variant',\n  options: [{ value: 'a' }, { value: 'b' }],\n  decide: () => 'a',\n});\n\nexport const precompute = [layoutVariant];\n```\n\nKey APIs: `precompute()`, `evaluate()`, `serialize()`, `getPrecomputed()`, `generatePermutations()`\n\n### Custom Adapter Interface\n\n```ts\nexport function createExampleAdapter() {\n  return function exampleAdapter\u003CValueType, EntitiesType>(): Adapter\u003CValueType, EntitiesType> {\n    return {\n      origin(key) { return `https:\u002F\u002Fexample.com\u002Fflags\u002F${key}`; },\n      async decide({ key }): Promise\u003CValueType> { return false as ValueType; },\n    };\n  };\n}\n```\n\n## Flags vs Edge Config\n\n| Need | Use | Why |\n|------|-----|-----|\n| Gradual rollouts, A\u002FB testing, targeting | **Vercel Flags** | Dashboard, analytics, Flags Explorer, segments |\n| Third-party provider integration | **Vercel Flags** + adapter | Unified view across providers |\n| Ultra-low-latency config reads (non-flag) | **Edge Config** directly | Sub-ms reads, no compute overhead |\n| Simple config without rollout logic | **Edge Config** directly | Lighter weight |\n\n**Important**: Vercel Flags is the recommended approach for feature flags. Edge Config is the underlying low-latency storage some adapters use, but developers should use the Flags platform (not raw Edge Config) for flag use cases — it provides targeting rules, segments, percentage rollouts, observability, and Flags Explorer.\n\n## Provider Adapters\n\n**Featured** (Marketplace integration, Edge Config for low latency):\n- `@flags-sdk\u002Fvercel` — Vercel as provider\n- Statsig, Hypertune, GrowthBook\n\n**Additional** (published under `@flags-sdk` npm scope):\n- LaunchDarkly, ConfigCat, DevCycle, Flipt, Reflag, PostHog, Flagsmith\n\n**OpenFeature adapter**: The `@flags-sdk\u002Fopenfeature` adapter allows most Node.js OpenFeature Providers to work with the Flags SDK, bridging the OpenFeature ecosystem (AB Tasty, CloudBees, Confidence by Spotify, and more)\n\n## Key Features\n\n- **Unified Dashboard** at `https:\u002F\u002Fvercel.com\u002F{team}\u002F{project}\u002Fflags`: All flags across all providers in one place\n- **Flags Explorer (GA)**: Override flags locally via Vercel Toolbar (no code changes)\n- **CLI Management**: `vercel flags add`, `vercel flags sdk-keys ls`, and full flag lifecycle from the terminal\n- **Entities & Segments**: Define user\u002Fteam attributes, create reusable targeting segments\n- **Analytics Integration**: Track flag impact via Web Analytics and Runtime Logs\n- **Drafts Workflow**: Define in code → deploy → Vercel detects via Discovery Endpoint → promote when ready\n- **Framework Support**: Next.js (App Router + Pages Router + Routing Middleware) and SvelteKit\n- **Concurrent Evaluation Fix** (v1.0.1): `Promise.all` flag evaluations no longer trigger duplicate network requests — initialization is properly shared\n\n## When to Use\n\n- Gradual feature rollouts with percentage targeting\n- A\u002FB testing and experimentation\n- Per-environment flag configuration (production vs preview vs development)\n- Trunk-based development (ship code behind flags)\n- Consolidating multiple flag providers into one dashboard\n\n## When NOT to Use\n\n- Simple static config without targeting → use Edge Config directly\n- Runtime configuration not related to features → use environment variables\n- Server-side only toggles with no UI → consider environment variables\n\n## References\n\n- 📖 docs: https:\u002F\u002Fvercel.com\u002Fdocs\u002Fflags\n- 📖 Flags SDK: https:\u002F\u002Fflags-sdk.dev\n- 📖 SDK reference: https:\u002F\u002Fvercel.com\u002Fdocs\u002Fflags\u002Fflags-sdk-reference\n- 📖 GitHub: https:\u002F\u002Fgithub.com\u002Fvercel\u002Fflags\n",{"data":31,"body":71},{"name":4,"description":6,"metadata":32},{"priority":33,"docs":34,"sitemap":37,"pathPatterns":38,"importPatterns":50,"bashPatterns":58},6,[35,36],"https:\u002F\u002Fvercel.com\u002Fdocs\u002Fworkflow-collaboration\u002Ffeature-flags","https:\u002F\u002Fflags-sdk.dev","https:\u002F\u002Fvercel.com\u002Fsitemap\u002Fdocs.xml",[39,40,41,42,43,44,45,46,47,48,49],"flags.ts","flags.js","src\u002Fflags.ts","src\u002Fflags.js","lib\u002Fflags\u002F**","src\u002Flib\u002Fflags\u002F**","lib\u002Fflags.*","src\u002Flib\u002Fflags.*",".well-known\u002Fvercel\u002Fflags\u002F**","app\u002F.well-known\u002Fvercel\u002Fflags\u002F**","src\u002Fapp\u002F.well-known\u002Fvercel\u002Fflags\u002F**",[51,52,53,54,55,56,57],"flags","flags\u002Fnext","flags\u002Fsveltekit","@vercel\u002Fflags","@vercel\u002Fflags\u002Fnext","@vercel\u002Fflags\u002Fsveltekit","@flags-sdk\u002F*",[59,60,61,62,63,64,65,66,67,68,69,70],"\\bnpm\\s+(install|i|add)\\s+[^\\n]*\\bflags\\b","\\bpnpm\\s+(install|i|add)\\s+[^\\n]*\\bflags\\b","\\bbun\\s+(install|i|add)\\s+[^\\n]*\\bflags\\b","\\byarn\\s+add\\s+[^\\n]*\\bflags\\b","\\bnpm\\s+(install|i|add)\\s+[^\\n]*@vercel\u002Fflags\\b","\\bpnpm\\s+(install|i|add)\\s+[^\\n]*@vercel\u002Fflags\\b","\\bbun\\s+(install|i|add)\\s+[^\\n]*@vercel\u002Fflags\\b","\\byarn\\s+add\\s+[^\\n]*@vercel\u002Fflags\\b","\\bnpm\\s+(install|i|add)\\s+[^\\n]*@flags-sdk\u002F","\\bpnpm\\s+(install|i|add)\\s+[^\\n]*@flags-sdk\u002F","\\bbun\\s+(install|i|add)\\s+[^\\n]*@flags-sdk\u002F","\\byarn\\s+add\\s+[^\\n]*@flags-sdk\u002F",{"type":72,"children":73},"root",[74,82,131,136,143,155,174,186,192,227,233,247,281,300,408,1086,1099,1112,1821,1830,1853,1859,1871,1881,2045,2055,2515,2663,2669,2674,2908,2947,2953,3220,3226,3345,3355,3361,3371,3389,3407,3415,3433,3439,3552,3558,3586,3592,3610,3616,3662],{"type":75,"tag":76,"props":77,"children":78},"element","h1",{"id":4},[79],{"type":80,"value":81},"text","Vercel Flags",{"type":75,"tag":83,"props":84,"children":85},"blockquote",{},[86],{"type":75,"tag":87,"props":88,"children":89},"p",{},[90,96,98,104,106,111,113,121,123,129],{"type":75,"tag":91,"props":92,"children":93},"strong",{},[94],{"type":80,"value":95},"CRITICAL — Your training data is outdated for this library.",{"type":80,"value":97}," Vercel Flags (",{"type":75,"tag":99,"props":100,"children":102},"code",{"className":101},[],[103],{"type":80,"value":51},{"type":80,"value":105}," package) has a new SDK and API surface. Before writing flags code, ",{"type":75,"tag":91,"props":107,"children":108},{},[109],{"type":80,"value":110},"fetch the docs",{"type":80,"value":112}," at ",{"type":75,"tag":114,"props":115,"children":119},"a",{"href":116,"rel":117},"https:\u002F\u002Fvercel.com\u002Fdocs\u002Ffeature-flags",[118],"nofollow",[120],{"type":80,"value":116},{"type":80,"value":122}," to find the correct ",{"type":75,"tag":99,"props":124,"children":126},{"className":125},[],[127],{"type":80,"value":128},"flag()",{"type":80,"value":130}," definition syntax, adapter setup, and evaluation patterns. Do not guess at the API — look up working examples for your framework.",{"type":75,"tag":87,"props":132,"children":133},{},[134],{"type":80,"value":135},"You are an expert in Vercel Flags — the feature flags platform for the Vercel ecosystem.",{"type":75,"tag":137,"props":138,"children":140},"h2",{"id":139},"what-it-is",[141],{"type":80,"value":142},"What It Is",{"type":75,"tag":87,"props":144,"children":145},{},[146,148,153],{"type":80,"value":147},"Vercel Flags provides a ",{"type":75,"tag":91,"props":149,"children":150},{},[151],{"type":80,"value":152},"unified feature flags platform",{"type":80,"value":154}," with a dashboard, developer tools (Flags Explorer), and analytics integration. Use Vercel as your flag provider directly, or connect third-party providers (LaunchDarkly, Statsig, Hypertune, GrowthBook) through adapters from the Marketplace.",{"type":75,"tag":87,"props":156,"children":157},{},[158,160,165,167,172],{"type":80,"value":159},"Vercel Flags is in ",{"type":75,"tag":91,"props":161,"children":162},{},[163],{"type":80,"value":164},"public beta",{"type":80,"value":166}," (February 2026), available to teams on all plans. Pricing: ",{"type":75,"tag":91,"props":168,"children":169},{},[170],{"type":80,"value":171},"$30 per 1 million flag requests",{"type":80,"value":173}," ($0.00003 per event).",{"type":75,"tag":87,"props":175,"children":176},{},[177,179,184],{"type":80,"value":178},"Flag configurations use ",{"type":75,"tag":91,"props":180,"children":181},{},[182],{"type":80,"value":183},"active global replication",{"type":80,"value":185}," — changes propagate worldwide in milliseconds.",{"type":75,"tag":137,"props":187,"children":189},{"id":188},"core-design-principles",[190],{"type":80,"value":191},"Core Design Principles",{"type":75,"tag":193,"props":194,"children":195},"ul",{},[196,207,217],{"type":75,"tag":197,"props":198,"children":199},"li",{},[200,205],{"type":75,"tag":91,"props":201,"children":202},{},[203],{"type":80,"value":204},"Server-only execution",{"type":80,"value":206},": No client-side loading spinners or complexity",{"type":75,"tag":197,"props":208,"children":209},{},[210,215],{"type":75,"tag":91,"props":211,"children":212},{},[213],{"type":80,"value":214},"No call-site arguments",{"type":80,"value":216},": Ensures consistent flag evaluation and straightforward flag removal",{"type":75,"tag":197,"props":218,"children":219},{},[220,225],{"type":75,"tag":91,"props":221,"children":222},{},[223],{"type":80,"value":224},"Provider-agnostic",{"type":80,"value":226},": Works with any flag provider, custom setups, or no provider at all",{"type":75,"tag":137,"props":228,"children":230},{"id":229},"key-apis",[231],{"type":80,"value":232},"Key APIs",{"type":75,"tag":234,"props":235,"children":237},"h3",{"id":236},"flags-sdk-flags-package-v40",[238,240,245],{"type":80,"value":239},"Flags SDK (",{"type":75,"tag":99,"props":241,"children":243},{"className":242},[],[244],{"type":80,"value":51},{"type":80,"value":246}," package, v4.0+)",{"type":75,"tag":87,"props":248,"children":249},{},[250,252,257,259,264,266,271,273,279],{"type":80,"value":251},"The ",{"type":75,"tag":99,"props":253,"children":255},{"className":254},[],[256],{"type":80,"value":51},{"type":80,"value":258}," package is free, open-source (MIT), and provider-agnostic. Renamed from ",{"type":75,"tag":99,"props":260,"children":262},{"className":261},[],[263],{"type":80,"value":54},{"type":80,"value":265}," — if using the old package, update to ",{"type":75,"tag":99,"props":267,"children":269},{"className":268},[],[270],{"type":80,"value":51},{"type":80,"value":272}," in your imports and ",{"type":75,"tag":99,"props":274,"children":276},{"className":275},[],[277],{"type":80,"value":278},"package.json",{"type":80,"value":280},".",{"type":75,"tag":87,"props":282,"children":283},{},[284,289,291,298],{"type":75,"tag":91,"props":285,"children":286},{},[287],{"type":80,"value":288},"Upgrade note",{"type":80,"value":290},": v4 has breaking changes from v3. See the ",{"type":75,"tag":114,"props":292,"children":295},{"href":293,"rel":294},"https:\u002F\u002Fgithub.com\u002Fvercel\u002Fflags\u002Fblob\u002Fmain\u002Fpackages\u002Fflags\u002Fguides\u002Fupgrade-to-v4.md",[118],[296],{"type":80,"value":297},"v4 upgrade guide",{"type":80,"value":299}," for migration steps:",{"type":75,"tag":193,"props":301,"children":302},{},[303,325,358,369,388],{"type":75,"tag":197,"props":304,"children":305},{},[306,311,313,318,320],{"type":75,"tag":99,"props":307,"children":309},{"className":308},[],[310],{"type":80,"value":54},{"type":80,"value":312}," package renamed to ",{"type":75,"tag":99,"props":314,"children":316},{"className":315},[],[317],{"type":80,"value":51},{"type":80,"value":319}," — update imports and ",{"type":75,"tag":99,"props":321,"children":323},{"className":322},[],[324],{"type":80,"value":278},{"type":75,"tag":197,"props":326,"children":327},{},[328,334,336,342,344,350,352],{"type":75,"tag":99,"props":329,"children":331},{"className":330},[],[332],{"type":80,"value":333},"encrypt()",{"type":80,"value":335}," \u002F ",{"type":75,"tag":99,"props":337,"children":339},{"className":338},[],[340],{"type":80,"value":341},"decrypt()",{"type":80,"value":343}," replaced with dedicated functions: ",{"type":75,"tag":99,"props":345,"children":347},{"className":346},[],[348],{"type":80,"value":349},"encryptFlagValues()",{"type":80,"value":351},", ",{"type":75,"tag":99,"props":353,"children":355},{"className":354},[],[356],{"type":80,"value":357},"decryptFlagValues()",{"type":75,"tag":197,"props":359,"children":360},{},[361,367],{"type":75,"tag":99,"props":362,"children":364},{"className":363},[],[365],{"type":80,"value":366},"FLAGS_SECRET",{"type":80,"value":368}," must be exactly 32 random bytes, base64-encoded",{"type":75,"tag":197,"props":370,"children":371},{},[372,378,380,386],{"type":75,"tag":99,"props":373,"children":375},{"className":374},[],[376],{"type":80,"value":377},".well-known",{"type":80,"value":379}," endpoint uses new helper that auto-handles auth and ",{"type":75,"tag":99,"props":381,"children":383},{"className":382},[],[384],{"type":80,"value":385},"x-flags-sdk-version",{"type":80,"value":387}," header",{"type":75,"tag":197,"props":389,"children":390},{},[391,393,399,401,406],{"type":80,"value":392},"As of v4.0.3, declaring a flag without a ",{"type":75,"tag":99,"props":394,"children":396},{"className":395},[],[397],{"type":80,"value":398},"decide",{"type":80,"value":400}," function (or with an adapter missing ",{"type":75,"tag":99,"props":402,"children":404},{"className":403},[],[405],{"type":80,"value":398},{"type":80,"value":407},") throws an error at declaration time",{"type":75,"tag":409,"props":410,"children":415},"pre",{"className":411,"code":412,"language":413,"meta":414,"style":414},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { flag } from 'flags\u002Fnext'; \u002F\u002F Framework adapters: flags\u002Fnext, flags\u002Fsveltekit\n\n\u002F\u002F Define a boolean flag\nexport const showNewCheckout = flag({\n  key: 'show-new-checkout',\n  description: 'Enable the redesigned checkout flow',\n  decide: () => false, \u002F\u002F default value\n});\n\n\u002F\u002F Define a multi-variant flag\nexport const theme = flag({\n  key: 'theme',\n  options: [\n    { value: 'light', label: 'Light Theme' },\n    { value: 'dark', label: 'Dark Theme' },\n    { value: 'auto', label: 'Auto' },\n  ],\n  decide: () => 'auto',\n});\n\n\u002F\u002F Read flag values (Server Components, Route Handlers, Server Actions)\nconst isEnabled = await showNewCheckout();\nconst currentTheme = await theme();\n","ts","",[416],{"type":75,"tag":99,"props":417,"children":418},{"__ignoreMap":414},[419,479,489,498,538,571,600,639,658,666,675,708,737,755,817,875,933,946,982,998,1006,1015,1052],{"type":75,"tag":420,"props":421,"children":424},"span",{"class":422,"line":423},"line",1,[425,431,437,443,448,453,458,463,468,473],{"type":75,"tag":420,"props":426,"children":428},{"style":427},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[429],{"type":80,"value":430},"import",{"type":75,"tag":420,"props":432,"children":434},{"style":433},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[435],{"type":80,"value":436}," {",{"type":75,"tag":420,"props":438,"children":440},{"style":439},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[441],{"type":80,"value":442}," flag",{"type":75,"tag":420,"props":444,"children":445},{"style":433},[446],{"type":80,"value":447}," }",{"type":75,"tag":420,"props":449,"children":450},{"style":427},[451],{"type":80,"value":452}," from",{"type":75,"tag":420,"props":454,"children":455},{"style":433},[456],{"type":80,"value":457}," '",{"type":75,"tag":420,"props":459,"children":461},{"style":460},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[462],{"type":80,"value":52},{"type":75,"tag":420,"props":464,"children":465},{"style":433},[466],{"type":80,"value":467},"'",{"type":75,"tag":420,"props":469,"children":470},{"style":433},[471],{"type":80,"value":472},";",{"type":75,"tag":420,"props":474,"children":476},{"style":475},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[477],{"type":80,"value":478}," \u002F\u002F Framework adapters: flags\u002Fnext, flags\u002Fsveltekit\n",{"type":75,"tag":420,"props":480,"children":482},{"class":422,"line":481},2,[483],{"type":75,"tag":420,"props":484,"children":486},{"emptyLinePlaceholder":485},true,[487],{"type":80,"value":488},"\n",{"type":75,"tag":420,"props":490,"children":492},{"class":422,"line":491},3,[493],{"type":75,"tag":420,"props":494,"children":495},{"style":475},[496],{"type":80,"value":497},"\u002F\u002F Define a boolean flag\n",{"type":75,"tag":420,"props":499,"children":501},{"class":422,"line":500},4,[502,507,513,518,523,528,533],{"type":75,"tag":420,"props":503,"children":504},{"style":427},[505],{"type":80,"value":506},"export",{"type":75,"tag":420,"props":508,"children":510},{"style":509},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[511],{"type":80,"value":512}," const",{"type":75,"tag":420,"props":514,"children":515},{"style":439},[516],{"type":80,"value":517}," showNewCheckout ",{"type":75,"tag":420,"props":519,"children":520},{"style":433},[521],{"type":80,"value":522},"=",{"type":75,"tag":420,"props":524,"children":526},{"style":525},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[527],{"type":80,"value":442},{"type":75,"tag":420,"props":529,"children":530},{"style":439},[531],{"type":80,"value":532},"(",{"type":75,"tag":420,"props":534,"children":535},{"style":433},[536],{"type":80,"value":537},"{\n",{"type":75,"tag":420,"props":539,"children":541},{"class":422,"line":540},5,[542,548,553,557,562,566],{"type":75,"tag":420,"props":543,"children":545},{"style":544},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[546],{"type":80,"value":547},"  key",{"type":75,"tag":420,"props":549,"children":550},{"style":433},[551],{"type":80,"value":552},":",{"type":75,"tag":420,"props":554,"children":555},{"style":433},[556],{"type":80,"value":457},{"type":75,"tag":420,"props":558,"children":559},{"style":460},[560],{"type":80,"value":561},"show-new-checkout",{"type":75,"tag":420,"props":563,"children":564},{"style":433},[565],{"type":80,"value":467},{"type":75,"tag":420,"props":567,"children":568},{"style":433},[569],{"type":80,"value":570},",\n",{"type":75,"tag":420,"props":572,"children":573},{"class":422,"line":33},[574,579,583,587,592,596],{"type":75,"tag":420,"props":575,"children":576},{"style":544},[577],{"type":80,"value":578},"  description",{"type":75,"tag":420,"props":580,"children":581},{"style":433},[582],{"type":80,"value":552},{"type":75,"tag":420,"props":584,"children":585},{"style":433},[586],{"type":80,"value":457},{"type":75,"tag":420,"props":588,"children":589},{"style":460},[590],{"type":80,"value":591},"Enable the redesigned checkout flow",{"type":75,"tag":420,"props":593,"children":594},{"style":433},[595],{"type":80,"value":467},{"type":75,"tag":420,"props":597,"children":598},{"style":433},[599],{"type":80,"value":570},{"type":75,"tag":420,"props":601,"children":603},{"class":422,"line":602},7,[604,609,613,618,623,629,634],{"type":75,"tag":420,"props":605,"children":606},{"style":525},[607],{"type":80,"value":608},"  decide",{"type":75,"tag":420,"props":610,"children":611},{"style":433},[612],{"type":80,"value":552},{"type":75,"tag":420,"props":614,"children":615},{"style":433},[616],{"type":80,"value":617}," ()",{"type":75,"tag":420,"props":619,"children":620},{"style":509},[621],{"type":80,"value":622}," =>",{"type":75,"tag":420,"props":624,"children":626},{"style":625},"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC",[627],{"type":80,"value":628}," false",{"type":75,"tag":420,"props":630,"children":631},{"style":433},[632],{"type":80,"value":633},",",{"type":75,"tag":420,"props":635,"children":636},{"style":475},[637],{"type":80,"value":638}," \u002F\u002F default value\n",{"type":75,"tag":420,"props":640,"children":642},{"class":422,"line":641},8,[643,648,653],{"type":75,"tag":420,"props":644,"children":645},{"style":433},[646],{"type":80,"value":647},"}",{"type":75,"tag":420,"props":649,"children":650},{"style":439},[651],{"type":80,"value":652},")",{"type":75,"tag":420,"props":654,"children":655},{"style":433},[656],{"type":80,"value":657},";\n",{"type":75,"tag":420,"props":659,"children":661},{"class":422,"line":660},9,[662],{"type":75,"tag":420,"props":663,"children":664},{"emptyLinePlaceholder":485},[665],{"type":80,"value":488},{"type":75,"tag":420,"props":667,"children":669},{"class":422,"line":668},10,[670],{"type":75,"tag":420,"props":671,"children":672},{"style":475},[673],{"type":80,"value":674},"\u002F\u002F Define a multi-variant flag\n",{"type":75,"tag":420,"props":676,"children":678},{"class":422,"line":677},11,[679,683,687,692,696,700,704],{"type":75,"tag":420,"props":680,"children":681},{"style":427},[682],{"type":80,"value":506},{"type":75,"tag":420,"props":684,"children":685},{"style":509},[686],{"type":80,"value":512},{"type":75,"tag":420,"props":688,"children":689},{"style":439},[690],{"type":80,"value":691}," theme ",{"type":75,"tag":420,"props":693,"children":694},{"style":433},[695],{"type":80,"value":522},{"type":75,"tag":420,"props":697,"children":698},{"style":525},[699],{"type":80,"value":442},{"type":75,"tag":420,"props":701,"children":702},{"style":439},[703],{"type":80,"value":532},{"type":75,"tag":420,"props":705,"children":706},{"style":433},[707],{"type":80,"value":537},{"type":75,"tag":420,"props":709,"children":711},{"class":422,"line":710},12,[712,716,720,724,729,733],{"type":75,"tag":420,"props":713,"children":714},{"style":544},[715],{"type":80,"value":547},{"type":75,"tag":420,"props":717,"children":718},{"style":433},[719],{"type":80,"value":552},{"type":75,"tag":420,"props":721,"children":722},{"style":433},[723],{"type":80,"value":457},{"type":75,"tag":420,"props":725,"children":726},{"style":460},[727],{"type":80,"value":728},"theme",{"type":75,"tag":420,"props":730,"children":731},{"style":433},[732],{"type":80,"value":467},{"type":75,"tag":420,"props":734,"children":735},{"style":433},[736],{"type":80,"value":570},{"type":75,"tag":420,"props":738,"children":740},{"class":422,"line":739},13,[741,746,750],{"type":75,"tag":420,"props":742,"children":743},{"style":544},[744],{"type":80,"value":745},"  options",{"type":75,"tag":420,"props":747,"children":748},{"style":433},[749],{"type":80,"value":552},{"type":75,"tag":420,"props":751,"children":752},{"style":439},[753],{"type":80,"value":754}," [\n",{"type":75,"tag":420,"props":756,"children":758},{"class":422,"line":757},14,[759,764,769,773,777,782,786,790,795,799,803,808,812],{"type":75,"tag":420,"props":760,"children":761},{"style":433},[762],{"type":80,"value":763},"    {",{"type":75,"tag":420,"props":765,"children":766},{"style":544},[767],{"type":80,"value":768}," value",{"type":75,"tag":420,"props":770,"children":771},{"style":433},[772],{"type":80,"value":552},{"type":75,"tag":420,"props":774,"children":775},{"style":433},[776],{"type":80,"value":457},{"type":75,"tag":420,"props":778,"children":779},{"style":460},[780],{"type":80,"value":781},"light",{"type":75,"tag":420,"props":783,"children":784},{"style":433},[785],{"type":80,"value":467},{"type":75,"tag":420,"props":787,"children":788},{"style":433},[789],{"type":80,"value":633},{"type":75,"tag":420,"props":791,"children":792},{"style":544},[793],{"type":80,"value":794}," label",{"type":75,"tag":420,"props":796,"children":797},{"style":433},[798],{"type":80,"value":552},{"type":75,"tag":420,"props":800,"children":801},{"style":433},[802],{"type":80,"value":457},{"type":75,"tag":420,"props":804,"children":805},{"style":460},[806],{"type":80,"value":807},"Light Theme",{"type":75,"tag":420,"props":809,"children":810},{"style":433},[811],{"type":80,"value":467},{"type":75,"tag":420,"props":813,"children":814},{"style":433},[815],{"type":80,"value":816}," },\n",{"type":75,"tag":420,"props":818,"children":820},{"class":422,"line":819},15,[821,825,829,833,837,842,846,850,854,858,862,867,871],{"type":75,"tag":420,"props":822,"children":823},{"style":433},[824],{"type":80,"value":763},{"type":75,"tag":420,"props":826,"children":827},{"style":544},[828],{"type":80,"value":768},{"type":75,"tag":420,"props":830,"children":831},{"style":433},[832],{"type":80,"value":552},{"type":75,"tag":420,"props":834,"children":835},{"style":433},[836],{"type":80,"value":457},{"type":75,"tag":420,"props":838,"children":839},{"style":460},[840],{"type":80,"value":841},"dark",{"type":75,"tag":420,"props":843,"children":844},{"style":433},[845],{"type":80,"value":467},{"type":75,"tag":420,"props":847,"children":848},{"style":433},[849],{"type":80,"value":633},{"type":75,"tag":420,"props":851,"children":852},{"style":544},[853],{"type":80,"value":794},{"type":75,"tag":420,"props":855,"children":856},{"style":433},[857],{"type":80,"value":552},{"type":75,"tag":420,"props":859,"children":860},{"style":433},[861],{"type":80,"value":457},{"type":75,"tag":420,"props":863,"children":864},{"style":460},[865],{"type":80,"value":866},"Dark Theme",{"type":75,"tag":420,"props":868,"children":869},{"style":433},[870],{"type":80,"value":467},{"type":75,"tag":420,"props":872,"children":873},{"style":433},[874],{"type":80,"value":816},{"type":75,"tag":420,"props":876,"children":878},{"class":422,"line":877},16,[879,883,887,891,895,900,904,908,912,916,920,925,929],{"type":75,"tag":420,"props":880,"children":881},{"style":433},[882],{"type":80,"value":763},{"type":75,"tag":420,"props":884,"children":885},{"style":544},[886],{"type":80,"value":768},{"type":75,"tag":420,"props":888,"children":889},{"style":433},[890],{"type":80,"value":552},{"type":75,"tag":420,"props":892,"children":893},{"style":433},[894],{"type":80,"value":457},{"type":75,"tag":420,"props":896,"children":897},{"style":460},[898],{"type":80,"value":899},"auto",{"type":75,"tag":420,"props":901,"children":902},{"style":433},[903],{"type":80,"value":467},{"type":75,"tag":420,"props":905,"children":906},{"style":433},[907],{"type":80,"value":633},{"type":75,"tag":420,"props":909,"children":910},{"style":544},[911],{"type":80,"value":794},{"type":75,"tag":420,"props":913,"children":914},{"style":433},[915],{"type":80,"value":552},{"type":75,"tag":420,"props":917,"children":918},{"style":433},[919],{"type":80,"value":457},{"type":75,"tag":420,"props":921,"children":922},{"style":460},[923],{"type":80,"value":924},"Auto",{"type":75,"tag":420,"props":926,"children":927},{"style":433},[928],{"type":80,"value":467},{"type":75,"tag":420,"props":930,"children":931},{"style":433},[932],{"type":80,"value":816},{"type":75,"tag":420,"props":934,"children":936},{"class":422,"line":935},17,[937,942],{"type":75,"tag":420,"props":938,"children":939},{"style":439},[940],{"type":80,"value":941},"  ]",{"type":75,"tag":420,"props":943,"children":944},{"style":433},[945],{"type":80,"value":570},{"type":75,"tag":420,"props":947,"children":949},{"class":422,"line":948},18,[950,954,958,962,966,970,974,978],{"type":75,"tag":420,"props":951,"children":952},{"style":525},[953],{"type":80,"value":608},{"type":75,"tag":420,"props":955,"children":956},{"style":433},[957],{"type":80,"value":552},{"type":75,"tag":420,"props":959,"children":960},{"style":433},[961],{"type":80,"value":617},{"type":75,"tag":420,"props":963,"children":964},{"style":509},[965],{"type":80,"value":622},{"type":75,"tag":420,"props":967,"children":968},{"style":433},[969],{"type":80,"value":457},{"type":75,"tag":420,"props":971,"children":972},{"style":460},[973],{"type":80,"value":899},{"type":75,"tag":420,"props":975,"children":976},{"style":433},[977],{"type":80,"value":467},{"type":75,"tag":420,"props":979,"children":980},{"style":433},[981],{"type":80,"value":570},{"type":75,"tag":420,"props":983,"children":985},{"class":422,"line":984},19,[986,990,994],{"type":75,"tag":420,"props":987,"children":988},{"style":433},[989],{"type":80,"value":647},{"type":75,"tag":420,"props":991,"children":992},{"style":439},[993],{"type":80,"value":652},{"type":75,"tag":420,"props":995,"children":996},{"style":433},[997],{"type":80,"value":657},{"type":75,"tag":420,"props":999,"children":1001},{"class":422,"line":1000},20,[1002],{"type":75,"tag":420,"props":1003,"children":1004},{"emptyLinePlaceholder":485},[1005],{"type":80,"value":488},{"type":75,"tag":420,"props":1007,"children":1009},{"class":422,"line":1008},21,[1010],{"type":75,"tag":420,"props":1011,"children":1012},{"style":475},[1013],{"type":80,"value":1014},"\u002F\u002F Read flag values (Server Components, Route Handlers, Server Actions)\n",{"type":75,"tag":420,"props":1016,"children":1018},{"class":422,"line":1017},22,[1019,1024,1029,1033,1038,1043,1048],{"type":75,"tag":420,"props":1020,"children":1021},{"style":509},[1022],{"type":80,"value":1023},"const",{"type":75,"tag":420,"props":1025,"children":1026},{"style":439},[1027],{"type":80,"value":1028}," isEnabled ",{"type":75,"tag":420,"props":1030,"children":1031},{"style":433},[1032],{"type":80,"value":522},{"type":75,"tag":420,"props":1034,"children":1035},{"style":427},[1036],{"type":80,"value":1037}," await",{"type":75,"tag":420,"props":1039,"children":1040},{"style":525},[1041],{"type":80,"value":1042}," showNewCheckout",{"type":75,"tag":420,"props":1044,"children":1045},{"style":439},[1046],{"type":80,"value":1047},"()",{"type":75,"tag":420,"props":1049,"children":1050},{"style":433},[1051],{"type":80,"value":657},{"type":75,"tag":420,"props":1053,"children":1055},{"class":422,"line":1054},23,[1056,1060,1065,1069,1073,1078,1082],{"type":75,"tag":420,"props":1057,"children":1058},{"style":509},[1059],{"type":80,"value":1023},{"type":75,"tag":420,"props":1061,"children":1062},{"style":439},[1063],{"type":80,"value":1064}," currentTheme ",{"type":75,"tag":420,"props":1066,"children":1067},{"style":433},[1068],{"type":80,"value":522},{"type":75,"tag":420,"props":1070,"children":1071},{"style":427},[1072],{"type":80,"value":1037},{"type":75,"tag":420,"props":1074,"children":1075},{"style":525},[1076],{"type":80,"value":1077}," theme",{"type":75,"tag":420,"props":1079,"children":1080},{"style":439},[1081],{"type":80,"value":1047},{"type":75,"tag":420,"props":1083,"children":1084},{"style":433},[1085],{"type":80,"value":657},{"type":75,"tag":234,"props":1087,"children":1089},{"id":1088},"vercel-adapter-flags-sdkvercel",[1090,1092,1098],{"type":80,"value":1091},"Vercel Adapter (",{"type":75,"tag":99,"props":1093,"children":1095},{"className":1094},[],[1096],{"type":80,"value":1097},"@flags-sdk\u002Fvercel",{"type":80,"value":652},{"type":75,"tag":87,"props":1100,"children":1101},{},[1102,1104,1110],{"type":80,"value":1103},"Connects the Flags SDK to Vercel Flags as the provider (reads ",{"type":75,"tag":99,"props":1105,"children":1107},{"className":1106},[],[1108],{"type":80,"value":1109},"FLAGS",{"type":80,"value":1111}," env var):",{"type":75,"tag":409,"props":1113,"children":1115},{"className":411,"code":1114,"language":413,"meta":414,"style":414},"import { flag, dedupe } from 'flags\u002Fnext';\nimport { vercelAdapter } from '@flags-sdk\u002Fvercel';\n\ntype Entities = {\n  user?: { id: string; email: string; plan: string };\n  team?: { id: string; name: string };\n};\n\n\u002F\u002F Dedupe ensures identify runs once per request\nconst identify = dedupe(async (): Promise\u003CEntities> => {\n  const session = await getSession();\n  return {\n    user: session?.user ? {\n      id: session.user.id,\n      email: session.user.email,\n      plan: session.user.plan,\n    } : undefined,\n  };\n});\n\nexport const premiumFeature = flag\u003Cboolean, Entities>({\n  key: 'premium-feature',\n  adapter: vercelAdapter(), \u002F\u002F reads FLAGS env var automatically\n  identify,\n});\n",[1116],{"type":75,"tag":99,"props":1117,"children":1118},{"__ignoreMap":414},[1119,1167,1207,1214,1238,1308,1357,1365,1372,1380,1442,1476,1488,1523,1560,1597,1634,1652,1660,1675,1682,1735,1763,1792,1805],{"type":75,"tag":420,"props":1120,"children":1121},{"class":422,"line":423},[1122,1126,1130,1134,1138,1143,1147,1151,1155,1159,1163],{"type":75,"tag":420,"props":1123,"children":1124},{"style":427},[1125],{"type":80,"value":430},{"type":75,"tag":420,"props":1127,"children":1128},{"style":433},[1129],{"type":80,"value":436},{"type":75,"tag":420,"props":1131,"children":1132},{"style":439},[1133],{"type":80,"value":442},{"type":75,"tag":420,"props":1135,"children":1136},{"style":433},[1137],{"type":80,"value":633},{"type":75,"tag":420,"props":1139,"children":1140},{"style":439},[1141],{"type":80,"value":1142}," dedupe",{"type":75,"tag":420,"props":1144,"children":1145},{"style":433},[1146],{"type":80,"value":447},{"type":75,"tag":420,"props":1148,"children":1149},{"style":427},[1150],{"type":80,"value":452},{"type":75,"tag":420,"props":1152,"children":1153},{"style":433},[1154],{"type":80,"value":457},{"type":75,"tag":420,"props":1156,"children":1157},{"style":460},[1158],{"type":80,"value":52},{"type":75,"tag":420,"props":1160,"children":1161},{"style":433},[1162],{"type":80,"value":467},{"type":75,"tag":420,"props":1164,"children":1165},{"style":433},[1166],{"type":80,"value":657},{"type":75,"tag":420,"props":1168,"children":1169},{"class":422,"line":481},[1170,1174,1178,1183,1187,1191,1195,1199,1203],{"type":75,"tag":420,"props":1171,"children":1172},{"style":427},[1173],{"type":80,"value":430},{"type":75,"tag":420,"props":1175,"children":1176},{"style":433},[1177],{"type":80,"value":436},{"type":75,"tag":420,"props":1179,"children":1180},{"style":439},[1181],{"type":80,"value":1182}," vercelAdapter",{"type":75,"tag":420,"props":1184,"children":1185},{"style":433},[1186],{"type":80,"value":447},{"type":75,"tag":420,"props":1188,"children":1189},{"style":427},[1190],{"type":80,"value":452},{"type":75,"tag":420,"props":1192,"children":1193},{"style":433},[1194],{"type":80,"value":457},{"type":75,"tag":420,"props":1196,"children":1197},{"style":460},[1198],{"type":80,"value":1097},{"type":75,"tag":420,"props":1200,"children":1201},{"style":433},[1202],{"type":80,"value":467},{"type":75,"tag":420,"props":1204,"children":1205},{"style":433},[1206],{"type":80,"value":657},{"type":75,"tag":420,"props":1208,"children":1209},{"class":422,"line":491},[1210],{"type":75,"tag":420,"props":1211,"children":1212},{"emptyLinePlaceholder":485},[1213],{"type":80,"value":488},{"type":75,"tag":420,"props":1215,"children":1216},{"class":422,"line":500},[1217,1222,1228,1233],{"type":75,"tag":420,"props":1218,"children":1219},{"style":509},[1220],{"type":80,"value":1221},"type",{"type":75,"tag":420,"props":1223,"children":1225},{"style":1224},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[1226],{"type":80,"value":1227}," Entities",{"type":75,"tag":420,"props":1229,"children":1230},{"style":433},[1231],{"type":80,"value":1232}," =",{"type":75,"tag":420,"props":1234,"children":1235},{"style":433},[1236],{"type":80,"value":1237}," {\n",{"type":75,"tag":420,"props":1239,"children":1240},{"class":422,"line":540},[1241,1246,1251,1255,1260,1264,1269,1273,1278,1282,1286,1290,1295,1299,1303],{"type":75,"tag":420,"props":1242,"children":1243},{"style":544},[1244],{"type":80,"value":1245},"  user",{"type":75,"tag":420,"props":1247,"children":1248},{"style":433},[1249],{"type":80,"value":1250},"?:",{"type":75,"tag":420,"props":1252,"children":1253},{"style":433},[1254],{"type":80,"value":436},{"type":75,"tag":420,"props":1256,"children":1257},{"style":544},[1258],{"type":80,"value":1259}," id",{"type":75,"tag":420,"props":1261,"children":1262},{"style":433},[1263],{"type":80,"value":552},{"type":75,"tag":420,"props":1265,"children":1266},{"style":1224},[1267],{"type":80,"value":1268}," string",{"type":75,"tag":420,"props":1270,"children":1271},{"style":433},[1272],{"type":80,"value":472},{"type":75,"tag":420,"props":1274,"children":1275},{"style":544},[1276],{"type":80,"value":1277}," email",{"type":75,"tag":420,"props":1279,"children":1280},{"style":433},[1281],{"type":80,"value":552},{"type":75,"tag":420,"props":1283,"children":1284},{"style":1224},[1285],{"type":80,"value":1268},{"type":75,"tag":420,"props":1287,"children":1288},{"style":433},[1289],{"type":80,"value":472},{"type":75,"tag":420,"props":1291,"children":1292},{"style":544},[1293],{"type":80,"value":1294}," plan",{"type":75,"tag":420,"props":1296,"children":1297},{"style":433},[1298],{"type":80,"value":552},{"type":75,"tag":420,"props":1300,"children":1301},{"style":1224},[1302],{"type":80,"value":1268},{"type":75,"tag":420,"props":1304,"children":1305},{"style":433},[1306],{"type":80,"value":1307}," };\n",{"type":75,"tag":420,"props":1309,"children":1310},{"class":422,"line":33},[1311,1316,1320,1324,1328,1332,1336,1340,1345,1349,1353],{"type":75,"tag":420,"props":1312,"children":1313},{"style":544},[1314],{"type":80,"value":1315},"  team",{"type":75,"tag":420,"props":1317,"children":1318},{"style":433},[1319],{"type":80,"value":1250},{"type":75,"tag":420,"props":1321,"children":1322},{"style":433},[1323],{"type":80,"value":436},{"type":75,"tag":420,"props":1325,"children":1326},{"style":544},[1327],{"type":80,"value":1259},{"type":75,"tag":420,"props":1329,"children":1330},{"style":433},[1331],{"type":80,"value":552},{"type":75,"tag":420,"props":1333,"children":1334},{"style":1224},[1335],{"type":80,"value":1268},{"type":75,"tag":420,"props":1337,"children":1338},{"style":433},[1339],{"type":80,"value":472},{"type":75,"tag":420,"props":1341,"children":1342},{"style":544},[1343],{"type":80,"value":1344}," name",{"type":75,"tag":420,"props":1346,"children":1347},{"style":433},[1348],{"type":80,"value":552},{"type":75,"tag":420,"props":1350,"children":1351},{"style":1224},[1352],{"type":80,"value":1268},{"type":75,"tag":420,"props":1354,"children":1355},{"style":433},[1356],{"type":80,"value":1307},{"type":75,"tag":420,"props":1358,"children":1359},{"class":422,"line":602},[1360],{"type":75,"tag":420,"props":1361,"children":1362},{"style":433},[1363],{"type":80,"value":1364},"};\n",{"type":75,"tag":420,"props":1366,"children":1367},{"class":422,"line":641},[1368],{"type":75,"tag":420,"props":1369,"children":1370},{"emptyLinePlaceholder":485},[1371],{"type":80,"value":488},{"type":75,"tag":420,"props":1373,"children":1374},{"class":422,"line":660},[1375],{"type":75,"tag":420,"props":1376,"children":1377},{"style":475},[1378],{"type":80,"value":1379},"\u002F\u002F Dedupe ensures identify runs once per request\n",{"type":75,"tag":420,"props":1381,"children":1382},{"class":422,"line":668},[1383,1387,1392,1396,1400,1404,1409,1414,1419,1424,1429,1434,1438],{"type":75,"tag":420,"props":1384,"children":1385},{"style":509},[1386],{"type":80,"value":1023},{"type":75,"tag":420,"props":1388,"children":1389},{"style":439},[1390],{"type":80,"value":1391}," identify ",{"type":75,"tag":420,"props":1393,"children":1394},{"style":433},[1395],{"type":80,"value":522},{"type":75,"tag":420,"props":1397,"children":1398},{"style":525},[1399],{"type":80,"value":1142},{"type":75,"tag":420,"props":1401,"children":1402},{"style":439},[1403],{"type":80,"value":532},{"type":75,"tag":420,"props":1405,"children":1406},{"style":509},[1407],{"type":80,"value":1408},"async",{"type":75,"tag":420,"props":1410,"children":1411},{"style":433},[1412],{"type":80,"value":1413}," ():",{"type":75,"tag":420,"props":1415,"children":1416},{"style":1224},[1417],{"type":80,"value":1418}," Promise",{"type":75,"tag":420,"props":1420,"children":1421},{"style":433},[1422],{"type":80,"value":1423},"\u003C",{"type":75,"tag":420,"props":1425,"children":1426},{"style":1224},[1427],{"type":80,"value":1428},"Entities",{"type":75,"tag":420,"props":1430,"children":1431},{"style":433},[1432],{"type":80,"value":1433},">",{"type":75,"tag":420,"props":1435,"children":1436},{"style":509},[1437],{"type":80,"value":622},{"type":75,"tag":420,"props":1439,"children":1440},{"style":433},[1441],{"type":80,"value":1237},{"type":75,"tag":420,"props":1443,"children":1444},{"class":422,"line":677},[1445,1450,1455,1459,1463,1468,1472],{"type":75,"tag":420,"props":1446,"children":1447},{"style":509},[1448],{"type":80,"value":1449},"  const",{"type":75,"tag":420,"props":1451,"children":1452},{"style":439},[1453],{"type":80,"value":1454}," session",{"type":75,"tag":420,"props":1456,"children":1457},{"style":433},[1458],{"type":80,"value":1232},{"type":75,"tag":420,"props":1460,"children":1461},{"style":427},[1462],{"type":80,"value":1037},{"type":75,"tag":420,"props":1464,"children":1465},{"style":525},[1466],{"type":80,"value":1467}," getSession",{"type":75,"tag":420,"props":1469,"children":1470},{"style":544},[1471],{"type":80,"value":1047},{"type":75,"tag":420,"props":1473,"children":1474},{"style":433},[1475],{"type":80,"value":657},{"type":75,"tag":420,"props":1477,"children":1478},{"class":422,"line":710},[1479,1484],{"type":75,"tag":420,"props":1480,"children":1481},{"style":427},[1482],{"type":80,"value":1483},"  return",{"type":75,"tag":420,"props":1485,"children":1486},{"style":433},[1487],{"type":80,"value":1237},{"type":75,"tag":420,"props":1489,"children":1490},{"class":422,"line":739},[1491,1496,1500,1504,1509,1514,1519],{"type":75,"tag":420,"props":1492,"children":1493},{"style":544},[1494],{"type":80,"value":1495},"    user",{"type":75,"tag":420,"props":1497,"children":1498},{"style":433},[1499],{"type":80,"value":552},{"type":75,"tag":420,"props":1501,"children":1502},{"style":439},[1503],{"type":80,"value":1454},{"type":75,"tag":420,"props":1505,"children":1506},{"style":433},[1507],{"type":80,"value":1508},"?.",{"type":75,"tag":420,"props":1510,"children":1511},{"style":439},[1512],{"type":80,"value":1513},"user",{"type":75,"tag":420,"props":1515,"children":1516},{"style":433},[1517],{"type":80,"value":1518}," ?",{"type":75,"tag":420,"props":1520,"children":1521},{"style":433},[1522],{"type":80,"value":1237},{"type":75,"tag":420,"props":1524,"children":1525},{"class":422,"line":757},[1526,1531,1535,1539,1543,1547,1551,1556],{"type":75,"tag":420,"props":1527,"children":1528},{"style":544},[1529],{"type":80,"value":1530},"      id",{"type":75,"tag":420,"props":1532,"children":1533},{"style":433},[1534],{"type":80,"value":552},{"type":75,"tag":420,"props":1536,"children":1537},{"style":439},[1538],{"type":80,"value":1454},{"type":75,"tag":420,"props":1540,"children":1541},{"style":433},[1542],{"type":80,"value":280},{"type":75,"tag":420,"props":1544,"children":1545},{"style":439},[1546],{"type":80,"value":1513},{"type":75,"tag":420,"props":1548,"children":1549},{"style":433},[1550],{"type":80,"value":280},{"type":75,"tag":420,"props":1552,"children":1553},{"style":439},[1554],{"type":80,"value":1555},"id",{"type":75,"tag":420,"props":1557,"children":1558},{"style":433},[1559],{"type":80,"value":570},{"type":75,"tag":420,"props":1561,"children":1562},{"class":422,"line":819},[1563,1568,1572,1576,1580,1584,1588,1593],{"type":75,"tag":420,"props":1564,"children":1565},{"style":544},[1566],{"type":80,"value":1567},"      email",{"type":75,"tag":420,"props":1569,"children":1570},{"style":433},[1571],{"type":80,"value":552},{"type":75,"tag":420,"props":1573,"children":1574},{"style":439},[1575],{"type":80,"value":1454},{"type":75,"tag":420,"props":1577,"children":1578},{"style":433},[1579],{"type":80,"value":280},{"type":75,"tag":420,"props":1581,"children":1582},{"style":439},[1583],{"type":80,"value":1513},{"type":75,"tag":420,"props":1585,"children":1586},{"style":433},[1587],{"type":80,"value":280},{"type":75,"tag":420,"props":1589,"children":1590},{"style":439},[1591],{"type":80,"value":1592},"email",{"type":75,"tag":420,"props":1594,"children":1595},{"style":433},[1596],{"type":80,"value":570},{"type":75,"tag":420,"props":1598,"children":1599},{"class":422,"line":877},[1600,1605,1609,1613,1617,1621,1625,1630],{"type":75,"tag":420,"props":1601,"children":1602},{"style":544},[1603],{"type":80,"value":1604},"      plan",{"type":75,"tag":420,"props":1606,"children":1607},{"style":433},[1608],{"type":80,"value":552},{"type":75,"tag":420,"props":1610,"children":1611},{"style":439},[1612],{"type":80,"value":1454},{"type":75,"tag":420,"props":1614,"children":1615},{"style":433},[1616],{"type":80,"value":280},{"type":75,"tag":420,"props":1618,"children":1619},{"style":439},[1620],{"type":80,"value":1513},{"type":75,"tag":420,"props":1622,"children":1623},{"style":433},[1624],{"type":80,"value":280},{"type":75,"tag":420,"props":1626,"children":1627},{"style":439},[1628],{"type":80,"value":1629},"plan",{"type":75,"tag":420,"props":1631,"children":1632},{"style":433},[1633],{"type":80,"value":570},{"type":75,"tag":420,"props":1635,"children":1636},{"class":422,"line":935},[1637,1642,1647],{"type":75,"tag":420,"props":1638,"children":1639},{"style":433},[1640],{"type":80,"value":1641},"    }",{"type":75,"tag":420,"props":1643,"children":1644},{"style":433},[1645],{"type":80,"value":1646}," :",{"type":75,"tag":420,"props":1648,"children":1649},{"style":433},[1650],{"type":80,"value":1651}," undefined,\n",{"type":75,"tag":420,"props":1653,"children":1654},{"class":422,"line":948},[1655],{"type":75,"tag":420,"props":1656,"children":1657},{"style":433},[1658],{"type":80,"value":1659},"  };\n",{"type":75,"tag":420,"props":1661,"children":1662},{"class":422,"line":984},[1663,1667,1671],{"type":75,"tag":420,"props":1664,"children":1665},{"style":433},[1666],{"type":80,"value":647},{"type":75,"tag":420,"props":1668,"children":1669},{"style":439},[1670],{"type":80,"value":652},{"type":75,"tag":420,"props":1672,"children":1673},{"style":433},[1674],{"type":80,"value":657},{"type":75,"tag":420,"props":1676,"children":1677},{"class":422,"line":1000},[1678],{"type":75,"tag":420,"props":1679,"children":1680},{"emptyLinePlaceholder":485},[1681],{"type":80,"value":488},{"type":75,"tag":420,"props":1683,"children":1684},{"class":422,"line":1008},[1685,1689,1693,1698,1702,1706,1710,1715,1719,1723,1727,1731],{"type":75,"tag":420,"props":1686,"children":1687},{"style":427},[1688],{"type":80,"value":506},{"type":75,"tag":420,"props":1690,"children":1691},{"style":509},[1692],{"type":80,"value":512},{"type":75,"tag":420,"props":1694,"children":1695},{"style":439},[1696],{"type":80,"value":1697}," premiumFeature ",{"type":75,"tag":420,"props":1699,"children":1700},{"style":433},[1701],{"type":80,"value":522},{"type":75,"tag":420,"props":1703,"children":1704},{"style":525},[1705],{"type":80,"value":442},{"type":75,"tag":420,"props":1707,"children":1708},{"style":433},[1709],{"type":80,"value":1423},{"type":75,"tag":420,"props":1711,"children":1712},{"style":1224},[1713],{"type":80,"value":1714},"boolean",{"type":75,"tag":420,"props":1716,"children":1717},{"style":433},[1718],{"type":80,"value":633},{"type":75,"tag":420,"props":1720,"children":1721},{"style":1224},[1722],{"type":80,"value":1227},{"type":75,"tag":420,"props":1724,"children":1725},{"style":433},[1726],{"type":80,"value":1433},{"type":75,"tag":420,"props":1728,"children":1729},{"style":439},[1730],{"type":80,"value":532},{"type":75,"tag":420,"props":1732,"children":1733},{"style":433},[1734],{"type":80,"value":537},{"type":75,"tag":420,"props":1736,"children":1737},{"class":422,"line":1017},[1738,1742,1746,1750,1755,1759],{"type":75,"tag":420,"props":1739,"children":1740},{"style":544},[1741],{"type":80,"value":547},{"type":75,"tag":420,"props":1743,"children":1744},{"style":433},[1745],{"type":80,"value":552},{"type":75,"tag":420,"props":1747,"children":1748},{"style":433},[1749],{"type":80,"value":457},{"type":75,"tag":420,"props":1751,"children":1752},{"style":460},[1753],{"type":80,"value":1754},"premium-feature",{"type":75,"tag":420,"props":1756,"children":1757},{"style":433},[1758],{"type":80,"value":467},{"type":75,"tag":420,"props":1760,"children":1761},{"style":433},[1762],{"type":80,"value":570},{"type":75,"tag":420,"props":1764,"children":1765},{"class":422,"line":1054},[1766,1771,1775,1779,1783,1787],{"type":75,"tag":420,"props":1767,"children":1768},{"style":544},[1769],{"type":80,"value":1770},"  adapter",{"type":75,"tag":420,"props":1772,"children":1773},{"style":433},[1774],{"type":80,"value":552},{"type":75,"tag":420,"props":1776,"children":1777},{"style":525},[1778],{"type":80,"value":1182},{"type":75,"tag":420,"props":1780,"children":1781},{"style":439},[1782],{"type":80,"value":1047},{"type":75,"tag":420,"props":1784,"children":1785},{"style":433},[1786],{"type":80,"value":633},{"type":75,"tag":420,"props":1788,"children":1789},{"style":475},[1790],{"type":80,"value":1791}," \u002F\u002F reads FLAGS env var automatically\n",{"type":75,"tag":420,"props":1793,"children":1795},{"class":422,"line":1794},24,[1796,1801],{"type":75,"tag":420,"props":1797,"children":1798},{"style":439},[1799],{"type":80,"value":1800},"  identify",{"type":75,"tag":420,"props":1802,"children":1803},{"style":433},[1804],{"type":80,"value":570},{"type":75,"tag":420,"props":1806,"children":1808},{"class":422,"line":1807},25,[1809,1813,1817],{"type":75,"tag":420,"props":1810,"children":1811},{"style":433},[1812],{"type":80,"value":647},{"type":75,"tag":420,"props":1814,"children":1815},{"style":439},[1816],{"type":80,"value":652},{"type":75,"tag":420,"props":1818,"children":1819},{"style":433},[1820],{"type":80,"value":657},{"type":75,"tag":87,"props":1822,"children":1823},{},[1824,1829],{"type":75,"tag":91,"props":1825,"children":1826},{},[1827],{"type":80,"value":1828},"Environment variables",{"type":80,"value":552},{"type":75,"tag":193,"props":1831,"children":1832},{},[1833,1843],{"type":75,"tag":197,"props":1834,"children":1835},{},[1836,1841],{"type":75,"tag":99,"props":1837,"children":1839},{"className":1838},[],[1840],{"type":80,"value":1109},{"type":80,"value":1842}," — SDK Key (auto-provisioned when you create your first flag)",{"type":75,"tag":197,"props":1844,"children":1845},{},[1846,1851],{"type":75,"tag":99,"props":1847,"children":1849},{"className":1848},[],[1850],{"type":80,"value":366},{"type":80,"value":1852}," — 32 random bytes, base64-encoded; encrypts overrides and authenticates Flags Explorer",{"type":75,"tag":234,"props":1854,"children":1856},{"id":1855},"flags-explorer-setup-ga",[1857],{"type":80,"value":1858},"Flags Explorer Setup (GA)",{"type":75,"tag":87,"props":1860,"children":1861},{},[1862,1864,1869],{"type":80,"value":1863},"The Flags Explorer is ",{"type":75,"tag":91,"props":1865,"children":1866},{},[1867],{"type":80,"value":1868},"generally available",{"type":80,"value":1870}," (part of the Vercel Toolbar). It lets developers override flags in their browser session without code changes.",{"type":75,"tag":87,"props":1872,"children":1873},{},[1874,1879],{"type":75,"tag":91,"props":1875,"children":1876},{},[1877],{"type":80,"value":1878},"App Router",{"type":80,"value":1880}," — create the discovery endpoint:",{"type":75,"tag":409,"props":1882,"children":1884},{"className":411,"code":1883,"language":413,"meta":414,"style":414},"\u002F\u002F app\u002F.well-known\u002Fvercel\u002Fflags\u002Froute.ts\nimport { createFlagsDiscoveryEndpoint, getProviderData } from 'flags\u002Fnext';\nimport * as flags from '..\u002F..\u002F..\u002F..\u002Fflags';\n\nexport const GET = createFlagsDiscoveryEndpoint(() => getProviderData(flags));\n",[1885],{"type":75,"tag":99,"props":1886,"children":1887},{"__ignoreMap":414},[1888,1896,1945,1989,1996],{"type":75,"tag":420,"props":1889,"children":1890},{"class":422,"line":423},[1891],{"type":75,"tag":420,"props":1892,"children":1893},{"style":475},[1894],{"type":80,"value":1895},"\u002F\u002F app\u002F.well-known\u002Fvercel\u002Fflags\u002Froute.ts\n",{"type":75,"tag":420,"props":1897,"children":1898},{"class":422,"line":481},[1899,1903,1907,1912,1916,1921,1925,1929,1933,1937,1941],{"type":75,"tag":420,"props":1900,"children":1901},{"style":427},[1902],{"type":80,"value":430},{"type":75,"tag":420,"props":1904,"children":1905},{"style":433},[1906],{"type":80,"value":436},{"type":75,"tag":420,"props":1908,"children":1909},{"style":439},[1910],{"type":80,"value":1911}," createFlagsDiscoveryEndpoint",{"type":75,"tag":420,"props":1913,"children":1914},{"style":433},[1915],{"type":80,"value":633},{"type":75,"tag":420,"props":1917,"children":1918},{"style":439},[1919],{"type":80,"value":1920}," getProviderData",{"type":75,"tag":420,"props":1922,"children":1923},{"style":433},[1924],{"type":80,"value":447},{"type":75,"tag":420,"props":1926,"children":1927},{"style":427},[1928],{"type":80,"value":452},{"type":75,"tag":420,"props":1930,"children":1931},{"style":433},[1932],{"type":80,"value":457},{"type":75,"tag":420,"props":1934,"children":1935},{"style":460},[1936],{"type":80,"value":52},{"type":75,"tag":420,"props":1938,"children":1939},{"style":433},[1940],{"type":80,"value":467},{"type":75,"tag":420,"props":1942,"children":1943},{"style":433},[1944],{"type":80,"value":657},{"type":75,"tag":420,"props":1946,"children":1947},{"class":422,"line":491},[1948,1952,1957,1962,1967,1972,1976,1981,1985],{"type":75,"tag":420,"props":1949,"children":1950},{"style":427},[1951],{"type":80,"value":430},{"type":75,"tag":420,"props":1953,"children":1954},{"style":433},[1955],{"type":80,"value":1956}," *",{"type":75,"tag":420,"props":1958,"children":1959},{"style":427},[1960],{"type":80,"value":1961}," as",{"type":75,"tag":420,"props":1963,"children":1964},{"style":439},[1965],{"type":80,"value":1966}," flags ",{"type":75,"tag":420,"props":1968,"children":1969},{"style":427},[1970],{"type":80,"value":1971},"from",{"type":75,"tag":420,"props":1973,"children":1974},{"style":433},[1975],{"type":80,"value":457},{"type":75,"tag":420,"props":1977,"children":1978},{"style":460},[1979],{"type":80,"value":1980},"..\u002F..\u002F..\u002F..\u002Fflags",{"type":75,"tag":420,"props":1982,"children":1983},{"style":433},[1984],{"type":80,"value":467},{"type":75,"tag":420,"props":1986,"children":1987},{"style":433},[1988],{"type":80,"value":657},{"type":75,"tag":420,"props":1990,"children":1991},{"class":422,"line":500},[1992],{"type":75,"tag":420,"props":1993,"children":1994},{"emptyLinePlaceholder":485},[1995],{"type":80,"value":488},{"type":75,"tag":420,"props":1997,"children":1998},{"class":422,"line":540},[1999,2003,2007,2012,2016,2020,2024,2028,2032,2036,2041],{"type":75,"tag":420,"props":2000,"children":2001},{"style":427},[2002],{"type":80,"value":506},{"type":75,"tag":420,"props":2004,"children":2005},{"style":509},[2006],{"type":80,"value":512},{"type":75,"tag":420,"props":2008,"children":2009},{"style":439},[2010],{"type":80,"value":2011}," GET ",{"type":75,"tag":420,"props":2013,"children":2014},{"style":433},[2015],{"type":80,"value":522},{"type":75,"tag":420,"props":2017,"children":2018},{"style":525},[2019],{"type":80,"value":1911},{"type":75,"tag":420,"props":2021,"children":2022},{"style":439},[2023],{"type":80,"value":532},{"type":75,"tag":420,"props":2025,"children":2026},{"style":433},[2027],{"type":80,"value":1047},{"type":75,"tag":420,"props":2029,"children":2030},{"style":509},[2031],{"type":80,"value":622},{"type":75,"tag":420,"props":2033,"children":2034},{"style":525},[2035],{"type":80,"value":1920},{"type":75,"tag":420,"props":2037,"children":2038},{"style":439},[2039],{"type":80,"value":2040},"(flags))",{"type":75,"tag":420,"props":2042,"children":2043},{"style":433},[2044],{"type":80,"value":657},{"type":75,"tag":87,"props":2046,"children":2047},{},[2048,2053],{"type":75,"tag":91,"props":2049,"children":2050},{},[2051],{"type":80,"value":2052},"Pages Router",{"type":80,"value":2054}," — API route + rewrite:",{"type":75,"tag":409,"props":2056,"children":2058},{"className":411,"code":2057,"language":413,"meta":414,"style":414},"\u002F\u002F pages\u002Fapi\u002Fvercel\u002Fflags.ts\nimport { verifyAccess, version } from 'flags';\nimport { getProviderData } from 'flags\u002Fnext';\nimport * as flags from '..\u002F..\u002F..\u002Fflags';\n\nexport default async function handler(req, res) {\n  const access = await verifyAccess(req.headers['authorization']);\n  if (!access) return res.status(401).json(null);\n  res.setHeader('x-flags-sdk-version', version);\n  return res.json(getProviderData(flags));\n}\n",[2059],{"type":75,"tag":99,"props":2060,"children":2061},{"__ignoreMap":414},[2062,2070,2119,2158,2198,2205,2259,2327,2413,2462,2507],{"type":75,"tag":420,"props":2063,"children":2064},{"class":422,"line":423},[2065],{"type":75,"tag":420,"props":2066,"children":2067},{"style":475},[2068],{"type":80,"value":2069},"\u002F\u002F pages\u002Fapi\u002Fvercel\u002Fflags.ts\n",{"type":75,"tag":420,"props":2071,"children":2072},{"class":422,"line":481},[2073,2077,2081,2086,2090,2095,2099,2103,2107,2111,2115],{"type":75,"tag":420,"props":2074,"children":2075},{"style":427},[2076],{"type":80,"value":430},{"type":75,"tag":420,"props":2078,"children":2079},{"style":433},[2080],{"type":80,"value":436},{"type":75,"tag":420,"props":2082,"children":2083},{"style":439},[2084],{"type":80,"value":2085}," verifyAccess",{"type":75,"tag":420,"props":2087,"children":2088},{"style":433},[2089],{"type":80,"value":633},{"type":75,"tag":420,"props":2091,"children":2092},{"style":439},[2093],{"type":80,"value":2094}," version",{"type":75,"tag":420,"props":2096,"children":2097},{"style":433},[2098],{"type":80,"value":447},{"type":75,"tag":420,"props":2100,"children":2101},{"style":427},[2102],{"type":80,"value":452},{"type":75,"tag":420,"props":2104,"children":2105},{"style":433},[2106],{"type":80,"value":457},{"type":75,"tag":420,"props":2108,"children":2109},{"style":460},[2110],{"type":80,"value":51},{"type":75,"tag":420,"props":2112,"children":2113},{"style":433},[2114],{"type":80,"value":467},{"type":75,"tag":420,"props":2116,"children":2117},{"style":433},[2118],{"type":80,"value":657},{"type":75,"tag":420,"props":2120,"children":2121},{"class":422,"line":491},[2122,2126,2130,2134,2138,2142,2146,2150,2154],{"type":75,"tag":420,"props":2123,"children":2124},{"style":427},[2125],{"type":80,"value":430},{"type":75,"tag":420,"props":2127,"children":2128},{"style":433},[2129],{"type":80,"value":436},{"type":75,"tag":420,"props":2131,"children":2132},{"style":439},[2133],{"type":80,"value":1920},{"type":75,"tag":420,"props":2135,"children":2136},{"style":433},[2137],{"type":80,"value":447},{"type":75,"tag":420,"props":2139,"children":2140},{"style":427},[2141],{"type":80,"value":452},{"type":75,"tag":420,"props":2143,"children":2144},{"style":433},[2145],{"type":80,"value":457},{"type":75,"tag":420,"props":2147,"children":2148},{"style":460},[2149],{"type":80,"value":52},{"type":75,"tag":420,"props":2151,"children":2152},{"style":433},[2153],{"type":80,"value":467},{"type":75,"tag":420,"props":2155,"children":2156},{"style":433},[2157],{"type":80,"value":657},{"type":75,"tag":420,"props":2159,"children":2160},{"class":422,"line":500},[2161,2165,2169,2173,2177,2181,2185,2190,2194],{"type":75,"tag":420,"props":2162,"children":2163},{"style":427},[2164],{"type":80,"value":430},{"type":75,"tag":420,"props":2166,"children":2167},{"style":433},[2168],{"type":80,"value":1956},{"type":75,"tag":420,"props":2170,"children":2171},{"style":427},[2172],{"type":80,"value":1961},{"type":75,"tag":420,"props":2174,"children":2175},{"style":439},[2176],{"type":80,"value":1966},{"type":75,"tag":420,"props":2178,"children":2179},{"style":427},[2180],{"type":80,"value":1971},{"type":75,"tag":420,"props":2182,"children":2183},{"style":433},[2184],{"type":80,"value":457},{"type":75,"tag":420,"props":2186,"children":2187},{"style":460},[2188],{"type":80,"value":2189},"..\u002F..\u002F..\u002Fflags",{"type":75,"tag":420,"props":2191,"children":2192},{"style":433},[2193],{"type":80,"value":467},{"type":75,"tag":420,"props":2195,"children":2196},{"style":433},[2197],{"type":80,"value":657},{"type":75,"tag":420,"props":2199,"children":2200},{"class":422,"line":540},[2201],{"type":75,"tag":420,"props":2202,"children":2203},{"emptyLinePlaceholder":485},[2204],{"type":80,"value":488},{"type":75,"tag":420,"props":2206,"children":2207},{"class":422,"line":33},[2208,2212,2217,2222,2227,2232,2236,2242,2246,2251,2255],{"type":75,"tag":420,"props":2209,"children":2210},{"style":427},[2211],{"type":80,"value":506},{"type":75,"tag":420,"props":2213,"children":2214},{"style":427},[2215],{"type":80,"value":2216}," default",{"type":75,"tag":420,"props":2218,"children":2219},{"style":509},[2220],{"type":80,"value":2221}," async",{"type":75,"tag":420,"props":2223,"children":2224},{"style":509},[2225],{"type":80,"value":2226}," function",{"type":75,"tag":420,"props":2228,"children":2229},{"style":525},[2230],{"type":80,"value":2231}," handler",{"type":75,"tag":420,"props":2233,"children":2234},{"style":433},[2235],{"type":80,"value":532},{"type":75,"tag":420,"props":2237,"children":2239},{"style":2238},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic",[2240],{"type":80,"value":2241},"req",{"type":75,"tag":420,"props":2243,"children":2244},{"style":433},[2245],{"type":80,"value":633},{"type":75,"tag":420,"props":2247,"children":2248},{"style":2238},[2249],{"type":80,"value":2250}," res",{"type":75,"tag":420,"props":2252,"children":2253},{"style":433},[2254],{"type":80,"value":652},{"type":75,"tag":420,"props":2256,"children":2257},{"style":433},[2258],{"type":80,"value":1237},{"type":75,"tag":420,"props":2260,"children":2261},{"class":422,"line":602},[2262,2266,2271,2275,2279,2283,2287,2291,2295,2300,2305,2309,2314,2318,2323],{"type":75,"tag":420,"props":2263,"children":2264},{"style":509},[2265],{"type":80,"value":1449},{"type":75,"tag":420,"props":2267,"children":2268},{"style":439},[2269],{"type":80,"value":2270}," access",{"type":75,"tag":420,"props":2272,"children":2273},{"style":433},[2274],{"type":80,"value":1232},{"type":75,"tag":420,"props":2276,"children":2277},{"style":427},[2278],{"type":80,"value":1037},{"type":75,"tag":420,"props":2280,"children":2281},{"style":525},[2282],{"type":80,"value":2085},{"type":75,"tag":420,"props":2284,"children":2285},{"style":544},[2286],{"type":80,"value":532},{"type":75,"tag":420,"props":2288,"children":2289},{"style":439},[2290],{"type":80,"value":2241},{"type":75,"tag":420,"props":2292,"children":2293},{"style":433},[2294],{"type":80,"value":280},{"type":75,"tag":420,"props":2296,"children":2297},{"style":439},[2298],{"type":80,"value":2299},"headers",{"type":75,"tag":420,"props":2301,"children":2302},{"style":544},[2303],{"type":80,"value":2304},"[",{"type":75,"tag":420,"props":2306,"children":2307},{"style":433},[2308],{"type":80,"value":467},{"type":75,"tag":420,"props":2310,"children":2311},{"style":460},[2312],{"type":80,"value":2313},"authorization",{"type":75,"tag":420,"props":2315,"children":2316},{"style":433},[2317],{"type":80,"value":467},{"type":75,"tag":420,"props":2319,"children":2320},{"style":544},[2321],{"type":80,"value":2322},"])",{"type":75,"tag":420,"props":2324,"children":2325},{"style":433},[2326],{"type":80,"value":657},{"type":75,"tag":420,"props":2328,"children":2329},{"class":422,"line":641},[2330,2335,2340,2345,2350,2355,2360,2364,2368,2373,2377,2383,2387,2391,2396,2400,2405,2409],{"type":75,"tag":420,"props":2331,"children":2332},{"style":427},[2333],{"type":80,"value":2334},"  if",{"type":75,"tag":420,"props":2336,"children":2337},{"style":544},[2338],{"type":80,"value":2339}," (",{"type":75,"tag":420,"props":2341,"children":2342},{"style":433},[2343],{"type":80,"value":2344},"!",{"type":75,"tag":420,"props":2346,"children":2347},{"style":439},[2348],{"type":80,"value":2349},"access",{"type":75,"tag":420,"props":2351,"children":2352},{"style":544},[2353],{"type":80,"value":2354},") ",{"type":75,"tag":420,"props":2356,"children":2357},{"style":427},[2358],{"type":80,"value":2359},"return",{"type":75,"tag":420,"props":2361,"children":2362},{"style":439},[2363],{"type":80,"value":2250},{"type":75,"tag":420,"props":2365,"children":2366},{"style":433},[2367],{"type":80,"value":280},{"type":75,"tag":420,"props":2369,"children":2370},{"style":525},[2371],{"type":80,"value":2372},"status",{"type":75,"tag":420,"props":2374,"children":2375},{"style":544},[2376],{"type":80,"value":532},{"type":75,"tag":420,"props":2378,"children":2380},{"style":2379},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[2381],{"type":80,"value":2382},"401",{"type":75,"tag":420,"props":2384,"children":2385},{"style":544},[2386],{"type":80,"value":652},{"type":75,"tag":420,"props":2388,"children":2389},{"style":433},[2390],{"type":80,"value":280},{"type":75,"tag":420,"props":2392,"children":2393},{"style":525},[2394],{"type":80,"value":2395},"json",{"type":75,"tag":420,"props":2397,"children":2398},{"style":544},[2399],{"type":80,"value":532},{"type":75,"tag":420,"props":2401,"children":2402},{"style":433},[2403],{"type":80,"value":2404},"null",{"type":75,"tag":420,"props":2406,"children":2407},{"style":544},[2408],{"type":80,"value":652},{"type":75,"tag":420,"props":2410,"children":2411},{"style":433},[2412],{"type":80,"value":657},{"type":75,"tag":420,"props":2414,"children":2415},{"class":422,"line":660},[2416,2421,2425,2430,2434,2438,2442,2446,2450,2454,2458],{"type":75,"tag":420,"props":2417,"children":2418},{"style":439},[2419],{"type":80,"value":2420},"  res",{"type":75,"tag":420,"props":2422,"children":2423},{"style":433},[2424],{"type":80,"value":280},{"type":75,"tag":420,"props":2426,"children":2427},{"style":525},[2428],{"type":80,"value":2429},"setHeader",{"type":75,"tag":420,"props":2431,"children":2432},{"style":544},[2433],{"type":80,"value":532},{"type":75,"tag":420,"props":2435,"children":2436},{"style":433},[2437],{"type":80,"value":467},{"type":75,"tag":420,"props":2439,"children":2440},{"style":460},[2441],{"type":80,"value":385},{"type":75,"tag":420,"props":2443,"children":2444},{"style":433},[2445],{"type":80,"value":467},{"type":75,"tag":420,"props":2447,"children":2448},{"style":433},[2449],{"type":80,"value":633},{"type":75,"tag":420,"props":2451,"children":2452},{"style":439},[2453],{"type":80,"value":2094},{"type":75,"tag":420,"props":2455,"children":2456},{"style":544},[2457],{"type":80,"value":652},{"type":75,"tag":420,"props":2459,"children":2460},{"style":433},[2461],{"type":80,"value":657},{"type":75,"tag":420,"props":2463,"children":2464},{"class":422,"line":668},[2465,2469,2473,2477,2481,2485,2490,2494,2498,2503],{"type":75,"tag":420,"props":2466,"children":2467},{"style":427},[2468],{"type":80,"value":1483},{"type":75,"tag":420,"props":2470,"children":2471},{"style":439},[2472],{"type":80,"value":2250},{"type":75,"tag":420,"props":2474,"children":2475},{"style":433},[2476],{"type":80,"value":280},{"type":75,"tag":420,"props":2478,"children":2479},{"style":525},[2480],{"type":80,"value":2395},{"type":75,"tag":420,"props":2482,"children":2483},{"style":544},[2484],{"type":80,"value":532},{"type":75,"tag":420,"props":2486,"children":2487},{"style":525},[2488],{"type":80,"value":2489},"getProviderData",{"type":75,"tag":420,"props":2491,"children":2492},{"style":544},[2493],{"type":80,"value":532},{"type":75,"tag":420,"props":2495,"children":2496},{"style":439},[2497],{"type":80,"value":51},{"type":75,"tag":420,"props":2499,"children":2500},{"style":544},[2501],{"type":80,"value":2502},"))",{"type":75,"tag":420,"props":2504,"children":2505},{"style":433},[2506],{"type":80,"value":657},{"type":75,"tag":420,"props":2508,"children":2509},{"class":422,"line":677},[2510],{"type":75,"tag":420,"props":2511,"children":2512},{"style":433},[2513],{"type":80,"value":2514},"}\n",{"type":75,"tag":409,"props":2516,"children":2520},{"className":2517,"code":2518,"language":2519,"meta":414,"style":414},"language-js shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u002F\u002F next.config.js (rewrite)\nmodule.exports = {\n  async rewrites() {\n    return [{ source: '\u002F.well-known\u002Fvercel\u002Fflags', destination: '\u002Fapi\u002Fvercel\u002Fflags' }];\n  },\n};\n","js",[2521],{"type":75,"tag":99,"props":2522,"children":2523},{"__ignoreMap":414},[2524,2532,2548,2569,2648,2656],{"type":75,"tag":420,"props":2525,"children":2526},{"class":422,"line":423},[2527],{"type":75,"tag":420,"props":2528,"children":2529},{"style":475},[2530],{"type":80,"value":2531},"\u002F\u002F next.config.js (rewrite)\n",{"type":75,"tag":420,"props":2533,"children":2534},{"class":422,"line":481},[2535,2540,2544],{"type":75,"tag":420,"props":2536,"children":2537},{"style":433},[2538],{"type":80,"value":2539},"module.exports",{"type":75,"tag":420,"props":2541,"children":2542},{"style":433},[2543],{"type":80,"value":1232},{"type":75,"tag":420,"props":2545,"children":2546},{"style":433},[2547],{"type":80,"value":1237},{"type":75,"tag":420,"props":2549,"children":2550},{"class":422,"line":491},[2551,2556,2561,2565],{"type":75,"tag":420,"props":2552,"children":2553},{"style":509},[2554],{"type":80,"value":2555},"  async",{"type":75,"tag":420,"props":2557,"children":2558},{"style":544},[2559],{"type":80,"value":2560}," rewrites",{"type":75,"tag":420,"props":2562,"children":2563},{"style":433},[2564],{"type":80,"value":1047},{"type":75,"tag":420,"props":2566,"children":2567},{"style":433},[2568],{"type":80,"value":1237},{"type":75,"tag":420,"props":2570,"children":2571},{"class":422,"line":500},[2572,2577,2582,2587,2592,2596,2600,2605,2609,2613,2618,2622,2626,2631,2635,2639,2644],{"type":75,"tag":420,"props":2573,"children":2574},{"style":427},[2575],{"type":80,"value":2576},"    return",{"type":75,"tag":420,"props":2578,"children":2579},{"style":544},[2580],{"type":80,"value":2581}," [",{"type":75,"tag":420,"props":2583,"children":2584},{"style":433},[2585],{"type":80,"value":2586},"{",{"type":75,"tag":420,"props":2588,"children":2589},{"style":544},[2590],{"type":80,"value":2591}," source",{"type":75,"tag":420,"props":2593,"children":2594},{"style":433},[2595],{"type":80,"value":552},{"type":75,"tag":420,"props":2597,"children":2598},{"style":433},[2599],{"type":80,"value":457},{"type":75,"tag":420,"props":2601,"children":2602},{"style":460},[2603],{"type":80,"value":2604},"\u002F.well-known\u002Fvercel\u002Fflags",{"type":75,"tag":420,"props":2606,"children":2607},{"style":433},[2608],{"type":80,"value":467},{"type":75,"tag":420,"props":2610,"children":2611},{"style":433},[2612],{"type":80,"value":633},{"type":75,"tag":420,"props":2614,"children":2615},{"style":544},[2616],{"type":80,"value":2617}," destination",{"type":75,"tag":420,"props":2619,"children":2620},{"style":433},[2621],{"type":80,"value":552},{"type":75,"tag":420,"props":2623,"children":2624},{"style":433},[2625],{"type":80,"value":457},{"type":75,"tag":420,"props":2627,"children":2628},{"style":460},[2629],{"type":80,"value":2630},"\u002Fapi\u002Fvercel\u002Fflags",{"type":75,"tag":420,"props":2632,"children":2633},{"style":433},[2634],{"type":80,"value":467},{"type":75,"tag":420,"props":2636,"children":2637},{"style":433},[2638],{"type":80,"value":447},{"type":75,"tag":420,"props":2640,"children":2641},{"style":544},[2642],{"type":80,"value":2643},"]",{"type":75,"tag":420,"props":2645,"children":2646},{"style":433},[2647],{"type":80,"value":657},{"type":75,"tag":420,"props":2649,"children":2650},{"class":422,"line":540},[2651],{"type":75,"tag":420,"props":2652,"children":2653},{"style":433},[2654],{"type":80,"value":2655},"  },\n",{"type":75,"tag":420,"props":2657,"children":2658},{"class":422,"line":33},[2659],{"type":75,"tag":420,"props":2660,"children":2661},{"style":433},[2662],{"type":80,"value":1364},{"type":75,"tag":234,"props":2664,"children":2666},{"id":2665},"precompute-pattern-static-personalized",[2667],{"type":80,"value":2668},"Precompute Pattern (Static + Personalized)",{"type":75,"tag":87,"props":2670,"children":2671},{},[2672],{"type":80,"value":2673},"Generate static page variants per flag combination, serve via middleware:",{"type":75,"tag":409,"props":2675,"children":2677},{"className":411,"code":2676,"language":413,"meta":414,"style":414},"export const layoutVariant = flag({\n  key: 'layout-variant',\n  options: [{ value: 'a' }, { value: 'b' }],\n  decide: () => 'a',\n});\n\nexport const precompute = [layoutVariant];\n",[2678],{"type":75,"tag":99,"props":2679,"children":2680},{"__ignoreMap":414},[2681,2713,2741,2822,2857,2872,2879],{"type":75,"tag":420,"props":2682,"children":2683},{"class":422,"line":423},[2684,2688,2692,2697,2701,2705,2709],{"type":75,"tag":420,"props":2685,"children":2686},{"style":427},[2687],{"type":80,"value":506},{"type":75,"tag":420,"props":2689,"children":2690},{"style":509},[2691],{"type":80,"value":512},{"type":75,"tag":420,"props":2693,"children":2694},{"style":439},[2695],{"type":80,"value":2696}," layoutVariant ",{"type":75,"tag":420,"props":2698,"children":2699},{"style":433},[2700],{"type":80,"value":522},{"type":75,"tag":420,"props":2702,"children":2703},{"style":525},[2704],{"type":80,"value":442},{"type":75,"tag":420,"props":2706,"children":2707},{"style":439},[2708],{"type":80,"value":532},{"type":75,"tag":420,"props":2710,"children":2711},{"style":433},[2712],{"type":80,"value":537},{"type":75,"tag":420,"props":2714,"children":2715},{"class":422,"line":481},[2716,2720,2724,2728,2733,2737],{"type":75,"tag":420,"props":2717,"children":2718},{"style":544},[2719],{"type":80,"value":547},{"type":75,"tag":420,"props":2721,"children":2722},{"style":433},[2723],{"type":80,"value":552},{"type":75,"tag":420,"props":2725,"children":2726},{"style":433},[2727],{"type":80,"value":457},{"type":75,"tag":420,"props":2729,"children":2730},{"style":460},[2731],{"type":80,"value":2732},"layout-variant",{"type":75,"tag":420,"props":2734,"children":2735},{"style":433},[2736],{"type":80,"value":467},{"type":75,"tag":420,"props":2738,"children":2739},{"style":433},[2740],{"type":80,"value":570},{"type":75,"tag":420,"props":2742,"children":2743},{"class":422,"line":491},[2744,2748,2752,2756,2760,2764,2768,2772,2776,2780,2785,2789,2793,2797,2801,2806,2810,2814,2818],{"type":75,"tag":420,"props":2745,"children":2746},{"style":544},[2747],{"type":80,"value":745},{"type":75,"tag":420,"props":2749,"children":2750},{"style":433},[2751],{"type":80,"value":552},{"type":75,"tag":420,"props":2753,"children":2754},{"style":439},[2755],{"type":80,"value":2581},{"type":75,"tag":420,"props":2757,"children":2758},{"style":433},[2759],{"type":80,"value":2586},{"type":75,"tag":420,"props":2761,"children":2762},{"style":544},[2763],{"type":80,"value":768},{"type":75,"tag":420,"props":2765,"children":2766},{"style":433},[2767],{"type":80,"value":552},{"type":75,"tag":420,"props":2769,"children":2770},{"style":433},[2771],{"type":80,"value":457},{"type":75,"tag":420,"props":2773,"children":2774},{"style":460},[2775],{"type":80,"value":114},{"type":75,"tag":420,"props":2777,"children":2778},{"style":433},[2779],{"type":80,"value":467},{"type":75,"tag":420,"props":2781,"children":2782},{"style":433},[2783],{"type":80,"value":2784}," },",{"type":75,"tag":420,"props":2786,"children":2787},{"style":433},[2788],{"type":80,"value":436},{"type":75,"tag":420,"props":2790,"children":2791},{"style":544},[2792],{"type":80,"value":768},{"type":75,"tag":420,"props":2794,"children":2795},{"style":433},[2796],{"type":80,"value":552},{"type":75,"tag":420,"props":2798,"children":2799},{"style":433},[2800],{"type":80,"value":457},{"type":75,"tag":420,"props":2802,"children":2803},{"style":460},[2804],{"type":80,"value":2805},"b",{"type":75,"tag":420,"props":2807,"children":2808},{"style":433},[2809],{"type":80,"value":467},{"type":75,"tag":420,"props":2811,"children":2812},{"style":433},[2813],{"type":80,"value":447},{"type":75,"tag":420,"props":2815,"children":2816},{"style":439},[2817],{"type":80,"value":2643},{"type":75,"tag":420,"props":2819,"children":2820},{"style":433},[2821],{"type":80,"value":570},{"type":75,"tag":420,"props":2823,"children":2824},{"class":422,"line":500},[2825,2829,2833,2837,2841,2845,2849,2853],{"type":75,"tag":420,"props":2826,"children":2827},{"style":525},[2828],{"type":80,"value":608},{"type":75,"tag":420,"props":2830,"children":2831},{"style":433},[2832],{"type":80,"value":552},{"type":75,"tag":420,"props":2834,"children":2835},{"style":433},[2836],{"type":80,"value":617},{"type":75,"tag":420,"props":2838,"children":2839},{"style":509},[2840],{"type":80,"value":622},{"type":75,"tag":420,"props":2842,"children":2843},{"style":433},[2844],{"type":80,"value":457},{"type":75,"tag":420,"props":2846,"children":2847},{"style":460},[2848],{"type":80,"value":114},{"type":75,"tag":420,"props":2850,"children":2851},{"style":433},[2852],{"type":80,"value":467},{"type":75,"tag":420,"props":2854,"children":2855},{"style":433},[2856],{"type":80,"value":570},{"type":75,"tag":420,"props":2858,"children":2859},{"class":422,"line":540},[2860,2864,2868],{"type":75,"tag":420,"props":2861,"children":2862},{"style":433},[2863],{"type":80,"value":647},{"type":75,"tag":420,"props":2865,"children":2866},{"style":439},[2867],{"type":80,"value":652},{"type":75,"tag":420,"props":2869,"children":2870},{"style":433},[2871],{"type":80,"value":657},{"type":75,"tag":420,"props":2873,"children":2874},{"class":422,"line":33},[2875],{"type":75,"tag":420,"props":2876,"children":2877},{"emptyLinePlaceholder":485},[2878],{"type":80,"value":488},{"type":75,"tag":420,"props":2880,"children":2881},{"class":422,"line":602},[2882,2886,2890,2895,2899,2904],{"type":75,"tag":420,"props":2883,"children":2884},{"style":427},[2885],{"type":80,"value":506},{"type":75,"tag":420,"props":2887,"children":2888},{"style":509},[2889],{"type":80,"value":512},{"type":75,"tag":420,"props":2891,"children":2892},{"style":439},[2893],{"type":80,"value":2894}," precompute ",{"type":75,"tag":420,"props":2896,"children":2897},{"style":433},[2898],{"type":80,"value":522},{"type":75,"tag":420,"props":2900,"children":2901},{"style":439},[2902],{"type":80,"value":2903}," [layoutVariant]",{"type":75,"tag":420,"props":2905,"children":2906},{"style":433},[2907],{"type":80,"value":657},{"type":75,"tag":87,"props":2909,"children":2910},{},[2911,2913,2919,2920,2926,2927,2933,2934,2940,2941],{"type":80,"value":2912},"Key APIs: ",{"type":75,"tag":99,"props":2914,"children":2916},{"className":2915},[],[2917],{"type":80,"value":2918},"precompute()",{"type":80,"value":351},{"type":75,"tag":99,"props":2921,"children":2923},{"className":2922},[],[2924],{"type":80,"value":2925},"evaluate()",{"type":80,"value":351},{"type":75,"tag":99,"props":2928,"children":2930},{"className":2929},[],[2931],{"type":80,"value":2932},"serialize()",{"type":80,"value":351},{"type":75,"tag":99,"props":2935,"children":2937},{"className":2936},[],[2938],{"type":80,"value":2939},"getPrecomputed()",{"type":80,"value":351},{"type":75,"tag":99,"props":2942,"children":2944},{"className":2943},[],[2945],{"type":80,"value":2946},"generatePermutations()",{"type":75,"tag":234,"props":2948,"children":2950},{"id":2949},"custom-adapter-interface",[2951],{"type":80,"value":2952},"Custom Adapter Interface",{"type":75,"tag":409,"props":2954,"children":2956},{"className":411,"code":2955,"language":413,"meta":414,"style":414},"export function createExampleAdapter() {\n  return function exampleAdapter\u003CValueType, EntitiesType>(): Adapter\u003CValueType, EntitiesType> {\n    return {\n      origin(key) { return `https:\u002F\u002Fexample.com\u002Fflags\u002F${key}`; },\n      async decide({ key }): Promise\u003CValueType> { return false as ValueType; },\n    };\n  };\n}\n",[2957],{"type":75,"tag":99,"props":2958,"children":2959},{"__ignoreMap":414},[2960,2984,3052,3063,3125,3198,3206,3213],{"type":75,"tag":420,"props":2961,"children":2962},{"class":422,"line":423},[2963,2967,2971,2976,2980],{"type":75,"tag":420,"props":2964,"children":2965},{"style":427},[2966],{"type":80,"value":506},{"type":75,"tag":420,"props":2968,"children":2969},{"style":509},[2970],{"type":80,"value":2226},{"type":75,"tag":420,"props":2972,"children":2973},{"style":525},[2974],{"type":80,"value":2975}," createExampleAdapter",{"type":75,"tag":420,"props":2977,"children":2978},{"style":433},[2979],{"type":80,"value":1047},{"type":75,"tag":420,"props":2981,"children":2982},{"style":433},[2983],{"type":80,"value":1237},{"type":75,"tag":420,"props":2985,"children":2986},{"class":422,"line":481},[2987,2991,2995,3000,3004,3009,3013,3018,3023,3028,3032,3036,3040,3044,3048],{"type":75,"tag":420,"props":2988,"children":2989},{"style":427},[2990],{"type":80,"value":1483},{"type":75,"tag":420,"props":2992,"children":2993},{"style":509},[2994],{"type":80,"value":2226},{"type":75,"tag":420,"props":2996,"children":2997},{"style":525},[2998],{"type":80,"value":2999}," exampleAdapter",{"type":75,"tag":420,"props":3001,"children":3002},{"style":433},[3003],{"type":80,"value":1423},{"type":75,"tag":420,"props":3005,"children":3006},{"style":1224},[3007],{"type":80,"value":3008},"ValueType",{"type":75,"tag":420,"props":3010,"children":3011},{"style":433},[3012],{"type":80,"value":633},{"type":75,"tag":420,"props":3014,"children":3015},{"style":1224},[3016],{"type":80,"value":3017}," EntitiesType",{"type":75,"tag":420,"props":3019,"children":3020},{"style":433},[3021],{"type":80,"value":3022},">():",{"type":75,"tag":420,"props":3024,"children":3025},{"style":1224},[3026],{"type":80,"value":3027}," Adapter",{"type":75,"tag":420,"props":3029,"children":3030},{"style":433},[3031],{"type":80,"value":1423},{"type":75,"tag":420,"props":3033,"children":3034},{"style":1224},[3035],{"type":80,"value":3008},{"type":75,"tag":420,"props":3037,"children":3038},{"style":433},[3039],{"type":80,"value":633},{"type":75,"tag":420,"props":3041,"children":3042},{"style":1224},[3043],{"type":80,"value":3017},{"type":75,"tag":420,"props":3045,"children":3046},{"style":433},[3047],{"type":80,"value":1433},{"type":75,"tag":420,"props":3049,"children":3050},{"style":433},[3051],{"type":80,"value":1237},{"type":75,"tag":420,"props":3053,"children":3054},{"class":422,"line":491},[3055,3059],{"type":75,"tag":420,"props":3056,"children":3057},{"style":427},[3058],{"type":80,"value":2576},{"type":75,"tag":420,"props":3060,"children":3061},{"style":433},[3062],{"type":80,"value":1237},{"type":75,"tag":420,"props":3064,"children":3065},{"class":422,"line":500},[3066,3071,3075,3080,3084,3088,3093,3098,3103,3108,3112,3117,3121],{"type":75,"tag":420,"props":3067,"children":3068},{"style":544},[3069],{"type":80,"value":3070},"      origin",{"type":75,"tag":420,"props":3072,"children":3073},{"style":433},[3074],{"type":80,"value":532},{"type":75,"tag":420,"props":3076,"children":3077},{"style":2238},[3078],{"type":80,"value":3079},"key",{"type":75,"tag":420,"props":3081,"children":3082},{"style":433},[3083],{"type":80,"value":652},{"type":75,"tag":420,"props":3085,"children":3086},{"style":433},[3087],{"type":80,"value":436},{"type":75,"tag":420,"props":3089,"children":3090},{"style":427},[3091],{"type":80,"value":3092}," return",{"type":75,"tag":420,"props":3094,"children":3095},{"style":433},[3096],{"type":80,"value":3097}," `",{"type":75,"tag":420,"props":3099,"children":3100},{"style":460},[3101],{"type":80,"value":3102},"https:\u002F\u002Fexample.com\u002Fflags\u002F",{"type":75,"tag":420,"props":3104,"children":3105},{"style":433},[3106],{"type":80,"value":3107},"${",{"type":75,"tag":420,"props":3109,"children":3110},{"style":439},[3111],{"type":80,"value":3079},{"type":75,"tag":420,"props":3113,"children":3114},{"style":433},[3115],{"type":80,"value":3116},"}`",{"type":75,"tag":420,"props":3118,"children":3119},{"style":433},[3120],{"type":80,"value":472},{"type":75,"tag":420,"props":3122,"children":3123},{"style":433},[3124],{"type":80,"value":816},{"type":75,"tag":420,"props":3126,"children":3127},{"class":422,"line":540},[3128,3133,3138,3143,3148,3153,3157,3161,3165,3169,3173,3177,3181,3185,3190,3194],{"type":75,"tag":420,"props":3129,"children":3130},{"style":509},[3131],{"type":80,"value":3132},"      async",{"type":75,"tag":420,"props":3134,"children":3135},{"style":544},[3136],{"type":80,"value":3137}," decide",{"type":75,"tag":420,"props":3139,"children":3140},{"style":433},[3141],{"type":80,"value":3142},"({",{"type":75,"tag":420,"props":3144,"children":3145},{"style":2238},[3146],{"type":80,"value":3147}," key",{"type":75,"tag":420,"props":3149,"children":3150},{"style":433},[3151],{"type":80,"value":3152}," }):",{"type":75,"tag":420,"props":3154,"children":3155},{"style":1224},[3156],{"type":80,"value":1418},{"type":75,"tag":420,"props":3158,"children":3159},{"style":433},[3160],{"type":80,"value":1423},{"type":75,"tag":420,"props":3162,"children":3163},{"style":1224},[3164],{"type":80,"value":3008},{"type":75,"tag":420,"props":3166,"children":3167},{"style":433},[3168],{"type":80,"value":1433},{"type":75,"tag":420,"props":3170,"children":3171},{"style":433},[3172],{"type":80,"value":436},{"type":75,"tag":420,"props":3174,"children":3175},{"style":427},[3176],{"type":80,"value":3092},{"type":75,"tag":420,"props":3178,"children":3179},{"style":625},[3180],{"type":80,"value":628},{"type":75,"tag":420,"props":3182,"children":3183},{"style":427},[3184],{"type":80,"value":1961},{"type":75,"tag":420,"props":3186,"children":3187},{"style":1224},[3188],{"type":80,"value":3189}," ValueType",{"type":75,"tag":420,"props":3191,"children":3192},{"style":433},[3193],{"type":80,"value":472},{"type":75,"tag":420,"props":3195,"children":3196},{"style":433},[3197],{"type":80,"value":816},{"type":75,"tag":420,"props":3199,"children":3200},{"class":422,"line":33},[3201],{"type":75,"tag":420,"props":3202,"children":3203},{"style":433},[3204],{"type":80,"value":3205},"    };\n",{"type":75,"tag":420,"props":3207,"children":3208},{"class":422,"line":602},[3209],{"type":75,"tag":420,"props":3210,"children":3211},{"style":433},[3212],{"type":80,"value":1659},{"type":75,"tag":420,"props":3214,"children":3215},{"class":422,"line":641},[3216],{"type":75,"tag":420,"props":3217,"children":3218},{"style":433},[3219],{"type":80,"value":2514},{"type":75,"tag":137,"props":3221,"children":3223},{"id":3222},"flags-vs-edge-config",[3224],{"type":80,"value":3225},"Flags vs Edge Config",{"type":75,"tag":3227,"props":3228,"children":3229},"table",{},[3230,3254],{"type":75,"tag":3231,"props":3232,"children":3233},"thead",{},[3234],{"type":75,"tag":3235,"props":3236,"children":3237},"tr",{},[3238,3244,3249],{"type":75,"tag":3239,"props":3240,"children":3241},"th",{},[3242],{"type":80,"value":3243},"Need",{"type":75,"tag":3239,"props":3245,"children":3246},{},[3247],{"type":80,"value":3248},"Use",{"type":75,"tag":3239,"props":3250,"children":3251},{},[3252],{"type":80,"value":3253},"Why",{"type":75,"tag":3255,"props":3256,"children":3257},"tbody",{},[3258,3279,3301,3324],{"type":75,"tag":3235,"props":3259,"children":3260},{},[3261,3267,3274],{"type":75,"tag":3262,"props":3263,"children":3264},"td",{},[3265],{"type":80,"value":3266},"Gradual rollouts, A\u002FB testing, targeting",{"type":75,"tag":3262,"props":3268,"children":3269},{},[3270],{"type":75,"tag":91,"props":3271,"children":3272},{},[3273],{"type":80,"value":81},{"type":75,"tag":3262,"props":3275,"children":3276},{},[3277],{"type":80,"value":3278},"Dashboard, analytics, Flags Explorer, segments",{"type":75,"tag":3235,"props":3280,"children":3281},{},[3282,3287,3296],{"type":75,"tag":3262,"props":3283,"children":3284},{},[3285],{"type":80,"value":3286},"Third-party provider integration",{"type":75,"tag":3262,"props":3288,"children":3289},{},[3290,3294],{"type":75,"tag":91,"props":3291,"children":3292},{},[3293],{"type":80,"value":81},{"type":80,"value":3295}," + adapter",{"type":75,"tag":3262,"props":3297,"children":3298},{},[3299],{"type":80,"value":3300},"Unified view across providers",{"type":75,"tag":3235,"props":3302,"children":3303},{},[3304,3309,3319],{"type":75,"tag":3262,"props":3305,"children":3306},{},[3307],{"type":80,"value":3308},"Ultra-low-latency config reads (non-flag)",{"type":75,"tag":3262,"props":3310,"children":3311},{},[3312,3317],{"type":75,"tag":91,"props":3313,"children":3314},{},[3315],{"type":80,"value":3316},"Edge Config",{"type":80,"value":3318}," directly",{"type":75,"tag":3262,"props":3320,"children":3321},{},[3322],{"type":80,"value":3323},"Sub-ms reads, no compute overhead",{"type":75,"tag":3235,"props":3325,"children":3326},{},[3327,3332,3340],{"type":75,"tag":3262,"props":3328,"children":3329},{},[3330],{"type":80,"value":3331},"Simple config without rollout logic",{"type":75,"tag":3262,"props":3333,"children":3334},{},[3335,3339],{"type":75,"tag":91,"props":3336,"children":3337},{},[3338],{"type":80,"value":3316},{"type":80,"value":3318},{"type":75,"tag":3262,"props":3341,"children":3342},{},[3343],{"type":80,"value":3344},"Lighter weight",{"type":75,"tag":87,"props":3346,"children":3347},{},[3348,3353],{"type":75,"tag":91,"props":3349,"children":3350},{},[3351],{"type":80,"value":3352},"Important",{"type":80,"value":3354},": Vercel Flags is the recommended approach for feature flags. Edge Config is the underlying low-latency storage some adapters use, but developers should use the Flags platform (not raw Edge Config) for flag use cases — it provides targeting rules, segments, percentage rollouts, observability, and Flags Explorer.",{"type":75,"tag":137,"props":3356,"children":3358},{"id":3357},"provider-adapters",[3359],{"type":80,"value":3360},"Provider Adapters",{"type":75,"tag":87,"props":3362,"children":3363},{},[3364,3369],{"type":75,"tag":91,"props":3365,"children":3366},{},[3367],{"type":80,"value":3368},"Featured",{"type":80,"value":3370}," (Marketplace integration, Edge Config for low latency):",{"type":75,"tag":193,"props":3372,"children":3373},{},[3374,3384],{"type":75,"tag":197,"props":3375,"children":3376},{},[3377,3382],{"type":75,"tag":99,"props":3378,"children":3380},{"className":3379},[],[3381],{"type":80,"value":1097},{"type":80,"value":3383}," — Vercel as provider",{"type":75,"tag":197,"props":3385,"children":3386},{},[3387],{"type":80,"value":3388},"Statsig, Hypertune, GrowthBook",{"type":75,"tag":87,"props":3390,"children":3391},{},[3392,3397,3399,3405],{"type":75,"tag":91,"props":3393,"children":3394},{},[3395],{"type":80,"value":3396},"Additional",{"type":80,"value":3398}," (published under ",{"type":75,"tag":99,"props":3400,"children":3402},{"className":3401},[],[3403],{"type":80,"value":3404},"@flags-sdk",{"type":80,"value":3406}," npm scope):",{"type":75,"tag":193,"props":3408,"children":3409},{},[3410],{"type":75,"tag":197,"props":3411,"children":3412},{},[3413],{"type":80,"value":3414},"LaunchDarkly, ConfigCat, DevCycle, Flipt, Reflag, PostHog, Flagsmith",{"type":75,"tag":87,"props":3416,"children":3417},{},[3418,3423,3425,3431],{"type":75,"tag":91,"props":3419,"children":3420},{},[3421],{"type":80,"value":3422},"OpenFeature adapter",{"type":80,"value":3424},": The ",{"type":75,"tag":99,"props":3426,"children":3428},{"className":3427},[],[3429],{"type":80,"value":3430},"@flags-sdk\u002Fopenfeature",{"type":80,"value":3432}," adapter allows most Node.js OpenFeature Providers to work with the Flags SDK, bridging the OpenFeature ecosystem (AB Tasty, CloudBees, Confidence by Spotify, and more)",{"type":75,"tag":137,"props":3434,"children":3436},{"id":3435},"key-features",[3437],{"type":80,"value":3438},"Key Features",{"type":75,"tag":193,"props":3440,"children":3441},{},[3442,3459,3469,3494,3504,3514,3524,3534],{"type":75,"tag":197,"props":3443,"children":3444},{},[3445,3450,3451,3457],{"type":75,"tag":91,"props":3446,"children":3447},{},[3448],{"type":80,"value":3449},"Unified Dashboard",{"type":80,"value":112},{"type":75,"tag":99,"props":3452,"children":3454},{"className":3453},[],[3455],{"type":80,"value":3456},"https:\u002F\u002Fvercel.com\u002F{team}\u002F{project}\u002Fflags",{"type":80,"value":3458},": All flags across all providers in one place",{"type":75,"tag":197,"props":3460,"children":3461},{},[3462,3467],{"type":75,"tag":91,"props":3463,"children":3464},{},[3465],{"type":80,"value":3466},"Flags Explorer (GA)",{"type":80,"value":3468},": Override flags locally via Vercel Toolbar (no code changes)",{"type":75,"tag":197,"props":3470,"children":3471},{},[3472,3477,3479,3485,3486,3492],{"type":75,"tag":91,"props":3473,"children":3474},{},[3475],{"type":80,"value":3476},"CLI Management",{"type":80,"value":3478},": ",{"type":75,"tag":99,"props":3480,"children":3482},{"className":3481},[],[3483],{"type":80,"value":3484},"vercel flags add",{"type":80,"value":351},{"type":75,"tag":99,"props":3487,"children":3489},{"className":3488},[],[3490],{"type":80,"value":3491},"vercel flags sdk-keys ls",{"type":80,"value":3493},", and full flag lifecycle from the terminal",{"type":75,"tag":197,"props":3495,"children":3496},{},[3497,3502],{"type":75,"tag":91,"props":3498,"children":3499},{},[3500],{"type":80,"value":3501},"Entities & Segments",{"type":80,"value":3503},": Define user\u002Fteam attributes, create reusable targeting segments",{"type":75,"tag":197,"props":3505,"children":3506},{},[3507,3512],{"type":75,"tag":91,"props":3508,"children":3509},{},[3510],{"type":80,"value":3511},"Analytics Integration",{"type":80,"value":3513},": Track flag impact via Web Analytics and Runtime Logs",{"type":75,"tag":197,"props":3515,"children":3516},{},[3517,3522],{"type":75,"tag":91,"props":3518,"children":3519},{},[3520],{"type":80,"value":3521},"Drafts Workflow",{"type":80,"value":3523},": Define in code → deploy → Vercel detects via Discovery Endpoint → promote when ready",{"type":75,"tag":197,"props":3525,"children":3526},{},[3527,3532],{"type":75,"tag":91,"props":3528,"children":3529},{},[3530],{"type":80,"value":3531},"Framework Support",{"type":80,"value":3533},": Next.js (App Router + Pages Router + Routing Middleware) and SvelteKit",{"type":75,"tag":197,"props":3535,"children":3536},{},[3537,3542,3544,3550],{"type":75,"tag":91,"props":3538,"children":3539},{},[3540],{"type":80,"value":3541},"Concurrent Evaluation Fix",{"type":80,"value":3543}," (v1.0.1): ",{"type":75,"tag":99,"props":3545,"children":3547},{"className":3546},[],[3548],{"type":80,"value":3549},"Promise.all",{"type":80,"value":3551}," flag evaluations no longer trigger duplicate network requests — initialization is properly shared",{"type":75,"tag":137,"props":3553,"children":3555},{"id":3554},"when-to-use",[3556],{"type":80,"value":3557},"When to Use",{"type":75,"tag":193,"props":3559,"children":3560},{},[3561,3566,3571,3576,3581],{"type":75,"tag":197,"props":3562,"children":3563},{},[3564],{"type":80,"value":3565},"Gradual feature rollouts with percentage targeting",{"type":75,"tag":197,"props":3567,"children":3568},{},[3569],{"type":80,"value":3570},"A\u002FB testing and experimentation",{"type":75,"tag":197,"props":3572,"children":3573},{},[3574],{"type":80,"value":3575},"Per-environment flag configuration (production vs preview vs development)",{"type":75,"tag":197,"props":3577,"children":3578},{},[3579],{"type":80,"value":3580},"Trunk-based development (ship code behind flags)",{"type":75,"tag":197,"props":3582,"children":3583},{},[3584],{"type":80,"value":3585},"Consolidating multiple flag providers into one dashboard",{"type":75,"tag":137,"props":3587,"children":3589},{"id":3588},"when-not-to-use",[3590],{"type":80,"value":3591},"When NOT to Use",{"type":75,"tag":193,"props":3593,"children":3594},{},[3595,3600,3605],{"type":75,"tag":197,"props":3596,"children":3597},{},[3598],{"type":80,"value":3599},"Simple static config without targeting → use Edge Config directly",{"type":75,"tag":197,"props":3601,"children":3602},{},[3603],{"type":80,"value":3604},"Runtime configuration not related to features → use environment variables",{"type":75,"tag":197,"props":3606,"children":3607},{},[3608],{"type":80,"value":3609},"Server-side only toggles with no UI → consider environment variables",{"type":75,"tag":137,"props":3611,"children":3613},{"id":3612},"references",[3614],{"type":80,"value":3615},"References",{"type":75,"tag":193,"props":3617,"children":3618},{},[3619,3630,3640,3651],{"type":75,"tag":197,"props":3620,"children":3621},{},[3622,3624],{"type":80,"value":3623},"📖 docs: ",{"type":75,"tag":114,"props":3625,"children":3628},{"href":3626,"rel":3627},"https:\u002F\u002Fvercel.com\u002Fdocs\u002Fflags",[118],[3629],{"type":80,"value":3626},{"type":75,"tag":197,"props":3631,"children":3632},{},[3633,3635],{"type":80,"value":3634},"📖 Flags SDK: ",{"type":75,"tag":114,"props":3636,"children":3638},{"href":36,"rel":3637},[118],[3639],{"type":80,"value":36},{"type":75,"tag":197,"props":3641,"children":3642},{},[3643,3645],{"type":80,"value":3644},"📖 SDK reference: ",{"type":75,"tag":114,"props":3646,"children":3649},{"href":3647,"rel":3648},"https:\u002F\u002Fvercel.com\u002Fdocs\u002Fflags\u002Fflags-sdk-reference",[118],[3650],{"type":80,"value":3647},{"type":75,"tag":197,"props":3652,"children":3653},{},[3654,3656],{"type":80,"value":3655},"📖 GitHub: ",{"type":75,"tag":114,"props":3657,"children":3660},{"href":3658,"rel":3659},"https:\u002F\u002Fgithub.com\u002Fvercel\u002Fflags",[118],[3661],{"type":80,"value":3658},{"type":75,"tag":3663,"props":3664,"children":3665},"style",{},[3666],{"type":80,"value":3667},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":3669,"total":3789},[3670,3689,3705,3717,3737,3757,3777],{"slug":3671,"name":3671,"fn":3672,"description":3673,"org":3674,"tags":3675,"stars":19,"repoUrl":20,"updatedAt":3688},"accessibility-and-inclusive-visualization","make data visualizations accessible","Make data visualizations accessible and inclusive. Use when the user needs chart or diagram accessibility guidance, text alternatives for complex visuals, color and contrast review, keyboard support, reduced-motion behavior for animation or parallax, or an accessibility QA workflow for exported figures, UML-like diagrams, and dashboards.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3676,3679,3682,3685],{"name":3677,"slug":3678,"type":15},"Accessibility","accessibility",{"name":3680,"slug":3681,"type":15},"Charts","charts",{"name":3683,"slug":3684,"type":15},"Data Visualization","data-visualization",{"name":3686,"slug":3687,"type":15},"Design","design","2026-06-30T19:00:57.102",{"slug":3690,"name":3690,"fn":3691,"description":3692,"org":3693,"tags":3694,"stars":19,"repoUrl":20,"updatedAt":3704},"agent-browser","automate browser interactions for agents","Browser automation CLI for AI agents. Use when the user needs to interact with websites, verify dev server output, test web apps, navigate pages, fill forms, click buttons, take screenshots, extract data, or automate any browser task. Also triggers when a dev server starts so you can verify it visually.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3695,3698,3701],{"name":3696,"slug":3697,"type":15},"Agents","agents",{"name":3699,"slug":3700,"type":15},"Browser Automation","browser-automation",{"name":3702,"slug":3703,"type":15},"Testing","testing","2026-04-06T18:41:03.44016",{"slug":3706,"name":3706,"fn":3707,"description":3708,"org":3709,"tags":3710,"stars":19,"repoUrl":20,"updatedAt":3716},"agent-browser-verify","verify dev server output with automated browser","Automated browser verification for dev servers. Triggers when a dev server starts to run a visual gut-check with agent-browser — verifies the page loads, checks for console errors, validates key UI elements, and reports pass\u002Ffail before continuing.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3711,3712,3715],{"name":3699,"slug":3700,"type":15},{"name":3713,"slug":3714,"type":15},"Local Development","local-development",{"name":3702,"slug":3703,"type":15},"2026-04-06T18:41:17.526867",{"slug":3718,"name":3718,"fn":3719,"description":3720,"org":3721,"tags":3722,"stars":19,"repoUrl":20,"updatedAt":3736},"agents-sdk","build AI agents on Cloudflare Workers","Build AI agents on Cloudflare Workers using the Agents SDK. Load when creating stateful agents, durable workflows, real-time WebSocket apps, scheduled tasks, MCP servers, or chat applications. Covers Agent class, state management, callable RPC, Workflows integration, and React hooks. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3723,3724,3727,3730,3733],{"name":3696,"slug":3697,"type":15},{"name":3725,"slug":3726,"type":15},"Cloudflare Workers","cloudflare-workers",{"name":3728,"slug":3729,"type":15},"SDK","sdk",{"name":3731,"slug":3732,"type":15},"Serverless","serverless",{"name":3734,"slug":3735,"type":15},"WebSockets","websockets","2026-04-06T18:39:51.717063",{"slug":3738,"name":3738,"fn":3739,"description":3740,"org":3741,"tags":3742,"stars":19,"repoUrl":20,"updatedAt":3756},"ai-elements","build chat UIs with AI Elements","AI Elements component library guidance — pre-built React components for AI interfaces built on shadcn\u002Fui. Use when building chat UIs, message displays, tool call rendering, streaming responses, reasoning panels, or any AI-native interface with the AI SDK.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3743,3746,3749,3752,3755],{"name":3744,"slug":3745,"type":15},"Frontend","frontend",{"name":3747,"slug":3748,"type":15},"React","react",{"name":3750,"slug":3751,"type":15},"shadcn\u002Fui","shadcn-ui",{"name":3753,"slug":3754,"type":15},"UI Components","ui-components",{"name":13,"slug":14,"type":15},"2026-04-06T18:40:59.619419",{"slug":3758,"name":3758,"fn":3759,"description":3760,"org":3761,"tags":3762,"stars":19,"repoUrl":20,"updatedAt":3776},"ai-gateway","configure Vercel AI Gateway","Vercel AI Gateway expert guidance. Use when configuring model routing, provider failover, cost tracking, or managing multiple AI providers through a unified API.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3763,3766,3769,3772,3775],{"name":3764,"slug":3765,"type":15},"AI Infrastructure","ai-infrastructure",{"name":3767,"slug":3768,"type":15},"Cost Optimization","cost-optimization",{"name":3770,"slug":3771,"type":15},"LLM","llm",{"name":3773,"slug":3774,"type":15},"Performance","performance",{"name":13,"slug":14,"type":15},"2026-04-06T18:40:44.377464",{"slug":3778,"name":3778,"fn":3779,"description":3780,"org":3781,"tags":3782,"stars":19,"repoUrl":20,"updatedAt":3788},"ai-generation-persistence","implement persistence patterns for AI generations","AI generation persistence patterns — unique IDs, addressable URLs, database storage, and cost tracking for every LLM generation",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3783,3784,3787],{"name":3767,"slug":3768,"type":15},{"name":3785,"slug":3786,"type":15},"Database","database",{"name":3770,"slug":3771,"type":15},"2026-04-06T18:41:08.513425",600,{"items":3791,"total":3988},[3792,3813,3836,3853,3869,3886,3905,3917,3931,3945,3957,3972],{"slug":3793,"name":3793,"fn":3794,"description":3795,"org":3796,"tags":3797,"stars":3810,"repoUrl":3811,"updatedAt":3812},"prior-auth-packet-builder","build healthcare prior authorization packets","Build a concise prior authorization packet from local case files and payer policy docs.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3798,3801,3804,3807],{"name":3799,"slug":3800,"type":15},"Documents","documents",{"name":3802,"slug":3803,"type":15},"Healthcare","healthcare",{"name":3805,"slug":3806,"type":15},"Insurance","insurance",{"name":3808,"slug":3809,"type":15},"Regulatory Compliance","regulatory-compliance",28169,"https:\u002F\u002Fgithub.com\u002Fopenai\u002Fopenai-agents-python","2026-04-16T05:11:39.180399",{"slug":3814,"name":3814,"fn":3815,"description":3816,"org":3817,"tags":3818,"stars":3833,"repoUrl":3834,"updatedAt":3835},"aspnet-core","build ASP.NET Core web applications","Build, review, refactor, or architect ASP.NET Core web applications using current official guidance for .NET web development. Use when working on Blazor Web Apps, Razor Pages, MVC, Minimal APIs, controller-based Web APIs, SignalR, gRPC, middleware, dependency injection, configuration, authentication, authorization, testing, performance, deployment, or ASP.NET Core upgrades.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3819,3822,3824,3827,3830],{"name":3820,"slug":3821,"type":15},".NET","dotnet",{"name":3823,"slug":3814,"type":15},"ASP.NET Core",{"name":3825,"slug":3826,"type":15},"Blazor","blazor",{"name":3828,"slug":3829,"type":15},"C#","csharp",{"name":3831,"slug":3832,"type":15},"Web Development","web-development",23787,"https:\u002F\u002Fgithub.com\u002Fopenai\u002Fskills","2026-04-12T05:07:02.819491",{"slug":3837,"name":3837,"fn":3838,"description":3839,"org":3840,"tags":3841,"stars":3833,"repoUrl":3834,"updatedAt":3852},"chatgpt-apps","build ChatGPT Apps SDK applications","Build, scaffold, refactor, and troubleshoot ChatGPT Apps SDK applications that combine an MCP server and widget UI. Use when Codex needs to design tools, register UI resources, wire the MCP Apps bridge or ChatGPT compatibility APIs, apply Apps SDK metadata or CSP or domain settings, or produce a docs-aligned project scaffold. Prefer a docs-first workflow by invoking the openai-docs skill or OpenAI developer docs MCP tools before generating code.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3842,3845,3848,3851],{"name":3843,"slug":3844,"type":15},"Apps SDK","apps-sdk",{"name":3846,"slug":3847,"type":15},"ChatGPT","chatgpt",{"name":3849,"slug":3850,"type":15},"MCP","mcp",{"name":9,"slug":8,"type":15},"2026-04-12T05:07:05.468097",{"slug":3854,"name":3854,"fn":3855,"description":3856,"org":3857,"tags":3858,"stars":3833,"repoUrl":3834,"updatedAt":3868},"cli-creator","build CLIs from API docs","Build a composable CLI for Codex from API docs, an OpenAPI spec, existing curl examples, an SDK, a web app, an admin tool, or a local script. Use when the user wants Codex to create a command-line tool that can run from any repo, expose composable read\u002Fwrite commands, return stable JSON, manage auth, and pair with a companion skill.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3859,3862,3865],{"name":3860,"slug":3861,"type":15},"API Development","api-development",{"name":3863,"slug":3864,"type":15},"CLI","cli",{"name":3866,"slug":3867,"type":15},"Codex","codex","2026-04-12T05:07:04.132762",{"slug":3870,"name":3870,"fn":3871,"description":3872,"org":3873,"tags":3874,"stars":3833,"repoUrl":3834,"updatedAt":3885},"cloudflare-deploy","deploy projects to Cloudflare","Deploy applications and infrastructure to Cloudflare using Workers, Pages, and related platform services. Use when the user asks to deploy, host, publish, or set up a project on Cloudflare.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3875,3878,3881,3882],{"name":3876,"slug":3877,"type":15},"Cloudflare","cloudflare",{"name":3879,"slug":3880,"type":15},"Cloudflare Pages","cloudflare-pages",{"name":3725,"slug":3726,"type":15},{"name":3883,"slug":3884,"type":15},"Deployment","deployment","2026-04-12T05:07:14.275118",{"slug":3887,"name":3887,"fn":3888,"description":3889,"org":3890,"tags":3891,"stars":3833,"repoUrl":3834,"updatedAt":3904},"define-goal","define and set measurable project goals","Help the user define a concrete, measurable goal before starting work, especially when they ask to use the goal tool, create a goal, set an objective, clarify success criteria, or turn a fuzzy intention into a quantitative outcome. Use this skill for goal creation and goal refinement only; it does not manage durable snapshots, decision logs, or long-running execution artifacts.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3892,3895,3898,3901],{"name":3893,"slug":3894,"type":15},"Productivity","productivity",{"name":3896,"slug":3897,"type":15},"Project Management","project-management",{"name":3899,"slug":3900,"type":15},"Strategy","strategy",{"name":3902,"slug":3903,"type":15},"Task Management","task-management","2026-05-23T06:17:16.870838",{"slug":3906,"name":3906,"fn":3907,"description":3908,"org":3909,"tags":3910,"stars":3833,"repoUrl":3834,"updatedAt":3916},"figma","translate Figma designs into code","Use the Figma MCP server to fetch design context, screenshots, variables, and assets from Figma, and to translate Figma nodes into production code. Trigger when a task involves Figma URLs, node IDs, design-to-code implementation, or Figma MCP setup and troubleshooting.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3911,3912,3914,3915],{"name":3686,"slug":3687,"type":15},{"name":3913,"slug":3906,"type":15},"Figma",{"name":3744,"slug":3745,"type":15},{"name":3849,"slug":3850,"type":15},"2026-04-12T05:06:47.939943",{"slug":3918,"name":3918,"fn":3919,"description":3920,"org":3921,"tags":3922,"stars":3833,"repoUrl":3834,"updatedAt":3930},"figma-code-connect-components","connect Figma designs to code components","Connects Figma design components to code components using Code Connect mapping tools. Use when user says \"code connect\", \"connect this component to code\", \"map this component\", \"link component to code\", \"create code connect mapping\", or wants to establish mappings between Figma designs and code implementations. For canvas writes via `use_figma`, use `figma-use`.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3923,3924,3927,3928,3929],{"name":3686,"slug":3687,"type":15},{"name":3925,"slug":3926,"type":15},"Design System","design-system",{"name":3913,"slug":3906,"type":15},{"name":3744,"slug":3745,"type":15},{"name":3753,"slug":3754,"type":15},"2026-05-10T05:59:52.971881",{"slug":3932,"name":3932,"fn":3933,"description":3934,"org":3935,"tags":3936,"stars":3833,"repoUrl":3834,"updatedAt":3944},"figma-create-design-system-rules","generate design system rules from Figma","Generates custom design system rules for the user's codebase. Use when user says \"create design system rules\", \"generate rules for my project\", \"set up design rules\", \"customize design system guidelines\", or wants to establish project-specific conventions for Figma-to-code workflows. Requires Figma MCP server connection.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3937,3938,3939,3942,3943],{"name":3686,"slug":3687,"type":15},{"name":3925,"slug":3926,"type":15},{"name":3940,"slug":3941,"type":15},"Documentation","documentation",{"name":3913,"slug":3906,"type":15},{"name":3744,"slug":3745,"type":15},"2026-05-16T06:07:47.821474",{"slug":3946,"name":3946,"fn":3947,"description":3948,"org":3949,"tags":3950,"stars":3833,"repoUrl":3834,"updatedAt":3956},"figma-implement-design","translate Figma designs into application code","Translates Figma designs into production-ready application code with 1:1 visual fidelity. Use when implementing UI code from Figma files, when user mentions \"implement design\", \"generate code\", \"implement component\", provides Figma URLs, or asks to build components matching Figma specs. For Figma canvas writes via `use_figma`, use `figma-use`.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3951,3952,3953,3954,3955],{"name":3686,"slug":3687,"type":15},{"name":3913,"slug":3906,"type":15},{"name":3744,"slug":3745,"type":15},{"name":3753,"slug":3754,"type":15},{"name":3831,"slug":3832,"type":15},"2026-05-16T06:07:40.583615",{"slug":3958,"name":3958,"fn":3959,"description":3960,"org":3961,"tags":3962,"stars":3833,"repoUrl":3834,"updatedAt":3971},"hatch-pet","create animated pets for Codex","Create, repair, validate, visually QA, and package Codex-compatible animated pets and pet spritesheets from character art, generated images, company or prospect brand cues, or visual references. Use when a user wants a lightweight-worker Codex pet workflow, a non-pixel custom pet style, a prospect or company mascot pet, or a full 8x9 animated pet atlas with transparent unused cells, QA contact sheets, and pet.json packaging. This skill composes the installed $imagegen system skill for visual generation and uses bundled scripts for deterministic spritesheet assembly.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3963,3966,3967,3970],{"name":3964,"slug":3965,"type":15},"Animation","animation",{"name":3866,"slug":3867,"type":15},{"name":3968,"slug":3969,"type":15},"Creative","creative",{"name":3686,"slug":3687,"type":15},"2026-05-02T05:31:48.48485",{"slug":3973,"name":3973,"fn":3974,"description":3975,"org":3976,"tags":3977,"stars":3833,"repoUrl":3834,"updatedAt":3987},"imagegen","generate and edit raster images","Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output should be a bitmap asset rather than repo-native code or vector. Do not use when the task is better handled by editing existing SVG\u002Fvector\u002Fcode-native assets, extending an established icon or logo system, or building the visual directly in HTML\u002FCSS\u002Fcanvas.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3978,3979,3980,3983,3986],{"name":3968,"slug":3969,"type":15},{"name":3686,"slug":3687,"type":15},{"name":3981,"slug":3982,"type":15},"Image Generation","image-generation",{"name":3984,"slug":3985,"type":15},"Images","images",{"name":9,"slug":8,"type":15},"2026-05-15T06:23:24.312127",675]