[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-vercel-flags-sdk":3,"mdc--yccgjk-key":34,"related-repo-vercel-flags-sdk":5781,"related-org-vercel-flags-sdk":5790},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":23,"repoUrl":24,"updatedAt":25,"license":26,"forks":27,"topics":28,"repo":29,"sourceUrl":32,"mdContent":33},"flags-sdk","manage feature flags with Vercel Flags SDK","Guide for feature flags and A\u002FB tests with the Flags SDK (`flags` npm package) and Vercel Flags. Use when: declaring flags with `flag()`, using `vercelAdapter` or `vercel flags` CLI (add, list, enable, disable, inspect, archive, rm, sdk-keys), setting up providers\u002Fadapters (Vercel, Statsig, LaunchDarkly, PostHog, GrowthBook, Hypertune, Edge Config, OpenFeature, Split, Flagsmith, Reflag, Optimizely, or custom adapters), implementing precompute patterns for static pages, setting up `identify`\u002F`dedupe`, integrating Flags Explorer\u002FToolbar, working with flags in Next.js (App Router, Pages Router, Middleware) or SvelteKit, writing custom adapters, or encrypting\u002Fdecrypting flag values. Triggers: feature flags, A\u002FB testing, experimentation, flags SDK, flag adapters, precompute, Flags Explorer, feature gates, flag overrides, Vercel Flags, vercel flags CLI, vercel flags add, vercel flags list, vercel flags enable, vercel flags disable, `flags\u002Fnext`, `flags\u002Fsveltekit`, `flags\u002Freact`, `@flags-sdk\u002F*`.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"vercel","Vercel","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fvercel.png",[12,14,17,20],{"name":9,"slug":8,"type":13},"tag",{"name":15,"slug":16,"type":13},"Feature Flags","feature-flags",{"name":18,"slug":19,"type":13},"SDK","sdk",{"name":21,"slug":22,"type":13},"A\u002FB Testing","a-b-testing",611,"https:\u002F\u002Fgithub.com\u002Fvercel\u002Fflags","2026-04-06T18:56:46.56067",null,82,[],{"repoUrl":24,"stars":23,"forks":27,"topics":30,"description":31},[],"Flags SDK by Vercel","https:\u002F\u002Fgithub.com\u002Fvercel\u002Fflags\u002Ftree\u002FHEAD\u002Fskills\u002Fflags-sdk","---\nname: flags-sdk\ndescription: >\n  Guide for feature flags and A\u002FB tests with the Flags SDK (`flags` npm package) and Vercel Flags.\n  Use when: declaring flags with `flag()`, using `vercelAdapter` or `vercel flags` CLI\n  (add, list, enable, disable, inspect, archive, rm, sdk-keys),\n  setting up providers\u002Fadapters (Vercel, Statsig, LaunchDarkly, PostHog, GrowthBook, Hypertune,\n  Edge Config, OpenFeature, Split, Flagsmith, Reflag, Optimizely, or custom adapters),\n  implementing precompute patterns for static pages, setting up `identify`\u002F`dedupe`,\n  integrating Flags Explorer\u002FToolbar,\n  working with flags in Next.js (App Router, Pages Router, Middleware) or SvelteKit,\n  writing custom adapters, or encrypting\u002Fdecrypting flag values.\n  Triggers: feature flags, A\u002FB testing, experimentation, flags SDK, flag adapters, precompute,\n  Flags Explorer, feature gates, flag overrides, Vercel Flags, vercel flags CLI, vercel flags add,\n  vercel flags list, vercel flags enable, vercel flags disable,\n  `flags\u002Fnext`, `flags\u002Fsveltekit`, `flags\u002Freact`, `@flags-sdk\u002F*`.\n---\n\n# Flags SDK\n\nThe Flags SDK (`flags` npm package) is a feature flags toolkit for Next.js and SvelteKit. It turns each feature flag into a callable function, works with any flag provider via adapters, and keeps pages static using the precompute pattern. Vercel Flags is the first-party provider, letting you manage flags from the Vercel dashboard or the `vercel flags` CLI.\n\n- Docs: https:\u002F\u002Fflags-sdk.dev\n- Repo: https:\u002F\u002Fgithub.com\u002Fvercel\u002Fflags\n\n## Core concepts\n\n### Flags as code\n\nEach flag is declared as a function. No string keys at call sites:\n\n```ts\nimport { flag } from 'flags\u002Fnext';\n\nexport const exampleFlag = flag({\n  key: 'example-flag',\n  decide() { return false; },\n});\n\nconst value = await exampleFlag();\n```\n\n### Server-side evaluation\n\nFlags evaluate server-side to avoid layout shift, keep pages static, and maintain confidentiality. Combine routing middleware with the precompute pattern to serve static variants from CDN.\n\n### Adapter pattern\n\nAdapters replace `decide` and `origin` on a flag declaration, connecting your flags to a provider. Vercel Flags (`@flags-sdk\u002Fvercel`) is the first-party adapter. Third-party adapters are available for Statsig, LaunchDarkly, PostHog, and others.\n\n```ts\nimport { flag } from 'flags\u002Fnext';\nimport { vercelAdapter } from '@flags-sdk\u002Fvercel';\n\nexport const exampleFlag = flag({\n  key: 'example-flag',\n  adapter: vercelAdapter,\n});\n```\n\n> **Version note**: The SDK is published as `flags` (renamed from `@vercel\u002Fflags`; that old name still appears in changelog history). `flags` 4.2.0+ accepts the adapter factory by reference (`adapter: vercelAdapter`) and resolves it once per declaration. Older versions require calling it (`adapter: vercelAdapter()`). The called form still works on new versions, so prefer the shorthand unless you're targeting `flags` \u003C 4.2.0.\n\n## Agent workflow: Creating a new flag\n\nWhen a user asks you to create or add a feature flag, follow these steps in order. Do not leave CLI steps as \"next steps\" for the user — execute them yourself.\n\n### Before you start\n\nCheck the project state to adapt commands and decide which steps you can skip:\n\n- Which lockfile is present (`pnpm-lock.yaml`, `package-lock.json`, `yarn.lock`, `bun.lockb`)? → Adapt all package manager commands accordingly (`pnpm add`, `npm install`, `yarn add`, `bun add`).\n- Is `flags` in `package.json`? → Skip install (step 1)\n- Does `.vercel\u002F` directory exist? → Project is linked, skip `vercel link` in step 2\n- Does `.env.local` contain `FLAGS=`? → Env vars already pulled, skip step 3\n- Does `flags.ts` (or `lib\u002Fflags.ts`, `src\u002Fflags.ts`) exist? → Add to it rather than creating from scratch (step 4)\n- Is `@vercel\u002Ftoolbar` in `package.json`? → Skip toolbar setup (step 6)\n- Does `app\u002F.well-known\u002Fvercel\u002Fflags\u002Froute.ts` exist? → Flags Explorer already set up, skip step 7\n\n### Steps\n\n1. **Install packages** (if not already in `package.json`):\n   ```bash\n   pnpm i flags @flags-sdk\u002Fvercel\n   ```\n\n2. **Register the flag with Vercel**: Run `vercel flags add \u003Cflag-key> --kind boolean --description \"\u003Cdescription>\"`.\n\n   > **Prerequisite**: The `vercel flags` commands require the Vercel CLI to be installed and authenticated. If the Vercel CLI is not installed, run `pnpm i -g vercel`. For authentication or linking issues, follow the `vercel-cli` skill if it's already available. If it isn't, suggest the user install it with `npx skills add vercel\u002Fvercel@vercel-cli` (don't auto-install it) and rely on `vercel \u003Ccommand> --help` in the meantime.\n\n   Before running `vercel flags add`, verify the project is linked to Vercel. Check for a `.vercel` directory in the project root. If it doesn't exist, run `vercel link` first.\n\n3. **Pull environment variables**: Run `vercel env pull` to write `FLAGS` and `FLAGS_SECRET` to `.env.local`. Without these environment variables, `vercelAdapter` will not be able to evaluate flags. This step is **mandatory** after creating a flag.\n\n4. **Declare the flag in code**: Add it to `flags.ts` (or create the file if it doesn't exist) using `vercelAdapter`:\n   ```ts\n   import { flag } from 'flags\u002Fnext';\n   import { vercelAdapter } from '@flags-sdk\u002Fvercel';\n\n   export const myFlag = flag({\n     key: 'my-flag',\n     adapter: vercelAdapter,\n   });\n   ```\n\n5. **Use the flag**: Call it in your page or component and conditionally render based on the result:\n   ```tsx\n   import { myFlag } from '..\u002Fflags';\n\n   export default async function Page() {\n     const enabled = await myFlag();\n     return \u003Cdiv>{enabled ? 'Feature on' : 'Feature off'}\u003C\u002Fdiv>;\n   }\n   ```\n\n6. **Set up the Vercel Toolbar** (if not already present):\n   - Run `pnpm i @vercel\u002Ftoolbar`\n   - Wrap `next.config.ts` with the toolbar plugin\n   - Render `\u003CVercelToolbar \u002F>` in the root layout\n   See [references\u002Fnextjs.md — Toolbar Setup](references\u002Fnextjs.md#toolbar-setup) for the full code.\n\n7. **Set up Flags Explorer** (if not already present): Create `app\u002F.well-known\u002Fvercel\u002Fflags\u002Froute.ts` — see the [Flags Explorer setup](#flags-explorer-setup) section below.\n\n## Vercel Flags\n\nVercel Flags is Vercel's feature flags platform. You create and manage flags from the Vercel dashboard or the `vercel flags` CLI, then connect them to your code with the `@flags-sdk\u002Fvercel` adapter. When you create a flag in Vercel, the `FLAGS` and `FLAGS_SECRET` environment variables are configured automatically.\n\nTo create a flag end-to-end, follow the [Agent workflow](#agent-workflow-creating-a-new-flag) above.\n\nFor the full Vercel provider reference — user targeting, `vercel flags` CLI subcommands, custom adapter configuration, and Flags Explorer setup — see [references\u002Fproviders.md](references\u002Fproviders.md#vercel).\n\n## Declaring flags\n\nWhen using Vercel Flags, declare flags with `vercelAdapter` as shown in the [Agent workflow](#agent-workflow-creating-a-new-flag). For other providers, see [references\u002Fproviders.md](references\u002Fproviders.md). Below are the general `flag()` patterns.\n\n### Basic flag\n\n```ts\nimport { flag } from 'flags\u002Fnext'; \u002F\u002F or 'flags\u002Fsveltekit'\n\nexport const showBanner = flag\u003Cboolean>({\n  key: 'show-banner',\n  description: 'Show promotional banner',\n  defaultValue: false,\n  options: [\n    { value: false, label: 'Hide' },\n    { value: true, label: 'Show' },\n  ],\n  decide() { return false; },\n});\n```\n\n### Flag with evaluation context\n\nUse `identify` to establish who the request is for. The returned entities are passed to `decide`:\n\n```ts\nimport { dedupe, flag } from 'flags\u002Fnext';\nimport type { ReadonlyRequestCookies } from 'flags';\n\ninterface Entities {\n  user?: { id: string };\n}\n\nconst identify = dedupe(\n  ({ cookies }: { cookies: ReadonlyRequestCookies }): Entities => {\n    const userId = cookies.get('user-id')?.value;\n    return { user: userId ? { id: userId } : undefined };\n  },\n);\n\nexport const dashboardFlag = flag\u003Cboolean, Entities>({\n  key: 'new-dashboard',\n  identify,\n  decide({ entities }) {\n    if (!entities?.user) return false;\n    return ['user1', 'user2'].includes(entities.user.id);\n  },\n});\n```\n\n### Flag with another adapter\n\nAdapters connect flags to third-party providers. Each adapter replaces `decide` and `origin`:\n\n```ts\nimport { flag } from 'flags\u002Fnext';\nimport { statsigAdapter } from '@flags-sdk\u002Fstatsig';\n\nexport const myGate = flag({\n  key: 'my_gate',\n  adapter: statsigAdapter.featureGate((gate) => gate.value),\n  identify,\n});\n```\n\nSee [references\u002Fproviders.md](references\u002Fproviders.md) for all supported adapters.\n\n### Key parameters\n\n| Parameter      | Type                               | Description                                          |\n| -------------- | ---------------------------------- | ---------------------------------------------------- |\n| `key`          | `string`                           | Unique flag identifier                               |\n| `decide`       | `function`                         | Resolves the flag value                              |\n| `defaultValue` | `any`                              | Fallback if `decide` returns undefined or throws     |\n| `description`  | `string`                           | Shown in Flags Explorer                              |\n| `origin`       | `string`                           | URL to manage the flag in provider dashboard         |\n| `options`      | `{ label?: string, value: any }[]` | Possible values, used for precompute + Flags Explorer|\n| `adapter`      | `Adapter`                          | Provider adapter implementing `decide` and `origin`  |\n| `identify`     | `function`                         | Returns evaluation context (entities) for `decide`   |\n\n## Dedupe\n\nWrap shared functions (especially `identify`) in `dedupe` to run them once per request:\n\n```ts\nimport { dedupe } from 'flags\u002Fnext';\n\nconst identify = dedupe(({ cookies }) => {\n  return { user: { id: cookies.get('uid')?.value } };\n});\n```\n\nNote: `dedupe` is not available in Pages Router.\n\n## Bulk evaluation\n\nTo evaluate **multiple** flags at once, call `evaluate()` (from `flags\u002Fnext`) instead of awaiting flags one at a time or using `Promise.all()`. To evaluate a **single** flag, just call it: `await myFlag()`.\n\n```ts\nimport { evaluate } from 'flags\u002Fnext';\nimport { flagA, flagB } from '..\u002Fflags';\n\n\u002F\u002F avoid: each await blocks the next, so the flags resolve sequentially\nconst a = await flagA();\nconst b = await flagB();\n\n\u002F\u002F avoid: parallel, but each flag is evaluated in isolation\nconst [a, b] = await Promise.all([flagA(), flagB()]);\n\n\u002F\u002F prefer: shares work across the batch\nconst [a, b] = await evaluate([flagA, flagB]);\n```\n\n`evaluate()` is faster than both approaches. Awaiting flags one at a time makes total latency the sum of every flag's evaluation instead of the slowest single flag, while `Promise.all()` runs them in parallel but evaluates each in isolation. `evaluate()` pre-reads headers, cookies, and overrides once for the whole batch and lets adapters resolve a group in a single call, which reduces the number of parallel promises the runtime manages and leaves less room for the async work to be interrupted by other microtasks.\n\nIt accepts either an **array** (positional results) or an **object** (keyed results):\n\n```ts\nconst [a, b] = await evaluate([flagA, flagB]);\nconst { a, b } = await evaluate({ a: flagA, b: flagB });\n```\n\nOutside App Router (Pages Router `getServerSideProps`\u002FAPI routes, or routing middleware), pass the request as the second argument: `await evaluate([flagA, flagB], request)`.\n\n`evaluate()` always evaluates flags at request time. It is not for reading [precomputed](#precompute-pattern) (static) values — for those, use `getPrecomputed` (or call the flag with the code, `await myFlag(code, flagGroup)`).\n\nAdapters can opt into batching by implementing the optional `bulkDecide` hook. The Vercel adapter (`@flags-sdk\u002Fvercel`) implements it — roughly a 10x reduction in evaluation time when resolving hundreds of flags. See [references\u002Fproviders.md — Custom Adapters](references\u002Fproviders.md#custom-adapters) for implementing `bulkDecide`, and [references\u002Fapi.md — `evaluate`](references\u002Fapi.md#evaluate) for the full signature.\n\n## Flags Explorer setup\n\n### Next.js (App Router)\n\n```ts\n\u002F\u002F app\u002F.well-known\u002Fvercel\u002Fflags\u002Froute.ts\nimport { createFlagsDiscoveryEndpoint } from 'flags\u002Fnext';\nimport { getProviderData } from '@flags-sdk\u002Fvercel';\nimport * as flags from '..\u002F..\u002F..\u002F..\u002Fflags';\n\nexport const GET = createFlagsDiscoveryEndpoint(async () => {\n  return getProviderData(flags);\n});\n```\n\n### With external provider data\n\nWhen using a third-party provider alongside Vercel Flags, combine their data with `mergeProviderData`. Each provider adapter exports its own `getProviderData` — see the provider-specific examples in [references\u002Fproviders.md](references\u002Fproviders.md).\n\n### SvelteKit\n\n```ts\n\u002F\u002F src\u002Fhooks.server.ts\nimport { createHandle } from 'flags\u002Fsveltekit';\nimport { FLAGS_SECRET } from '$env\u002Fstatic\u002Fprivate';\nimport * as flags from '$lib\u002Fflags';\n\nexport const handle = createHandle({ secret: FLAGS_SECRET, flags });\n```\n\n## FLAGS_SECRET\n\nRequired for precompute and Flags Explorer. Must be 32 random bytes, base64-encoded:\n\n```sh\nnode -e \"console.log(crypto.randomBytes(32).toString('base64url'))\"\n```\n\nUse a separate `FLAGS_SECRET` value for each environment (Development, Preview, Production), and mark the Preview and Production values as Sensitive. Run the generator once per environment to produce distinct values, then store each on Vercel:\n\n```sh\nvercel env add FLAGS_SECRET production --sensitive --value \u003Cproduction-secret>\nvercel env add FLAGS_SECRET preview --sensitive --value \u003Cpreview-secret>\nvercel env add FLAGS_SECRET development --value \u003Cdevelopment-secret>\n```\n\nThen run `vc env pull` to sync to local.\n\n## Precompute pattern\n\nUse precompute to keep pages static while using feature flags. Middleware evaluates flags and encodes results into the URL via rewrite. The page reads precomputed values instead of re-evaluating.\n\nHigh-level flow:\n1. Declare flags and group them in an array\n2. Call `precompute(flagGroup)` in middleware, get a `code` string\n3. Rewrite request to `\u002F${code}\u002Foriginal-path`\n4. Page reads flag values from `code`: `await myFlag(code, flagGroup)`\n\nFor full implementation details, see framework-specific references:\n- **Next.js**: See [references\u002Fnextjs.md](references\u002Fnextjs.md) — covers proxy middleware, precompute setup, ISR, generatePermutations, multiple groups\n- **SvelteKit**: See [references\u002Fsveltekit.md](references\u002Fsveltekit.md) — covers reroute hook, middleware, precompute setup, ISR, prerendering\n\n## Custom adapters\n\nCreate an adapter factory that returns an object with `origin` and `decide`. For the full pattern (including default adapter and singleton client examples), see [references\u002Fproviders.md](references\u002Fproviders.md#custom-adapters).\n\n## Encryption functions\n\nFor keeping flag data confidential in the browser (used by Flags Explorer):\n\n| Function                   | Purpose                             |\n| -------------------------- | ----------------------------------- |\n| `encryptFlagValues`        | Encrypt resolved flag values        |\n| `decryptFlagValues`        | Decrypt flag values                 |\n| `encryptFlagDefinitions`   | Encrypt flag definitions\u002Fmetadata   |\n| `decryptFlagDefinitions`   | Decrypt flag definitions            |\n| `encryptOverrides`         | Encrypt toolbar overrides           |\n| `decryptOverrides`         | Decrypt toolbar overrides           |\n\nAll use `FLAGS_SECRET` by default. Example:\n\n```tsx\nimport { encryptFlagValues } from 'flags';\nimport { FlagValues } from 'flags\u002Freact';\n\nasync function ConfidentialFlags({ values }) {\n  const encrypted = await encryptFlagValues(values);\n  return \u003CFlagValues values={encrypted} \u002F>;\n}\n```\n\n## React components\n\n```tsx\nimport { FlagValues, FlagDefinitions } from 'flags\u002Freact';\n\n\u002F\u002F Renders script tag with flag values for Flags Explorer\n\u003CFlagValues values={{ myFlag: true }} \u002F>\n\n\u002F\u002F Renders script tag with flag definitions for Flags Explorer\n\u003CFlagDefinitions definitions={{ myFlag: { options: [...], description: '...' } }} \u002F>\n```\n\n## References\n\nDetailed framework and provider guides are in separate files to keep context lean:\n\n- **[references\u002Fnextjs.md](references\u002Fnextjs.md)**: Next.js quickstart, toolbar, App Router, Pages Router, middleware\u002Fproxy, precompute, dedupe, dashboard pages, marketing pages, suspense fallbacks\n- **[references\u002Fsveltekit.md](references\u002Fsveltekit.md)**: SvelteKit quickstart, toolbar, hooks setup, precompute with reroute + middleware, dashboard pages, marketing pages\n- **[references\u002Fproviders.md](references\u002Fproviders.md)**: All provider adapters — Vercel, Edge Config, Statsig, LaunchDarkly, PostHog, GrowthBook, Hypertune, Flagsmith, Reflag, Split, Optimizely, OpenFeature, and custom adapters\n- **[references\u002Fapi.md](references\u002Fapi.md)**: Full API reference for `flags`, `flags\u002Freact`, `flags\u002Fnext`, and `flags\u002Fsveltekit`\n",{"data":35,"body":36},{"name":4,"description":6},{"type":37,"children":38},"root",[39,47,70,98,105,112,117,367,373,378,384,413,599,659,665,670,676,681,866,872,1594,1600,1632,1645,1664,1670,1702,1708,2071,2077,2096,2791,2797,2814,3057,3068,3074,3332,3338,3357,3548,3560,3566,3615,3958,3982,4001,4153,4173,4206,4255,4260,4266,4500,4506,4532,4538,4747,4752,4757,4794,4806,4962,4975,4981,4986,4991,5046,5051,5086,5092,5115,5121,5126,5250,5262,5473,5479,5689,5695,5700,5775],{"type":40,"tag":41,"props":42,"children":43},"element","h1",{"id":4},[44],{"type":45,"value":46},"text","Flags SDK",{"type":40,"tag":48,"props":49,"children":50},"p",{},[51,53,60,62,68],{"type":45,"value":52},"The Flags SDK (",{"type":40,"tag":54,"props":55,"children":57},"code",{"className":56},[],[58],{"type":45,"value":59},"flags",{"type":45,"value":61}," npm package) is a feature flags toolkit for Next.js and SvelteKit. It turns each feature flag into a callable function, works with any flag provider via adapters, and keeps pages static using the precompute pattern. Vercel Flags is the first-party provider, letting you manage flags from the Vercel dashboard or the ",{"type":40,"tag":54,"props":63,"children":65},{"className":64},[],[66],{"type":45,"value":67},"vercel flags",{"type":45,"value":69}," CLI.",{"type":40,"tag":71,"props":72,"children":73},"ul",{},[74,88],{"type":40,"tag":75,"props":76,"children":77},"li",{},[78,80],{"type":45,"value":79},"Docs: ",{"type":40,"tag":81,"props":82,"children":86},"a",{"href":83,"rel":84},"https:\u002F\u002Fflags-sdk.dev",[85],"nofollow",[87],{"type":45,"value":83},{"type":40,"tag":75,"props":89,"children":90},{},[91,93],{"type":45,"value":92},"Repo: ",{"type":40,"tag":81,"props":94,"children":96},{"href":24,"rel":95},[85],[97],{"type":45,"value":24},{"type":40,"tag":99,"props":100,"children":102},"h2",{"id":101},"core-concepts",[103],{"type":45,"value":104},"Core concepts",{"type":40,"tag":106,"props":107,"children":109},"h3",{"id":108},"flags-as-code",[110],{"type":45,"value":111},"Flags as code",{"type":40,"tag":48,"props":113,"children":114},{},[115],{"type":45,"value":116},"Each flag is declared as a function. No string keys at call sites:",{"type":40,"tag":118,"props":119,"children":124},"pre",{"className":120,"code":121,"language":122,"meta":123,"style":123},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { flag } from 'flags\u002Fnext';\n\nexport const exampleFlag = flag({\n  key: 'example-flag',\n  decide() { return false; },\n});\n\nconst value = await exampleFlag();\n","ts","",[125],{"type":40,"tag":54,"props":126,"children":127},{"__ignoreMap":123},[128,183,193,233,266,305,323,331],{"type":40,"tag":129,"props":130,"children":133},"span",{"class":131,"line":132},"line",1,[134,140,146,152,157,162,167,173,178],{"type":40,"tag":129,"props":135,"children":137},{"style":136},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[138],{"type":45,"value":139},"import",{"type":40,"tag":129,"props":141,"children":143},{"style":142},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[144],{"type":45,"value":145}," {",{"type":40,"tag":129,"props":147,"children":149},{"style":148},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[150],{"type":45,"value":151}," flag",{"type":40,"tag":129,"props":153,"children":154},{"style":142},[155],{"type":45,"value":156}," }",{"type":40,"tag":129,"props":158,"children":159},{"style":136},[160],{"type":45,"value":161}," from",{"type":40,"tag":129,"props":163,"children":164},{"style":142},[165],{"type":45,"value":166}," '",{"type":40,"tag":129,"props":168,"children":170},{"style":169},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[171],{"type":45,"value":172},"flags\u002Fnext",{"type":40,"tag":129,"props":174,"children":175},{"style":142},[176],{"type":45,"value":177},"'",{"type":40,"tag":129,"props":179,"children":180},{"style":142},[181],{"type":45,"value":182},";\n",{"type":40,"tag":129,"props":184,"children":186},{"class":131,"line":185},2,[187],{"type":40,"tag":129,"props":188,"children":190},{"emptyLinePlaceholder":189},true,[191],{"type":45,"value":192},"\n",{"type":40,"tag":129,"props":194,"children":196},{"class":131,"line":195},3,[197,202,208,213,218,223,228],{"type":40,"tag":129,"props":198,"children":199},{"style":136},[200],{"type":45,"value":201},"export",{"type":40,"tag":129,"props":203,"children":205},{"style":204},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[206],{"type":45,"value":207}," const",{"type":40,"tag":129,"props":209,"children":210},{"style":148},[211],{"type":45,"value":212}," exampleFlag ",{"type":40,"tag":129,"props":214,"children":215},{"style":142},[216],{"type":45,"value":217},"=",{"type":40,"tag":129,"props":219,"children":221},{"style":220},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[222],{"type":45,"value":151},{"type":40,"tag":129,"props":224,"children":225},{"style":148},[226],{"type":45,"value":227},"(",{"type":40,"tag":129,"props":229,"children":230},{"style":142},[231],{"type":45,"value":232},"{\n",{"type":40,"tag":129,"props":234,"children":236},{"class":131,"line":235},4,[237,243,248,252,257,261],{"type":40,"tag":129,"props":238,"children":240},{"style":239},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[241],{"type":45,"value":242},"  key",{"type":40,"tag":129,"props":244,"children":245},{"style":142},[246],{"type":45,"value":247},":",{"type":40,"tag":129,"props":249,"children":250},{"style":142},[251],{"type":45,"value":166},{"type":40,"tag":129,"props":253,"children":254},{"style":169},[255],{"type":45,"value":256},"example-flag",{"type":40,"tag":129,"props":258,"children":259},{"style":142},[260],{"type":45,"value":177},{"type":40,"tag":129,"props":262,"children":263},{"style":142},[264],{"type":45,"value":265},",\n",{"type":40,"tag":129,"props":267,"children":269},{"class":131,"line":268},5,[270,275,280,284,289,295,300],{"type":40,"tag":129,"props":271,"children":272},{"style":239},[273],{"type":45,"value":274},"  decide",{"type":40,"tag":129,"props":276,"children":277},{"style":142},[278],{"type":45,"value":279},"()",{"type":40,"tag":129,"props":281,"children":282},{"style":142},[283],{"type":45,"value":145},{"type":40,"tag":129,"props":285,"children":286},{"style":136},[287],{"type":45,"value":288}," return",{"type":40,"tag":129,"props":290,"children":292},{"style":291},"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC",[293],{"type":45,"value":294}," false",{"type":40,"tag":129,"props":296,"children":297},{"style":142},[298],{"type":45,"value":299},";",{"type":40,"tag":129,"props":301,"children":302},{"style":142},[303],{"type":45,"value":304}," },\n",{"type":40,"tag":129,"props":306,"children":308},{"class":131,"line":307},6,[309,314,319],{"type":40,"tag":129,"props":310,"children":311},{"style":142},[312],{"type":45,"value":313},"}",{"type":40,"tag":129,"props":315,"children":316},{"style":148},[317],{"type":45,"value":318},")",{"type":40,"tag":129,"props":320,"children":321},{"style":142},[322],{"type":45,"value":182},{"type":40,"tag":129,"props":324,"children":326},{"class":131,"line":325},7,[327],{"type":40,"tag":129,"props":328,"children":329},{"emptyLinePlaceholder":189},[330],{"type":45,"value":192},{"type":40,"tag":129,"props":332,"children":334},{"class":131,"line":333},8,[335,340,345,349,354,359,363],{"type":40,"tag":129,"props":336,"children":337},{"style":204},[338],{"type":45,"value":339},"const",{"type":40,"tag":129,"props":341,"children":342},{"style":148},[343],{"type":45,"value":344}," value ",{"type":40,"tag":129,"props":346,"children":347},{"style":142},[348],{"type":45,"value":217},{"type":40,"tag":129,"props":350,"children":351},{"style":136},[352],{"type":45,"value":353}," await",{"type":40,"tag":129,"props":355,"children":356},{"style":220},[357],{"type":45,"value":358}," exampleFlag",{"type":40,"tag":129,"props":360,"children":361},{"style":148},[362],{"type":45,"value":279},{"type":40,"tag":129,"props":364,"children":365},{"style":142},[366],{"type":45,"value":182},{"type":40,"tag":106,"props":368,"children":370},{"id":369},"server-side-evaluation",[371],{"type":45,"value":372},"Server-side evaluation",{"type":40,"tag":48,"props":374,"children":375},{},[376],{"type":45,"value":377},"Flags evaluate server-side to avoid layout shift, keep pages static, and maintain confidentiality. Combine routing middleware with the precompute pattern to serve static variants from CDN.",{"type":40,"tag":106,"props":379,"children":381},{"id":380},"adapter-pattern",[382],{"type":45,"value":383},"Adapter pattern",{"type":40,"tag":48,"props":385,"children":386},{},[387,389,395,397,403,405,411],{"type":45,"value":388},"Adapters replace ",{"type":40,"tag":54,"props":390,"children":392},{"className":391},[],[393],{"type":45,"value":394},"decide",{"type":45,"value":396}," and ",{"type":40,"tag":54,"props":398,"children":400},{"className":399},[],[401],{"type":45,"value":402},"origin",{"type":45,"value":404}," on a flag declaration, connecting your flags to a provider. Vercel Flags (",{"type":40,"tag":54,"props":406,"children":408},{"className":407},[],[409],{"type":45,"value":410},"@flags-sdk\u002Fvercel",{"type":45,"value":412},") is the first-party adapter. Third-party adapters are available for Statsig, LaunchDarkly, PostHog, and others.",{"type":40,"tag":118,"props":414,"children":416},{"className":120,"code":415,"language":122,"meta":123,"style":123},"import { flag } from 'flags\u002Fnext';\nimport { vercelAdapter } from '@flags-sdk\u002Fvercel';\n\nexport const exampleFlag = flag({\n  key: 'example-flag',\n  adapter: vercelAdapter,\n});\n",[417],{"type":40,"tag":54,"props":418,"children":419},{"__ignoreMap":123},[420,459,499,506,537,564,584],{"type":40,"tag":129,"props":421,"children":422},{"class":131,"line":132},[423,427,431,435,439,443,447,451,455],{"type":40,"tag":129,"props":424,"children":425},{"style":136},[426],{"type":45,"value":139},{"type":40,"tag":129,"props":428,"children":429},{"style":142},[430],{"type":45,"value":145},{"type":40,"tag":129,"props":432,"children":433},{"style":148},[434],{"type":45,"value":151},{"type":40,"tag":129,"props":436,"children":437},{"style":142},[438],{"type":45,"value":156},{"type":40,"tag":129,"props":440,"children":441},{"style":136},[442],{"type":45,"value":161},{"type":40,"tag":129,"props":444,"children":445},{"style":142},[446],{"type":45,"value":166},{"type":40,"tag":129,"props":448,"children":449},{"style":169},[450],{"type":45,"value":172},{"type":40,"tag":129,"props":452,"children":453},{"style":142},[454],{"type":45,"value":177},{"type":40,"tag":129,"props":456,"children":457},{"style":142},[458],{"type":45,"value":182},{"type":40,"tag":129,"props":460,"children":461},{"class":131,"line":185},[462,466,470,475,479,483,487,491,495],{"type":40,"tag":129,"props":463,"children":464},{"style":136},[465],{"type":45,"value":139},{"type":40,"tag":129,"props":467,"children":468},{"style":142},[469],{"type":45,"value":145},{"type":40,"tag":129,"props":471,"children":472},{"style":148},[473],{"type":45,"value":474}," vercelAdapter",{"type":40,"tag":129,"props":476,"children":477},{"style":142},[478],{"type":45,"value":156},{"type":40,"tag":129,"props":480,"children":481},{"style":136},[482],{"type":45,"value":161},{"type":40,"tag":129,"props":484,"children":485},{"style":142},[486],{"type":45,"value":166},{"type":40,"tag":129,"props":488,"children":489},{"style":169},[490],{"type":45,"value":410},{"type":40,"tag":129,"props":492,"children":493},{"style":142},[494],{"type":45,"value":177},{"type":40,"tag":129,"props":496,"children":497},{"style":142},[498],{"type":45,"value":182},{"type":40,"tag":129,"props":500,"children":501},{"class":131,"line":195},[502],{"type":40,"tag":129,"props":503,"children":504},{"emptyLinePlaceholder":189},[505],{"type":45,"value":192},{"type":40,"tag":129,"props":507,"children":508},{"class":131,"line":235},[509,513,517,521,525,529,533],{"type":40,"tag":129,"props":510,"children":511},{"style":136},[512],{"type":45,"value":201},{"type":40,"tag":129,"props":514,"children":515},{"style":204},[516],{"type":45,"value":207},{"type":40,"tag":129,"props":518,"children":519},{"style":148},[520],{"type":45,"value":212},{"type":40,"tag":129,"props":522,"children":523},{"style":142},[524],{"type":45,"value":217},{"type":40,"tag":129,"props":526,"children":527},{"style":220},[528],{"type":45,"value":151},{"type":40,"tag":129,"props":530,"children":531},{"style":148},[532],{"type":45,"value":227},{"type":40,"tag":129,"props":534,"children":535},{"style":142},[536],{"type":45,"value":232},{"type":40,"tag":129,"props":538,"children":539},{"class":131,"line":268},[540,544,548,552,556,560],{"type":40,"tag":129,"props":541,"children":542},{"style":239},[543],{"type":45,"value":242},{"type":40,"tag":129,"props":545,"children":546},{"style":142},[547],{"type":45,"value":247},{"type":40,"tag":129,"props":549,"children":550},{"style":142},[551],{"type":45,"value":166},{"type":40,"tag":129,"props":553,"children":554},{"style":169},[555],{"type":45,"value":256},{"type":40,"tag":129,"props":557,"children":558},{"style":142},[559],{"type":45,"value":177},{"type":40,"tag":129,"props":561,"children":562},{"style":142},[563],{"type":45,"value":265},{"type":40,"tag":129,"props":565,"children":566},{"class":131,"line":307},[567,572,576,580],{"type":40,"tag":129,"props":568,"children":569},{"style":239},[570],{"type":45,"value":571},"  adapter",{"type":40,"tag":129,"props":573,"children":574},{"style":142},[575],{"type":45,"value":247},{"type":40,"tag":129,"props":577,"children":578},{"style":148},[579],{"type":45,"value":474},{"type":40,"tag":129,"props":581,"children":582},{"style":142},[583],{"type":45,"value":265},{"type":40,"tag":129,"props":585,"children":586},{"class":131,"line":325},[587,591,595],{"type":40,"tag":129,"props":588,"children":589},{"style":142},[590],{"type":45,"value":313},{"type":40,"tag":129,"props":592,"children":593},{"style":148},[594],{"type":45,"value":318},{"type":40,"tag":129,"props":596,"children":597},{"style":142},[598],{"type":45,"value":182},{"type":40,"tag":600,"props":601,"children":602},"blockquote",{},[603],{"type":40,"tag":48,"props":604,"children":605},{},[606,612,614,619,621,627,629,634,636,642,644,650,652,657],{"type":40,"tag":607,"props":608,"children":609},"strong",{},[610],{"type":45,"value":611},"Version note",{"type":45,"value":613},": The SDK is published as ",{"type":40,"tag":54,"props":615,"children":617},{"className":616},[],[618],{"type":45,"value":59},{"type":45,"value":620}," (renamed from ",{"type":40,"tag":54,"props":622,"children":624},{"className":623},[],[625],{"type":45,"value":626},"@vercel\u002Fflags",{"type":45,"value":628},"; that old name still appears in changelog history). ",{"type":40,"tag":54,"props":630,"children":632},{"className":631},[],[633],{"type":45,"value":59},{"type":45,"value":635}," 4.2.0+ accepts the adapter factory by reference (",{"type":40,"tag":54,"props":637,"children":639},{"className":638},[],[640],{"type":45,"value":641},"adapter: vercelAdapter",{"type":45,"value":643},") and resolves it once per declaration. Older versions require calling it (",{"type":40,"tag":54,"props":645,"children":647},{"className":646},[],[648],{"type":45,"value":649},"adapter: vercelAdapter()",{"type":45,"value":651},"). The called form still works on new versions, so prefer the shorthand unless you're targeting ",{"type":40,"tag":54,"props":653,"children":655},{"className":654},[],[656],{"type":45,"value":59},{"type":45,"value":658}," \u003C 4.2.0.",{"type":40,"tag":99,"props":660,"children":662},{"id":661},"agent-workflow-creating-a-new-flag",[663],{"type":45,"value":664},"Agent workflow: Creating a new flag",{"type":40,"tag":48,"props":666,"children":667},{},[668],{"type":45,"value":669},"When a user asks you to create or add a feature flag, follow these steps in order. Do not leave CLI steps as \"next steps\" for the user — execute them yourself.",{"type":40,"tag":106,"props":671,"children":673},{"id":672},"before-you-start",[674],{"type":45,"value":675},"Before you start",{"type":40,"tag":48,"props":677,"children":678},{},[679],{"type":45,"value":680},"Check the project state to adapt commands and decide which steps you can skip:",{"type":40,"tag":71,"props":682,"children":683},{},[684,748,768,789,809,836,854],{"type":40,"tag":75,"props":685,"children":686},{},[687,689,695,697,703,704,710,711,717,719,725,726,732,733,739,740,746],{"type":45,"value":688},"Which lockfile is present (",{"type":40,"tag":54,"props":690,"children":692},{"className":691},[],[693],{"type":45,"value":694},"pnpm-lock.yaml",{"type":45,"value":696},", ",{"type":40,"tag":54,"props":698,"children":700},{"className":699},[],[701],{"type":45,"value":702},"package-lock.json",{"type":45,"value":696},{"type":40,"tag":54,"props":705,"children":707},{"className":706},[],[708],{"type":45,"value":709},"yarn.lock",{"type":45,"value":696},{"type":40,"tag":54,"props":712,"children":714},{"className":713},[],[715],{"type":45,"value":716},"bun.lockb",{"type":45,"value":718},")? → Adapt all package manager commands accordingly (",{"type":40,"tag":54,"props":720,"children":722},{"className":721},[],[723],{"type":45,"value":724},"pnpm add",{"type":45,"value":696},{"type":40,"tag":54,"props":727,"children":729},{"className":728},[],[730],{"type":45,"value":731},"npm install",{"type":45,"value":696},{"type":40,"tag":54,"props":734,"children":736},{"className":735},[],[737],{"type":45,"value":738},"yarn add",{"type":45,"value":696},{"type":40,"tag":54,"props":741,"children":743},{"className":742},[],[744],{"type":45,"value":745},"bun add",{"type":45,"value":747},").",{"type":40,"tag":75,"props":749,"children":750},{},[751,753,758,760,766],{"type":45,"value":752},"Is ",{"type":40,"tag":54,"props":754,"children":756},{"className":755},[],[757],{"type":45,"value":59},{"type":45,"value":759}," in ",{"type":40,"tag":54,"props":761,"children":763},{"className":762},[],[764],{"type":45,"value":765},"package.json",{"type":45,"value":767},"? → Skip install (step 1)",{"type":40,"tag":75,"props":769,"children":770},{},[771,773,779,781,787],{"type":45,"value":772},"Does ",{"type":40,"tag":54,"props":774,"children":776},{"className":775},[],[777],{"type":45,"value":778},".vercel\u002F",{"type":45,"value":780}," directory exist? → Project is linked, skip ",{"type":40,"tag":54,"props":782,"children":784},{"className":783},[],[785],{"type":45,"value":786},"vercel link",{"type":45,"value":788}," in step 2",{"type":40,"tag":75,"props":790,"children":791},{},[792,793,799,801,807],{"type":45,"value":772},{"type":40,"tag":54,"props":794,"children":796},{"className":795},[],[797],{"type":45,"value":798},".env.local",{"type":45,"value":800}," contain ",{"type":40,"tag":54,"props":802,"children":804},{"className":803},[],[805],{"type":45,"value":806},"FLAGS=",{"type":45,"value":808},"? → Env vars already pulled, skip step 3",{"type":40,"tag":75,"props":810,"children":811},{},[812,813,819,821,827,828,834],{"type":45,"value":772},{"type":40,"tag":54,"props":814,"children":816},{"className":815},[],[817],{"type":45,"value":818},"flags.ts",{"type":45,"value":820}," (or ",{"type":40,"tag":54,"props":822,"children":824},{"className":823},[],[825],{"type":45,"value":826},"lib\u002Fflags.ts",{"type":45,"value":696},{"type":40,"tag":54,"props":829,"children":831},{"className":830},[],[832],{"type":45,"value":833},"src\u002Fflags.ts",{"type":45,"value":835},") exist? → Add to it rather than creating from scratch (step 4)",{"type":40,"tag":75,"props":837,"children":838},{},[839,840,846,847,852],{"type":45,"value":752},{"type":40,"tag":54,"props":841,"children":843},{"className":842},[],[844],{"type":45,"value":845},"@vercel\u002Ftoolbar",{"type":45,"value":759},{"type":40,"tag":54,"props":848,"children":850},{"className":849},[],[851],{"type":45,"value":765},{"type":45,"value":853},"? → Skip toolbar setup (step 6)",{"type":40,"tag":75,"props":855,"children":856},{},[857,858,864],{"type":45,"value":772},{"type":40,"tag":54,"props":859,"children":861},{"className":860},[],[862],{"type":45,"value":863},"app\u002F.well-known\u002Fvercel\u002Fflags\u002Froute.ts",{"type":45,"value":865}," exist? → Flags Explorer already set up, skip step 7",{"type":40,"tag":106,"props":867,"children":869},{"id":868},"steps",[870],{"type":45,"value":871},"Steps",{"type":40,"tag":873,"props":874,"children":875},"ol",{},[876,926,1025,1079,1288,1511,1569],{"type":40,"tag":75,"props":877,"children":878},{},[879,884,886,891,893],{"type":40,"tag":607,"props":880,"children":881},{},[882],{"type":45,"value":883},"Install packages",{"type":45,"value":885}," (if not already in ",{"type":40,"tag":54,"props":887,"children":889},{"className":888},[],[890],{"type":45,"value":765},{"type":45,"value":892},"):",{"type":40,"tag":118,"props":894,"children":898},{"className":895,"code":896,"language":897,"meta":123,"style":123},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","pnpm i flags @flags-sdk\u002Fvercel\n","bash",[899],{"type":40,"tag":54,"props":900,"children":901},{"__ignoreMap":123},[902],{"type":40,"tag":129,"props":903,"children":904},{"class":131,"line":132},[905,911,916,921],{"type":40,"tag":129,"props":906,"children":908},{"style":907},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[909],{"type":45,"value":910},"pnpm",{"type":40,"tag":129,"props":912,"children":913},{"style":169},[914],{"type":45,"value":915}," i",{"type":40,"tag":129,"props":917,"children":918},{"style":169},[919],{"type":45,"value":920}," flags",{"type":40,"tag":129,"props":922,"children":923},{"style":169},[924],{"type":45,"value":925}," @flags-sdk\u002Fvercel\n",{"type":40,"tag":75,"props":927,"children":928},{},[929,934,936,942,944,996,1000,1002,1008,1010,1016,1018,1023],{"type":40,"tag":607,"props":930,"children":931},{},[932],{"type":45,"value":933},"Register the flag with Vercel",{"type":45,"value":935},": Run ",{"type":40,"tag":54,"props":937,"children":939},{"className":938},[],[940],{"type":45,"value":941},"vercel flags add \u003Cflag-key> --kind boolean --description \"\u003Cdescription>\"",{"type":45,"value":943},".",{"type":40,"tag":600,"props":945,"children":946},{},[947],{"type":40,"tag":48,"props":948,"children":949},{},[950,955,957,962,964,970,972,978,980,986,988,994],{"type":40,"tag":607,"props":951,"children":952},{},[953],{"type":45,"value":954},"Prerequisite",{"type":45,"value":956},": The ",{"type":40,"tag":54,"props":958,"children":960},{"className":959},[],[961],{"type":45,"value":67},{"type":45,"value":963}," commands require the Vercel CLI to be installed and authenticated. If the Vercel CLI is not installed, run ",{"type":40,"tag":54,"props":965,"children":967},{"className":966},[],[968],{"type":45,"value":969},"pnpm i -g vercel",{"type":45,"value":971},". For authentication or linking issues, follow the ",{"type":40,"tag":54,"props":973,"children":975},{"className":974},[],[976],{"type":45,"value":977},"vercel-cli",{"type":45,"value":979}," skill if it's already available. If it isn't, suggest the user install it with ",{"type":40,"tag":54,"props":981,"children":983},{"className":982},[],[984],{"type":45,"value":985},"npx skills add vercel\u002Fvercel@vercel-cli",{"type":45,"value":987}," (don't auto-install it) and rely on ",{"type":40,"tag":54,"props":989,"children":991},{"className":990},[],[992],{"type":45,"value":993},"vercel \u003Ccommand> --help",{"type":45,"value":995}," in the meantime.",{"type":40,"tag":997,"props":998,"children":999},"br",{},[],{"type":45,"value":1001},"Before running ",{"type":40,"tag":54,"props":1003,"children":1005},{"className":1004},[],[1006],{"type":45,"value":1007},"vercel flags add",{"type":45,"value":1009},", verify the project is linked to Vercel. Check for a ",{"type":40,"tag":54,"props":1011,"children":1013},{"className":1012},[],[1014],{"type":45,"value":1015},".vercel",{"type":45,"value":1017}," directory in the project root. If it doesn't exist, run ",{"type":40,"tag":54,"props":1019,"children":1021},{"className":1020},[],[1022],{"type":45,"value":786},{"type":45,"value":1024}," first.",{"type":40,"tag":75,"props":1026,"children":1027},{},[1028,1033,1034,1040,1042,1048,1049,1055,1057,1062,1064,1070,1072,1077],{"type":40,"tag":607,"props":1029,"children":1030},{},[1031],{"type":45,"value":1032},"Pull environment variables",{"type":45,"value":935},{"type":40,"tag":54,"props":1035,"children":1037},{"className":1036},[],[1038],{"type":45,"value":1039},"vercel env pull",{"type":45,"value":1041}," to write ",{"type":40,"tag":54,"props":1043,"children":1045},{"className":1044},[],[1046],{"type":45,"value":1047},"FLAGS",{"type":45,"value":396},{"type":40,"tag":54,"props":1050,"children":1052},{"className":1051},[],[1053],{"type":45,"value":1054},"FLAGS_SECRET",{"type":45,"value":1056}," to ",{"type":40,"tag":54,"props":1058,"children":1060},{"className":1059},[],[1061],{"type":45,"value":798},{"type":45,"value":1063},". Without these environment variables, ",{"type":40,"tag":54,"props":1065,"children":1067},{"className":1066},[],[1068],{"type":45,"value":1069},"vercelAdapter",{"type":45,"value":1071}," will not be able to evaluate flags. This step is ",{"type":40,"tag":607,"props":1073,"children":1074},{},[1075],{"type":45,"value":1076},"mandatory",{"type":45,"value":1078}," after creating a flag.",{"type":40,"tag":75,"props":1080,"children":1081},{},[1082,1087,1089,1094,1096,1101,1102],{"type":40,"tag":607,"props":1083,"children":1084},{},[1085],{"type":45,"value":1086},"Declare the flag in code",{"type":45,"value":1088},": Add it to ",{"type":40,"tag":54,"props":1090,"children":1092},{"className":1091},[],[1093],{"type":45,"value":818},{"type":45,"value":1095}," (or create the file if it doesn't exist) using ",{"type":40,"tag":54,"props":1097,"children":1099},{"className":1098},[],[1100],{"type":45,"value":1069},{"type":45,"value":247},{"type":40,"tag":118,"props":1103,"children":1105},{"className":120,"code":1104,"language":122,"meta":123,"style":123},"import { flag } from 'flags\u002Fnext';\nimport { vercelAdapter } from '@flags-sdk\u002Fvercel';\n\nexport const myFlag = flag({\n  key: 'my-flag',\n  adapter: vercelAdapter,\n});\n",[1106],{"type":40,"tag":54,"props":1107,"children":1108},{"__ignoreMap":123},[1109,1148,1187,1194,1226,1254,1273],{"type":40,"tag":129,"props":1110,"children":1111},{"class":131,"line":132},[1112,1116,1120,1124,1128,1132,1136,1140,1144],{"type":40,"tag":129,"props":1113,"children":1114},{"style":136},[1115],{"type":45,"value":139},{"type":40,"tag":129,"props":1117,"children":1118},{"style":142},[1119],{"type":45,"value":145},{"type":40,"tag":129,"props":1121,"children":1122},{"style":148},[1123],{"type":45,"value":151},{"type":40,"tag":129,"props":1125,"children":1126},{"style":142},[1127],{"type":45,"value":156},{"type":40,"tag":129,"props":1129,"children":1130},{"style":136},[1131],{"type":45,"value":161},{"type":40,"tag":129,"props":1133,"children":1134},{"style":142},[1135],{"type":45,"value":166},{"type":40,"tag":129,"props":1137,"children":1138},{"style":169},[1139],{"type":45,"value":172},{"type":40,"tag":129,"props":1141,"children":1142},{"style":142},[1143],{"type":45,"value":177},{"type":40,"tag":129,"props":1145,"children":1146},{"style":142},[1147],{"type":45,"value":182},{"type":40,"tag":129,"props":1149,"children":1150},{"class":131,"line":185},[1151,1155,1159,1163,1167,1171,1175,1179,1183],{"type":40,"tag":129,"props":1152,"children":1153},{"style":136},[1154],{"type":45,"value":139},{"type":40,"tag":129,"props":1156,"children":1157},{"style":142},[1158],{"type":45,"value":145},{"type":40,"tag":129,"props":1160,"children":1161},{"style":148},[1162],{"type":45,"value":474},{"type":40,"tag":129,"props":1164,"children":1165},{"style":142},[1166],{"type":45,"value":156},{"type":40,"tag":129,"props":1168,"children":1169},{"style":136},[1170],{"type":45,"value":161},{"type":40,"tag":129,"props":1172,"children":1173},{"style":142},[1174],{"type":45,"value":166},{"type":40,"tag":129,"props":1176,"children":1177},{"style":169},[1178],{"type":45,"value":410},{"type":40,"tag":129,"props":1180,"children":1181},{"style":142},[1182],{"type":45,"value":177},{"type":40,"tag":129,"props":1184,"children":1185},{"style":142},[1186],{"type":45,"value":182},{"type":40,"tag":129,"props":1188,"children":1189},{"class":131,"line":195},[1190],{"type":40,"tag":129,"props":1191,"children":1192},{"emptyLinePlaceholder":189},[1193],{"type":45,"value":192},{"type":40,"tag":129,"props":1195,"children":1196},{"class":131,"line":235},[1197,1201,1205,1210,1214,1218,1222],{"type":40,"tag":129,"props":1198,"children":1199},{"style":136},[1200],{"type":45,"value":201},{"type":40,"tag":129,"props":1202,"children":1203},{"style":204},[1204],{"type":45,"value":207},{"type":40,"tag":129,"props":1206,"children":1207},{"style":148},[1208],{"type":45,"value":1209}," myFlag ",{"type":40,"tag":129,"props":1211,"children":1212},{"style":142},[1213],{"type":45,"value":217},{"type":40,"tag":129,"props":1215,"children":1216},{"style":220},[1217],{"type":45,"value":151},{"type":40,"tag":129,"props":1219,"children":1220},{"style":148},[1221],{"type":45,"value":227},{"type":40,"tag":129,"props":1223,"children":1224},{"style":142},[1225],{"type":45,"value":232},{"type":40,"tag":129,"props":1227,"children":1228},{"class":131,"line":268},[1229,1233,1237,1241,1246,1250],{"type":40,"tag":129,"props":1230,"children":1231},{"style":239},[1232],{"type":45,"value":242},{"type":40,"tag":129,"props":1234,"children":1235},{"style":142},[1236],{"type":45,"value":247},{"type":40,"tag":129,"props":1238,"children":1239},{"style":142},[1240],{"type":45,"value":166},{"type":40,"tag":129,"props":1242,"children":1243},{"style":169},[1244],{"type":45,"value":1245},"my-flag",{"type":40,"tag":129,"props":1247,"children":1248},{"style":142},[1249],{"type":45,"value":177},{"type":40,"tag":129,"props":1251,"children":1252},{"style":142},[1253],{"type":45,"value":265},{"type":40,"tag":129,"props":1255,"children":1256},{"class":131,"line":307},[1257,1261,1265,1269],{"type":40,"tag":129,"props":1258,"children":1259},{"style":239},[1260],{"type":45,"value":571},{"type":40,"tag":129,"props":1262,"children":1263},{"style":142},[1264],{"type":45,"value":247},{"type":40,"tag":129,"props":1266,"children":1267},{"style":148},[1268],{"type":45,"value":474},{"type":40,"tag":129,"props":1270,"children":1271},{"style":142},[1272],{"type":45,"value":265},{"type":40,"tag":129,"props":1274,"children":1275},{"class":131,"line":325},[1276,1280,1284],{"type":40,"tag":129,"props":1277,"children":1278},{"style":142},[1279],{"type":45,"value":313},{"type":40,"tag":129,"props":1281,"children":1282},{"style":148},[1283],{"type":45,"value":318},{"type":40,"tag":129,"props":1285,"children":1286},{"style":142},[1287],{"type":45,"value":182},{"type":40,"tag":75,"props":1289,"children":1290},{},[1291,1296,1298],{"type":40,"tag":607,"props":1292,"children":1293},{},[1294],{"type":45,"value":1295},"Use the flag",{"type":45,"value":1297},": Call it in your page or component and conditionally render based on the result:",{"type":40,"tag":118,"props":1299,"children":1303},{"className":1300,"code":1301,"language":1302,"meta":123,"style":123},"language-tsx shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { myFlag } from '..\u002Fflags';\n\nexport default async function Page() {\n  const enabled = await myFlag();\n  return \u003Cdiv>{enabled ? 'Feature on' : 'Feature off'}\u003C\u002Fdiv>;\n}\n","tsx",[1304],{"type":40,"tag":54,"props":1305,"children":1306},{"__ignoreMap":123},[1307,1348,1355,1391,1425,1503],{"type":40,"tag":129,"props":1308,"children":1309},{"class":131,"line":132},[1310,1314,1318,1323,1327,1331,1335,1340,1344],{"type":40,"tag":129,"props":1311,"children":1312},{"style":136},[1313],{"type":45,"value":139},{"type":40,"tag":129,"props":1315,"children":1316},{"style":142},[1317],{"type":45,"value":145},{"type":40,"tag":129,"props":1319,"children":1320},{"style":148},[1321],{"type":45,"value":1322}," myFlag",{"type":40,"tag":129,"props":1324,"children":1325},{"style":142},[1326],{"type":45,"value":156},{"type":40,"tag":129,"props":1328,"children":1329},{"style":136},[1330],{"type":45,"value":161},{"type":40,"tag":129,"props":1332,"children":1333},{"style":142},[1334],{"type":45,"value":166},{"type":40,"tag":129,"props":1336,"children":1337},{"style":169},[1338],{"type":45,"value":1339},"..\u002Fflags",{"type":40,"tag":129,"props":1341,"children":1342},{"style":142},[1343],{"type":45,"value":177},{"type":40,"tag":129,"props":1345,"children":1346},{"style":142},[1347],{"type":45,"value":182},{"type":40,"tag":129,"props":1349,"children":1350},{"class":131,"line":185},[1351],{"type":40,"tag":129,"props":1352,"children":1353},{"emptyLinePlaceholder":189},[1354],{"type":45,"value":192},{"type":40,"tag":129,"props":1356,"children":1357},{"class":131,"line":195},[1358,1362,1367,1372,1377,1382,1386],{"type":40,"tag":129,"props":1359,"children":1360},{"style":136},[1361],{"type":45,"value":201},{"type":40,"tag":129,"props":1363,"children":1364},{"style":136},[1365],{"type":45,"value":1366}," default",{"type":40,"tag":129,"props":1368,"children":1369},{"style":204},[1370],{"type":45,"value":1371}," async",{"type":40,"tag":129,"props":1373,"children":1374},{"style":204},[1375],{"type":45,"value":1376}," function",{"type":40,"tag":129,"props":1378,"children":1379},{"style":220},[1380],{"type":45,"value":1381}," Page",{"type":40,"tag":129,"props":1383,"children":1384},{"style":142},[1385],{"type":45,"value":279},{"type":40,"tag":129,"props":1387,"children":1388},{"style":142},[1389],{"type":45,"value":1390}," {\n",{"type":40,"tag":129,"props":1392,"children":1393},{"class":131,"line":235},[1394,1399,1404,1409,1413,1417,1421],{"type":40,"tag":129,"props":1395,"children":1396},{"style":204},[1397],{"type":45,"value":1398},"  const",{"type":40,"tag":129,"props":1400,"children":1401},{"style":148},[1402],{"type":45,"value":1403}," enabled",{"type":40,"tag":129,"props":1405,"children":1406},{"style":142},[1407],{"type":45,"value":1408}," =",{"type":40,"tag":129,"props":1410,"children":1411},{"style":136},[1412],{"type":45,"value":353},{"type":40,"tag":129,"props":1414,"children":1415},{"style":220},[1416],{"type":45,"value":1322},{"type":40,"tag":129,"props":1418,"children":1419},{"style":239},[1420],{"type":45,"value":279},{"type":40,"tag":129,"props":1422,"children":1423},{"style":142},[1424],{"type":45,"value":182},{"type":40,"tag":129,"props":1426,"children":1427},{"class":131,"line":268},[1428,1433,1438,1443,1448,1453,1458,1462,1467,1471,1476,1480,1485,1489,1494,1498],{"type":40,"tag":129,"props":1429,"children":1430},{"style":136},[1431],{"type":45,"value":1432},"  return",{"type":40,"tag":129,"props":1434,"children":1435},{"style":142},[1436],{"type":45,"value":1437}," \u003C",{"type":40,"tag":129,"props":1439,"children":1440},{"style":239},[1441],{"type":45,"value":1442},"div",{"type":40,"tag":129,"props":1444,"children":1445},{"style":142},[1446],{"type":45,"value":1447},">{",{"type":40,"tag":129,"props":1449,"children":1450},{"style":148},[1451],{"type":45,"value":1452},"enabled ",{"type":40,"tag":129,"props":1454,"children":1455},{"style":142},[1456],{"type":45,"value":1457},"?",{"type":40,"tag":129,"props":1459,"children":1460},{"style":142},[1461],{"type":45,"value":166},{"type":40,"tag":129,"props":1463,"children":1464},{"style":169},[1465],{"type":45,"value":1466},"Feature on",{"type":40,"tag":129,"props":1468,"children":1469},{"style":142},[1470],{"type":45,"value":177},{"type":40,"tag":129,"props":1472,"children":1473},{"style":142},[1474],{"type":45,"value":1475}," :",{"type":40,"tag":129,"props":1477,"children":1478},{"style":142},[1479],{"type":45,"value":166},{"type":40,"tag":129,"props":1481,"children":1482},{"style":169},[1483],{"type":45,"value":1484},"Feature off",{"type":40,"tag":129,"props":1486,"children":1487},{"style":142},[1488],{"type":45,"value":177},{"type":40,"tag":129,"props":1490,"children":1491},{"style":142},[1492],{"type":45,"value":1493},"}\u003C\u002F",{"type":40,"tag":129,"props":1495,"children":1496},{"style":239},[1497],{"type":45,"value":1442},{"type":40,"tag":129,"props":1499,"children":1500},{"style":142},[1501],{"type":45,"value":1502},">;\n",{"type":40,"tag":129,"props":1504,"children":1505},{"class":131,"line":307},[1506],{"type":40,"tag":129,"props":1507,"children":1508},{"style":142},[1509],{"type":45,"value":1510},"}\n",{"type":40,"tag":75,"props":1512,"children":1513},{},[1514,1519,1521],{"type":40,"tag":607,"props":1515,"children":1516},{},[1517],{"type":45,"value":1518},"Set up the Vercel Toolbar",{"type":45,"value":1520}," (if not already present):",{"type":40,"tag":71,"props":1522,"children":1523},{},[1524,1535,1548],{"type":40,"tag":75,"props":1525,"children":1526},{},[1527,1529],{"type":45,"value":1528},"Run ",{"type":40,"tag":54,"props":1530,"children":1532},{"className":1531},[],[1533],{"type":45,"value":1534},"pnpm i @vercel\u002Ftoolbar",{"type":40,"tag":75,"props":1536,"children":1537},{},[1538,1540,1546],{"type":45,"value":1539},"Wrap ",{"type":40,"tag":54,"props":1541,"children":1543},{"className":1542},[],[1544],{"type":45,"value":1545},"next.config.ts",{"type":45,"value":1547}," with the toolbar plugin",{"type":40,"tag":75,"props":1549,"children":1550},{},[1551,1553,1559,1561,1567],{"type":45,"value":1552},"Render ",{"type":40,"tag":54,"props":1554,"children":1556},{"className":1555},[],[1557],{"type":45,"value":1558},"\u003CVercelToolbar \u002F>",{"type":45,"value":1560}," in the root layout\nSee ",{"type":40,"tag":81,"props":1562,"children":1564},{"href":1563},"references\u002Fnextjs.md#toolbar-setup",[1565],{"type":45,"value":1566},"references\u002Fnextjs.md — Toolbar Setup",{"type":45,"value":1568}," for the full code.",{"type":40,"tag":75,"props":1570,"children":1571},{},[1572,1577,1579,1584,1586,1592],{"type":40,"tag":607,"props":1573,"children":1574},{},[1575],{"type":45,"value":1576},"Set up Flags Explorer",{"type":45,"value":1578}," (if not already present): Create ",{"type":40,"tag":54,"props":1580,"children":1582},{"className":1581},[],[1583],{"type":45,"value":863},{"type":45,"value":1585}," — see the ",{"type":40,"tag":81,"props":1587,"children":1589},{"href":1588},"#flags-explorer-setup",[1590],{"type":45,"value":1591},"Flags Explorer setup",{"type":45,"value":1593}," section below.",{"type":40,"tag":99,"props":1595,"children":1597},{"id":1596},"vercel-flags",[1598],{"type":45,"value":1599},"Vercel Flags",{"type":40,"tag":48,"props":1601,"children":1602},{},[1603,1605,1610,1612,1617,1619,1624,1625,1630],{"type":45,"value":1604},"Vercel Flags is Vercel's feature flags platform. You create and manage flags from the Vercel dashboard or the ",{"type":40,"tag":54,"props":1606,"children":1608},{"className":1607},[],[1609],{"type":45,"value":67},{"type":45,"value":1611}," CLI, then connect them to your code with the ",{"type":40,"tag":54,"props":1613,"children":1615},{"className":1614},[],[1616],{"type":45,"value":410},{"type":45,"value":1618}," adapter. When you create a flag in Vercel, the ",{"type":40,"tag":54,"props":1620,"children":1622},{"className":1621},[],[1623],{"type":45,"value":1047},{"type":45,"value":396},{"type":40,"tag":54,"props":1626,"children":1628},{"className":1627},[],[1629],{"type":45,"value":1054},{"type":45,"value":1631}," environment variables are configured automatically.",{"type":40,"tag":48,"props":1633,"children":1634},{},[1635,1637,1643],{"type":45,"value":1636},"To create a flag end-to-end, follow the ",{"type":40,"tag":81,"props":1638,"children":1640},{"href":1639},"#agent-workflow-creating-a-new-flag",[1641],{"type":45,"value":1642},"Agent workflow",{"type":45,"value":1644}," above.",{"type":40,"tag":48,"props":1646,"children":1647},{},[1648,1650,1655,1657,1663],{"type":45,"value":1649},"For the full Vercel provider reference — user targeting, ",{"type":40,"tag":54,"props":1651,"children":1653},{"className":1652},[],[1654],{"type":45,"value":67},{"type":45,"value":1656}," CLI subcommands, custom adapter configuration, and Flags Explorer setup — see ",{"type":40,"tag":81,"props":1658,"children":1660},{"href":1659},"references\u002Fproviders.md#vercel",[1661],{"type":45,"value":1662},"references\u002Fproviders.md",{"type":45,"value":943},{"type":40,"tag":99,"props":1665,"children":1667},{"id":1666},"declaring-flags",[1668],{"type":45,"value":1669},"Declaring flags",{"type":40,"tag":48,"props":1671,"children":1672},{},[1673,1675,1680,1682,1686,1688,1692,1694,1700],{"type":45,"value":1674},"When using Vercel Flags, declare flags with ",{"type":40,"tag":54,"props":1676,"children":1678},{"className":1677},[],[1679],{"type":45,"value":1069},{"type":45,"value":1681}," as shown in the ",{"type":40,"tag":81,"props":1683,"children":1684},{"href":1639},[1685],{"type":45,"value":1642},{"type":45,"value":1687},". For other providers, see ",{"type":40,"tag":81,"props":1689,"children":1690},{"href":1662},[1691],{"type":45,"value":1662},{"type":45,"value":1693},". Below are the general ",{"type":40,"tag":54,"props":1695,"children":1697},{"className":1696},[],[1698],{"type":45,"value":1699},"flag()",{"type":45,"value":1701}," patterns.",{"type":40,"tag":106,"props":1703,"children":1705},{"id":1704},"basic-flag",[1706],{"type":45,"value":1707},"Basic flag",{"type":40,"tag":118,"props":1709,"children":1711},{"className":120,"code":1710,"language":122,"meta":123,"style":123},"import { flag } from 'flags\u002Fnext'; \u002F\u002F or 'flags\u002Fsveltekit'\n\nexport const showBanner = flag\u003Cboolean>({\n  key: 'show-banner',\n  description: 'Show promotional banner',\n  defaultValue: false,\n  options: [\n    { value: false, label: 'Hide' },\n    { value: true, label: 'Show' },\n  ],\n  decide() { return false; },\n});\n",[1712],{"type":40,"tag":54,"props":1713,"children":1714},{"__ignoreMap":123},[1715,1760,1767,1814,1842,1871,1891,1908,1960,2010,2023,2055],{"type":40,"tag":129,"props":1716,"children":1717},{"class":131,"line":132},[1718,1722,1726,1730,1734,1738,1742,1746,1750,1754],{"type":40,"tag":129,"props":1719,"children":1720},{"style":136},[1721],{"type":45,"value":139},{"type":40,"tag":129,"props":1723,"children":1724},{"style":142},[1725],{"type":45,"value":145},{"type":40,"tag":129,"props":1727,"children":1728},{"style":148},[1729],{"type":45,"value":151},{"type":40,"tag":129,"props":1731,"children":1732},{"style":142},[1733],{"type":45,"value":156},{"type":40,"tag":129,"props":1735,"children":1736},{"style":136},[1737],{"type":45,"value":161},{"type":40,"tag":129,"props":1739,"children":1740},{"style":142},[1741],{"type":45,"value":166},{"type":40,"tag":129,"props":1743,"children":1744},{"style":169},[1745],{"type":45,"value":172},{"type":40,"tag":129,"props":1747,"children":1748},{"style":142},[1749],{"type":45,"value":177},{"type":40,"tag":129,"props":1751,"children":1752},{"style":142},[1753],{"type":45,"value":299},{"type":40,"tag":129,"props":1755,"children":1757},{"style":1756},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[1758],{"type":45,"value":1759}," \u002F\u002F or 'flags\u002Fsveltekit'\n",{"type":40,"tag":129,"props":1761,"children":1762},{"class":131,"line":185},[1763],{"type":40,"tag":129,"props":1764,"children":1765},{"emptyLinePlaceholder":189},[1766],{"type":45,"value":192},{"type":40,"tag":129,"props":1768,"children":1769},{"class":131,"line":195},[1770,1774,1778,1783,1787,1791,1796,1801,1806,1810],{"type":40,"tag":129,"props":1771,"children":1772},{"style":136},[1773],{"type":45,"value":201},{"type":40,"tag":129,"props":1775,"children":1776},{"style":204},[1777],{"type":45,"value":207},{"type":40,"tag":129,"props":1779,"children":1780},{"style":148},[1781],{"type":45,"value":1782}," showBanner ",{"type":40,"tag":129,"props":1784,"children":1785},{"style":142},[1786],{"type":45,"value":217},{"type":40,"tag":129,"props":1788,"children":1789},{"style":220},[1790],{"type":45,"value":151},{"type":40,"tag":129,"props":1792,"children":1793},{"style":142},[1794],{"type":45,"value":1795},"\u003C",{"type":40,"tag":129,"props":1797,"children":1798},{"style":907},[1799],{"type":45,"value":1800},"boolean",{"type":40,"tag":129,"props":1802,"children":1803},{"style":142},[1804],{"type":45,"value":1805},">",{"type":40,"tag":129,"props":1807,"children":1808},{"style":148},[1809],{"type":45,"value":227},{"type":40,"tag":129,"props":1811,"children":1812},{"style":142},[1813],{"type":45,"value":232},{"type":40,"tag":129,"props":1815,"children":1816},{"class":131,"line":235},[1817,1821,1825,1829,1834,1838],{"type":40,"tag":129,"props":1818,"children":1819},{"style":239},[1820],{"type":45,"value":242},{"type":40,"tag":129,"props":1822,"children":1823},{"style":142},[1824],{"type":45,"value":247},{"type":40,"tag":129,"props":1826,"children":1827},{"style":142},[1828],{"type":45,"value":166},{"type":40,"tag":129,"props":1830,"children":1831},{"style":169},[1832],{"type":45,"value":1833},"show-banner",{"type":40,"tag":129,"props":1835,"children":1836},{"style":142},[1837],{"type":45,"value":177},{"type":40,"tag":129,"props":1839,"children":1840},{"style":142},[1841],{"type":45,"value":265},{"type":40,"tag":129,"props":1843,"children":1844},{"class":131,"line":268},[1845,1850,1854,1858,1863,1867],{"type":40,"tag":129,"props":1846,"children":1847},{"style":239},[1848],{"type":45,"value":1849},"  description",{"type":40,"tag":129,"props":1851,"children":1852},{"style":142},[1853],{"type":45,"value":247},{"type":40,"tag":129,"props":1855,"children":1856},{"style":142},[1857],{"type":45,"value":166},{"type":40,"tag":129,"props":1859,"children":1860},{"style":169},[1861],{"type":45,"value":1862},"Show promotional banner",{"type":40,"tag":129,"props":1864,"children":1865},{"style":142},[1866],{"type":45,"value":177},{"type":40,"tag":129,"props":1868,"children":1869},{"style":142},[1870],{"type":45,"value":265},{"type":40,"tag":129,"props":1872,"children":1873},{"class":131,"line":307},[1874,1879,1883,1887],{"type":40,"tag":129,"props":1875,"children":1876},{"style":239},[1877],{"type":45,"value":1878},"  defaultValue",{"type":40,"tag":129,"props":1880,"children":1881},{"style":142},[1882],{"type":45,"value":247},{"type":40,"tag":129,"props":1884,"children":1885},{"style":291},[1886],{"type":45,"value":294},{"type":40,"tag":129,"props":1888,"children":1889},{"style":142},[1890],{"type":45,"value":265},{"type":40,"tag":129,"props":1892,"children":1893},{"class":131,"line":325},[1894,1899,1903],{"type":40,"tag":129,"props":1895,"children":1896},{"style":239},[1897],{"type":45,"value":1898},"  options",{"type":40,"tag":129,"props":1900,"children":1901},{"style":142},[1902],{"type":45,"value":247},{"type":40,"tag":129,"props":1904,"children":1905},{"style":148},[1906],{"type":45,"value":1907}," [\n",{"type":40,"tag":129,"props":1909,"children":1910},{"class":131,"line":333},[1911,1916,1921,1925,1929,1934,1939,1943,1947,1952,1956],{"type":40,"tag":129,"props":1912,"children":1913},{"style":142},[1914],{"type":45,"value":1915},"    {",{"type":40,"tag":129,"props":1917,"children":1918},{"style":239},[1919],{"type":45,"value":1920}," value",{"type":40,"tag":129,"props":1922,"children":1923},{"style":142},[1924],{"type":45,"value":247},{"type":40,"tag":129,"props":1926,"children":1927},{"style":291},[1928],{"type":45,"value":294},{"type":40,"tag":129,"props":1930,"children":1931},{"style":142},[1932],{"type":45,"value":1933},",",{"type":40,"tag":129,"props":1935,"children":1936},{"style":239},[1937],{"type":45,"value":1938}," label",{"type":40,"tag":129,"props":1940,"children":1941},{"style":142},[1942],{"type":45,"value":247},{"type":40,"tag":129,"props":1944,"children":1945},{"style":142},[1946],{"type":45,"value":166},{"type":40,"tag":129,"props":1948,"children":1949},{"style":169},[1950],{"type":45,"value":1951},"Hide",{"type":40,"tag":129,"props":1953,"children":1954},{"style":142},[1955],{"type":45,"value":177},{"type":40,"tag":129,"props":1957,"children":1958},{"style":142},[1959],{"type":45,"value":304},{"type":40,"tag":129,"props":1961,"children":1963},{"class":131,"line":1962},9,[1964,1968,1972,1976,1981,1985,1989,1993,1997,2002,2006],{"type":40,"tag":129,"props":1965,"children":1966},{"style":142},[1967],{"type":45,"value":1915},{"type":40,"tag":129,"props":1969,"children":1970},{"style":239},[1971],{"type":45,"value":1920},{"type":40,"tag":129,"props":1973,"children":1974},{"style":142},[1975],{"type":45,"value":247},{"type":40,"tag":129,"props":1977,"children":1978},{"style":291},[1979],{"type":45,"value":1980}," true",{"type":40,"tag":129,"props":1982,"children":1983},{"style":142},[1984],{"type":45,"value":1933},{"type":40,"tag":129,"props":1986,"children":1987},{"style":239},[1988],{"type":45,"value":1938},{"type":40,"tag":129,"props":1990,"children":1991},{"style":142},[1992],{"type":45,"value":247},{"type":40,"tag":129,"props":1994,"children":1995},{"style":142},[1996],{"type":45,"value":166},{"type":40,"tag":129,"props":1998,"children":1999},{"style":169},[2000],{"type":45,"value":2001},"Show",{"type":40,"tag":129,"props":2003,"children":2004},{"style":142},[2005],{"type":45,"value":177},{"type":40,"tag":129,"props":2007,"children":2008},{"style":142},[2009],{"type":45,"value":304},{"type":40,"tag":129,"props":2011,"children":2013},{"class":131,"line":2012},10,[2014,2019],{"type":40,"tag":129,"props":2015,"children":2016},{"style":148},[2017],{"type":45,"value":2018},"  ]",{"type":40,"tag":129,"props":2020,"children":2021},{"style":142},[2022],{"type":45,"value":265},{"type":40,"tag":129,"props":2024,"children":2026},{"class":131,"line":2025},11,[2027,2031,2035,2039,2043,2047,2051],{"type":40,"tag":129,"props":2028,"children":2029},{"style":239},[2030],{"type":45,"value":274},{"type":40,"tag":129,"props":2032,"children":2033},{"style":142},[2034],{"type":45,"value":279},{"type":40,"tag":129,"props":2036,"children":2037},{"style":142},[2038],{"type":45,"value":145},{"type":40,"tag":129,"props":2040,"children":2041},{"style":136},[2042],{"type":45,"value":288},{"type":40,"tag":129,"props":2044,"children":2045},{"style":291},[2046],{"type":45,"value":294},{"type":40,"tag":129,"props":2048,"children":2049},{"style":142},[2050],{"type":45,"value":299},{"type":40,"tag":129,"props":2052,"children":2053},{"style":142},[2054],{"type":45,"value":304},{"type":40,"tag":129,"props":2056,"children":2058},{"class":131,"line":2057},12,[2059,2063,2067],{"type":40,"tag":129,"props":2060,"children":2061},{"style":142},[2062],{"type":45,"value":313},{"type":40,"tag":129,"props":2064,"children":2065},{"style":148},[2066],{"type":45,"value":318},{"type":40,"tag":129,"props":2068,"children":2069},{"style":142},[2070],{"type":45,"value":182},{"type":40,"tag":106,"props":2072,"children":2074},{"id":2073},"flag-with-evaluation-context",[2075],{"type":45,"value":2076},"Flag with evaluation context",{"type":40,"tag":48,"props":2078,"children":2079},{},[2080,2082,2088,2090,2095],{"type":45,"value":2081},"Use ",{"type":40,"tag":54,"props":2083,"children":2085},{"className":2084},[],[2086],{"type":45,"value":2087},"identify",{"type":45,"value":2089}," to establish who the request is for. The returned entities are passed to ",{"type":40,"tag":54,"props":2091,"children":2093},{"className":2092},[],[2094],{"type":45,"value":394},{"type":45,"value":247},{"type":40,"tag":118,"props":2097,"children":2099},{"className":120,"code":2098,"language":122,"meta":123,"style":123},"import { dedupe, flag } from 'flags\u002Fnext';\nimport type { ReadonlyRequestCookies } from 'flags';\n\ninterface Entities {\n  user?: { id: string };\n}\n\nconst identify = dedupe(\n  ({ cookies }: { cookies: ReadonlyRequestCookies }): Entities => {\n    const userId = cookies.get('user-id')?.value;\n    return { user: userId ? { id: userId } : undefined };\n  },\n);\n\nexport const dashboardFlag = flag\u003Cboolean, Entities>({\n  key: 'new-dashboard',\n  identify,\n  decide({ entities }) {\n    if (!entities?.user) return false;\n    return ['user1', 'user2'].includes(entities.user.id);\n  },\n});\n",[2100],{"type":40,"tag":54,"props":2101,"children":2102},{"__ignoreMap":123},[2103,2151,2196,2203,2220,2256,2263,2270,2295,2348,2413,2476,2484,2496,2504,2557,2586,2599,2626,2677,2767,2775],{"type":40,"tag":129,"props":2104,"children":2105},{"class":131,"line":132},[2106,2110,2114,2119,2123,2127,2131,2135,2139,2143,2147],{"type":40,"tag":129,"props":2107,"children":2108},{"style":136},[2109],{"type":45,"value":139},{"type":40,"tag":129,"props":2111,"children":2112},{"style":142},[2113],{"type":45,"value":145},{"type":40,"tag":129,"props":2115,"children":2116},{"style":148},[2117],{"type":45,"value":2118}," dedupe",{"type":40,"tag":129,"props":2120,"children":2121},{"style":142},[2122],{"type":45,"value":1933},{"type":40,"tag":129,"props":2124,"children":2125},{"style":148},[2126],{"type":45,"value":151},{"type":40,"tag":129,"props":2128,"children":2129},{"style":142},[2130],{"type":45,"value":156},{"type":40,"tag":129,"props":2132,"children":2133},{"style":136},[2134],{"type":45,"value":161},{"type":40,"tag":129,"props":2136,"children":2137},{"style":142},[2138],{"type":45,"value":166},{"type":40,"tag":129,"props":2140,"children":2141},{"style":169},[2142],{"type":45,"value":172},{"type":40,"tag":129,"props":2144,"children":2145},{"style":142},[2146],{"type":45,"value":177},{"type":40,"tag":129,"props":2148,"children":2149},{"style":142},[2150],{"type":45,"value":182},{"type":40,"tag":129,"props":2152,"children":2153},{"class":131,"line":185},[2154,2158,2163,2167,2172,2176,2180,2184,2188,2192],{"type":40,"tag":129,"props":2155,"children":2156},{"style":136},[2157],{"type":45,"value":139},{"type":40,"tag":129,"props":2159,"children":2160},{"style":136},[2161],{"type":45,"value":2162}," type",{"type":40,"tag":129,"props":2164,"children":2165},{"style":142},[2166],{"type":45,"value":145},{"type":40,"tag":129,"props":2168,"children":2169},{"style":148},[2170],{"type":45,"value":2171}," ReadonlyRequestCookies",{"type":40,"tag":129,"props":2173,"children":2174},{"style":142},[2175],{"type":45,"value":156},{"type":40,"tag":129,"props":2177,"children":2178},{"style":136},[2179],{"type":45,"value":161},{"type":40,"tag":129,"props":2181,"children":2182},{"style":142},[2183],{"type":45,"value":166},{"type":40,"tag":129,"props":2185,"children":2186},{"style":169},[2187],{"type":45,"value":59},{"type":40,"tag":129,"props":2189,"children":2190},{"style":142},[2191],{"type":45,"value":177},{"type":40,"tag":129,"props":2193,"children":2194},{"style":142},[2195],{"type":45,"value":182},{"type":40,"tag":129,"props":2197,"children":2198},{"class":131,"line":195},[2199],{"type":40,"tag":129,"props":2200,"children":2201},{"emptyLinePlaceholder":189},[2202],{"type":45,"value":192},{"type":40,"tag":129,"props":2204,"children":2205},{"class":131,"line":235},[2206,2211,2216],{"type":40,"tag":129,"props":2207,"children":2208},{"style":204},[2209],{"type":45,"value":2210},"interface",{"type":40,"tag":129,"props":2212,"children":2213},{"style":907},[2214],{"type":45,"value":2215}," Entities",{"type":40,"tag":129,"props":2217,"children":2218},{"style":142},[2219],{"type":45,"value":1390},{"type":40,"tag":129,"props":2221,"children":2222},{"class":131,"line":268},[2223,2228,2233,2237,2242,2246,2251],{"type":40,"tag":129,"props":2224,"children":2225},{"style":239},[2226],{"type":45,"value":2227},"  user",{"type":40,"tag":129,"props":2229,"children":2230},{"style":142},[2231],{"type":45,"value":2232},"?:",{"type":40,"tag":129,"props":2234,"children":2235},{"style":142},[2236],{"type":45,"value":145},{"type":40,"tag":129,"props":2238,"children":2239},{"style":239},[2240],{"type":45,"value":2241}," id",{"type":40,"tag":129,"props":2243,"children":2244},{"style":142},[2245],{"type":45,"value":247},{"type":40,"tag":129,"props":2247,"children":2248},{"style":907},[2249],{"type":45,"value":2250}," string",{"type":40,"tag":129,"props":2252,"children":2253},{"style":142},[2254],{"type":45,"value":2255}," };\n",{"type":40,"tag":129,"props":2257,"children":2258},{"class":131,"line":307},[2259],{"type":40,"tag":129,"props":2260,"children":2261},{"style":142},[2262],{"type":45,"value":1510},{"type":40,"tag":129,"props":2264,"children":2265},{"class":131,"line":325},[2266],{"type":40,"tag":129,"props":2267,"children":2268},{"emptyLinePlaceholder":189},[2269],{"type":45,"value":192},{"type":40,"tag":129,"props":2271,"children":2272},{"class":131,"line":333},[2273,2277,2282,2286,2290],{"type":40,"tag":129,"props":2274,"children":2275},{"style":204},[2276],{"type":45,"value":339},{"type":40,"tag":129,"props":2278,"children":2279},{"style":148},[2280],{"type":45,"value":2281}," identify ",{"type":40,"tag":129,"props":2283,"children":2284},{"style":142},[2285],{"type":45,"value":217},{"type":40,"tag":129,"props":2287,"children":2288},{"style":220},[2289],{"type":45,"value":2118},{"type":40,"tag":129,"props":2291,"children":2292},{"style":148},[2293],{"type":45,"value":2294},"(\n",{"type":40,"tag":129,"props":2296,"children":2297},{"class":131,"line":1962},[2298,2303,2309,2314,2318,2322,2326,2330,2335,2339,2344],{"type":40,"tag":129,"props":2299,"children":2300},{"style":142},[2301],{"type":45,"value":2302},"  ({",{"type":40,"tag":129,"props":2304,"children":2306},{"style":2305},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic",[2307],{"type":45,"value":2308}," cookies",{"type":40,"tag":129,"props":2310,"children":2311},{"style":142},[2312],{"type":45,"value":2313}," }:",{"type":40,"tag":129,"props":2315,"children":2316},{"style":142},[2317],{"type":45,"value":145},{"type":40,"tag":129,"props":2319,"children":2320},{"style":239},[2321],{"type":45,"value":2308},{"type":40,"tag":129,"props":2323,"children":2324},{"style":142},[2325],{"type":45,"value":247},{"type":40,"tag":129,"props":2327,"children":2328},{"style":907},[2329],{"type":45,"value":2171},{"type":40,"tag":129,"props":2331,"children":2332},{"style":142},[2333],{"type":45,"value":2334}," }):",{"type":40,"tag":129,"props":2336,"children":2337},{"style":907},[2338],{"type":45,"value":2215},{"type":40,"tag":129,"props":2340,"children":2341},{"style":204},[2342],{"type":45,"value":2343}," =>",{"type":40,"tag":129,"props":2345,"children":2346},{"style":142},[2347],{"type":45,"value":1390},{"type":40,"tag":129,"props":2349,"children":2350},{"class":131,"line":2012},[2351,2356,2361,2365,2369,2373,2378,2382,2386,2391,2395,2399,2404,2409],{"type":40,"tag":129,"props":2352,"children":2353},{"style":204},[2354],{"type":45,"value":2355},"    const",{"type":40,"tag":129,"props":2357,"children":2358},{"style":148},[2359],{"type":45,"value":2360}," userId",{"type":40,"tag":129,"props":2362,"children":2363},{"style":142},[2364],{"type":45,"value":1408},{"type":40,"tag":129,"props":2366,"children":2367},{"style":148},[2368],{"type":45,"value":2308},{"type":40,"tag":129,"props":2370,"children":2371},{"style":142},[2372],{"type":45,"value":943},{"type":40,"tag":129,"props":2374,"children":2375},{"style":220},[2376],{"type":45,"value":2377},"get",{"type":40,"tag":129,"props":2379,"children":2380},{"style":239},[2381],{"type":45,"value":227},{"type":40,"tag":129,"props":2383,"children":2384},{"style":142},[2385],{"type":45,"value":177},{"type":40,"tag":129,"props":2387,"children":2388},{"style":169},[2389],{"type":45,"value":2390},"user-id",{"type":40,"tag":129,"props":2392,"children":2393},{"style":142},[2394],{"type":45,"value":177},{"type":40,"tag":129,"props":2396,"children":2397},{"style":239},[2398],{"type":45,"value":318},{"type":40,"tag":129,"props":2400,"children":2401},{"style":142},[2402],{"type":45,"value":2403},"?.",{"type":40,"tag":129,"props":2405,"children":2406},{"style":148},[2407],{"type":45,"value":2408},"value",{"type":40,"tag":129,"props":2410,"children":2411},{"style":142},[2412],{"type":45,"value":182},{"type":40,"tag":129,"props":2414,"children":2415},{"class":131,"line":2025},[2416,2421,2425,2430,2434,2438,2443,2447,2451,2455,2459,2463,2467,2472],{"type":40,"tag":129,"props":2417,"children":2418},{"style":136},[2419],{"type":45,"value":2420},"    return",{"type":40,"tag":129,"props":2422,"children":2423},{"style":142},[2424],{"type":45,"value":145},{"type":40,"tag":129,"props":2426,"children":2427},{"style":239},[2428],{"type":45,"value":2429}," user",{"type":40,"tag":129,"props":2431,"children":2432},{"style":142},[2433],{"type":45,"value":247},{"type":40,"tag":129,"props":2435,"children":2436},{"style":148},[2437],{"type":45,"value":2360},{"type":40,"tag":129,"props":2439,"children":2440},{"style":142},[2441],{"type":45,"value":2442}," ?",{"type":40,"tag":129,"props":2444,"children":2445},{"style":142},[2446],{"type":45,"value":145},{"type":40,"tag":129,"props":2448,"children":2449},{"style":239},[2450],{"type":45,"value":2241},{"type":40,"tag":129,"props":2452,"children":2453},{"style":142},[2454],{"type":45,"value":247},{"type":40,"tag":129,"props":2456,"children":2457},{"style":148},[2458],{"type":45,"value":2360},{"type":40,"tag":129,"props":2460,"children":2461},{"style":142},[2462],{"type":45,"value":156},{"type":40,"tag":129,"props":2464,"children":2465},{"style":142},[2466],{"type":45,"value":1475},{"type":40,"tag":129,"props":2468,"children":2469},{"style":142},[2470],{"type":45,"value":2471}," undefined",{"type":40,"tag":129,"props":2473,"children":2474},{"style":142},[2475],{"type":45,"value":2255},{"type":40,"tag":129,"props":2477,"children":2478},{"class":131,"line":2057},[2479],{"type":40,"tag":129,"props":2480,"children":2481},{"style":142},[2482],{"type":45,"value":2483},"  },\n",{"type":40,"tag":129,"props":2485,"children":2487},{"class":131,"line":2486},13,[2488,2492],{"type":40,"tag":129,"props":2489,"children":2490},{"style":148},[2491],{"type":45,"value":318},{"type":40,"tag":129,"props":2493,"children":2494},{"style":142},[2495],{"type":45,"value":182},{"type":40,"tag":129,"props":2497,"children":2499},{"class":131,"line":2498},14,[2500],{"type":40,"tag":129,"props":2501,"children":2502},{"emptyLinePlaceholder":189},[2503],{"type":45,"value":192},{"type":40,"tag":129,"props":2505,"children":2507},{"class":131,"line":2506},15,[2508,2512,2516,2521,2525,2529,2533,2537,2541,2545,2549,2553],{"type":40,"tag":129,"props":2509,"children":2510},{"style":136},[2511],{"type":45,"value":201},{"type":40,"tag":129,"props":2513,"children":2514},{"style":204},[2515],{"type":45,"value":207},{"type":40,"tag":129,"props":2517,"children":2518},{"style":148},[2519],{"type":45,"value":2520}," dashboardFlag ",{"type":40,"tag":129,"props":2522,"children":2523},{"style":142},[2524],{"type":45,"value":217},{"type":40,"tag":129,"props":2526,"children":2527},{"style":220},[2528],{"type":45,"value":151},{"type":40,"tag":129,"props":2530,"children":2531},{"style":142},[2532],{"type":45,"value":1795},{"type":40,"tag":129,"props":2534,"children":2535},{"style":907},[2536],{"type":45,"value":1800},{"type":40,"tag":129,"props":2538,"children":2539},{"style":142},[2540],{"type":45,"value":1933},{"type":40,"tag":129,"props":2542,"children":2543},{"style":907},[2544],{"type":45,"value":2215},{"type":40,"tag":129,"props":2546,"children":2547},{"style":142},[2548],{"type":45,"value":1805},{"type":40,"tag":129,"props":2550,"children":2551},{"style":148},[2552],{"type":45,"value":227},{"type":40,"tag":129,"props":2554,"children":2555},{"style":142},[2556],{"type":45,"value":232},{"type":40,"tag":129,"props":2558,"children":2560},{"class":131,"line":2559},16,[2561,2565,2569,2573,2578,2582],{"type":40,"tag":129,"props":2562,"children":2563},{"style":239},[2564],{"type":45,"value":242},{"type":40,"tag":129,"props":2566,"children":2567},{"style":142},[2568],{"type":45,"value":247},{"type":40,"tag":129,"props":2570,"children":2571},{"style":142},[2572],{"type":45,"value":166},{"type":40,"tag":129,"props":2574,"children":2575},{"style":169},[2576],{"type":45,"value":2577},"new-dashboard",{"type":40,"tag":129,"props":2579,"children":2580},{"style":142},[2581],{"type":45,"value":177},{"type":40,"tag":129,"props":2583,"children":2584},{"style":142},[2585],{"type":45,"value":265},{"type":40,"tag":129,"props":2587,"children":2589},{"class":131,"line":2588},17,[2590,2595],{"type":40,"tag":129,"props":2591,"children":2592},{"style":148},[2593],{"type":45,"value":2594},"  identify",{"type":40,"tag":129,"props":2596,"children":2597},{"style":142},[2598],{"type":45,"value":265},{"type":40,"tag":129,"props":2600,"children":2602},{"class":131,"line":2601},18,[2603,2607,2612,2617,2622],{"type":40,"tag":129,"props":2604,"children":2605},{"style":239},[2606],{"type":45,"value":274},{"type":40,"tag":129,"props":2608,"children":2609},{"style":142},[2610],{"type":45,"value":2611},"({",{"type":40,"tag":129,"props":2613,"children":2614},{"style":2305},[2615],{"type":45,"value":2616}," entities",{"type":40,"tag":129,"props":2618,"children":2619},{"style":142},[2620],{"type":45,"value":2621}," })",{"type":40,"tag":129,"props":2623,"children":2624},{"style":142},[2625],{"type":45,"value":1390},{"type":40,"tag":129,"props":2627,"children":2629},{"class":131,"line":2628},19,[2630,2635,2640,2645,2650,2654,2659,2664,2669,2673],{"type":40,"tag":129,"props":2631,"children":2632},{"style":136},[2633],{"type":45,"value":2634},"    if",{"type":40,"tag":129,"props":2636,"children":2637},{"style":239},[2638],{"type":45,"value":2639}," (",{"type":40,"tag":129,"props":2641,"children":2642},{"style":142},[2643],{"type":45,"value":2644},"!",{"type":40,"tag":129,"props":2646,"children":2647},{"style":148},[2648],{"type":45,"value":2649},"entities",{"type":40,"tag":129,"props":2651,"children":2652},{"style":142},[2653],{"type":45,"value":2403},{"type":40,"tag":129,"props":2655,"children":2656},{"style":148},[2657],{"type":45,"value":2658},"user",{"type":40,"tag":129,"props":2660,"children":2661},{"style":239},[2662],{"type":45,"value":2663},") ",{"type":40,"tag":129,"props":2665,"children":2666},{"style":136},[2667],{"type":45,"value":2668},"return",{"type":40,"tag":129,"props":2670,"children":2671},{"style":291},[2672],{"type":45,"value":294},{"type":40,"tag":129,"props":2674,"children":2675},{"style":142},[2676],{"type":45,"value":182},{"type":40,"tag":129,"props":2678,"children":2680},{"class":131,"line":2679},20,[2681,2685,2690,2694,2699,2703,2707,2711,2716,2720,2725,2729,2734,2738,2742,2746,2750,2754,2759,2763],{"type":40,"tag":129,"props":2682,"children":2683},{"style":136},[2684],{"type":45,"value":2420},{"type":40,"tag":129,"props":2686,"children":2687},{"style":239},[2688],{"type":45,"value":2689}," [",{"type":40,"tag":129,"props":2691,"children":2692},{"style":142},[2693],{"type":45,"value":177},{"type":40,"tag":129,"props":2695,"children":2696},{"style":169},[2697],{"type":45,"value":2698},"user1",{"type":40,"tag":129,"props":2700,"children":2701},{"style":142},[2702],{"type":45,"value":177},{"type":40,"tag":129,"props":2704,"children":2705},{"style":142},[2706],{"type":45,"value":1933},{"type":40,"tag":129,"props":2708,"children":2709},{"style":142},[2710],{"type":45,"value":166},{"type":40,"tag":129,"props":2712,"children":2713},{"style":169},[2714],{"type":45,"value":2715},"user2",{"type":40,"tag":129,"props":2717,"children":2718},{"style":142},[2719],{"type":45,"value":177},{"type":40,"tag":129,"props":2721,"children":2722},{"style":239},[2723],{"type":45,"value":2724},"]",{"type":40,"tag":129,"props":2726,"children":2727},{"style":142},[2728],{"type":45,"value":943},{"type":40,"tag":129,"props":2730,"children":2731},{"style":220},[2732],{"type":45,"value":2733},"includes",{"type":40,"tag":129,"props":2735,"children":2736},{"style":239},[2737],{"type":45,"value":227},{"type":40,"tag":129,"props":2739,"children":2740},{"style":148},[2741],{"type":45,"value":2649},{"type":40,"tag":129,"props":2743,"children":2744},{"style":142},[2745],{"type":45,"value":943},{"type":40,"tag":129,"props":2747,"children":2748},{"style":148},[2749],{"type":45,"value":2658},{"type":40,"tag":129,"props":2751,"children":2752},{"style":142},[2753],{"type":45,"value":943},{"type":40,"tag":129,"props":2755,"children":2756},{"style":148},[2757],{"type":45,"value":2758},"id",{"type":40,"tag":129,"props":2760,"children":2761},{"style":239},[2762],{"type":45,"value":318},{"type":40,"tag":129,"props":2764,"children":2765},{"style":142},[2766],{"type":45,"value":182},{"type":40,"tag":129,"props":2768,"children":2770},{"class":131,"line":2769},21,[2771],{"type":40,"tag":129,"props":2772,"children":2773},{"style":142},[2774],{"type":45,"value":2483},{"type":40,"tag":129,"props":2776,"children":2778},{"class":131,"line":2777},22,[2779,2783,2787],{"type":40,"tag":129,"props":2780,"children":2781},{"style":142},[2782],{"type":45,"value":313},{"type":40,"tag":129,"props":2784,"children":2785},{"style":148},[2786],{"type":45,"value":318},{"type":40,"tag":129,"props":2788,"children":2789},{"style":142},[2790],{"type":45,"value":182},{"type":40,"tag":106,"props":2792,"children":2794},{"id":2793},"flag-with-another-adapter",[2795],{"type":45,"value":2796},"Flag with another adapter",{"type":40,"tag":48,"props":2798,"children":2799},{},[2800,2802,2807,2808,2813],{"type":45,"value":2801},"Adapters connect flags to third-party providers. Each adapter replaces ",{"type":40,"tag":54,"props":2803,"children":2805},{"className":2804},[],[2806],{"type":45,"value":394},{"type":45,"value":396},{"type":40,"tag":54,"props":2809,"children":2811},{"className":2810},[],[2812],{"type":45,"value":402},{"type":45,"value":247},{"type":40,"tag":118,"props":2815,"children":2817},{"className":120,"code":2816,"language":122,"meta":123,"style":123},"import { flag } from 'flags\u002Fnext';\nimport { statsigAdapter } from '@flags-sdk\u002Fstatsig';\n\nexport const myGate = flag({\n  key: 'my_gate',\n  adapter: statsigAdapter.featureGate((gate) => gate.value),\n  identify,\n});\n",[2818],{"type":40,"tag":54,"props":2819,"children":2820},{"__ignoreMap":123},[2821,2860,2901,2908,2940,2968,3031,3042],{"type":40,"tag":129,"props":2822,"children":2823},{"class":131,"line":132},[2824,2828,2832,2836,2840,2844,2848,2852,2856],{"type":40,"tag":129,"props":2825,"children":2826},{"style":136},[2827],{"type":45,"value":139},{"type":40,"tag":129,"props":2829,"children":2830},{"style":142},[2831],{"type":45,"value":145},{"type":40,"tag":129,"props":2833,"children":2834},{"style":148},[2835],{"type":45,"value":151},{"type":40,"tag":129,"props":2837,"children":2838},{"style":142},[2839],{"type":45,"value":156},{"type":40,"tag":129,"props":2841,"children":2842},{"style":136},[2843],{"type":45,"value":161},{"type":40,"tag":129,"props":2845,"children":2846},{"style":142},[2847],{"type":45,"value":166},{"type":40,"tag":129,"props":2849,"children":2850},{"style":169},[2851],{"type":45,"value":172},{"type":40,"tag":129,"props":2853,"children":2854},{"style":142},[2855],{"type":45,"value":177},{"type":40,"tag":129,"props":2857,"children":2858},{"style":142},[2859],{"type":45,"value":182},{"type":40,"tag":129,"props":2861,"children":2862},{"class":131,"line":185},[2863,2867,2871,2876,2880,2884,2888,2893,2897],{"type":40,"tag":129,"props":2864,"children":2865},{"style":136},[2866],{"type":45,"value":139},{"type":40,"tag":129,"props":2868,"children":2869},{"style":142},[2870],{"type":45,"value":145},{"type":40,"tag":129,"props":2872,"children":2873},{"style":148},[2874],{"type":45,"value":2875}," statsigAdapter",{"type":40,"tag":129,"props":2877,"children":2878},{"style":142},[2879],{"type":45,"value":156},{"type":40,"tag":129,"props":2881,"children":2882},{"style":136},[2883],{"type":45,"value":161},{"type":40,"tag":129,"props":2885,"children":2886},{"style":142},[2887],{"type":45,"value":166},{"type":40,"tag":129,"props":2889,"children":2890},{"style":169},[2891],{"type":45,"value":2892},"@flags-sdk\u002Fstatsig",{"type":40,"tag":129,"props":2894,"children":2895},{"style":142},[2896],{"type":45,"value":177},{"type":40,"tag":129,"props":2898,"children":2899},{"style":142},[2900],{"type":45,"value":182},{"type":40,"tag":129,"props":2902,"children":2903},{"class":131,"line":195},[2904],{"type":40,"tag":129,"props":2905,"children":2906},{"emptyLinePlaceholder":189},[2907],{"type":45,"value":192},{"type":40,"tag":129,"props":2909,"children":2910},{"class":131,"line":235},[2911,2915,2919,2924,2928,2932,2936],{"type":40,"tag":129,"props":2912,"children":2913},{"style":136},[2914],{"type":45,"value":201},{"type":40,"tag":129,"props":2916,"children":2917},{"style":204},[2918],{"type":45,"value":207},{"type":40,"tag":129,"props":2920,"children":2921},{"style":148},[2922],{"type":45,"value":2923}," myGate ",{"type":40,"tag":129,"props":2925,"children":2926},{"style":142},[2927],{"type":45,"value":217},{"type":40,"tag":129,"props":2929,"children":2930},{"style":220},[2931],{"type":45,"value":151},{"type":40,"tag":129,"props":2933,"children":2934},{"style":148},[2935],{"type":45,"value":227},{"type":40,"tag":129,"props":2937,"children":2938},{"style":142},[2939],{"type":45,"value":232},{"type":40,"tag":129,"props":2941,"children":2942},{"class":131,"line":268},[2943,2947,2951,2955,2960,2964],{"type":40,"tag":129,"props":2944,"children":2945},{"style":239},[2946],{"type":45,"value":242},{"type":40,"tag":129,"props":2948,"children":2949},{"style":142},[2950],{"type":45,"value":247},{"type":40,"tag":129,"props":2952,"children":2953},{"style":142},[2954],{"type":45,"value":166},{"type":40,"tag":129,"props":2956,"children":2957},{"style":169},[2958],{"type":45,"value":2959},"my_gate",{"type":40,"tag":129,"props":2961,"children":2962},{"style":142},[2963],{"type":45,"value":177},{"type":40,"tag":129,"props":2965,"children":2966},{"style":142},[2967],{"type":45,"value":265},{"type":40,"tag":129,"props":2969,"children":2970},{"class":131,"line":307},[2971,2975,2979,2983,2987,2992,2996,3000,3005,3009,3013,3018,3022,3027],{"type":40,"tag":129,"props":2972,"children":2973},{"style":239},[2974],{"type":45,"value":571},{"type":40,"tag":129,"props":2976,"children":2977},{"style":142},[2978],{"type":45,"value":247},{"type":40,"tag":129,"props":2980,"children":2981},{"style":148},[2982],{"type":45,"value":2875},{"type":40,"tag":129,"props":2984,"children":2985},{"style":142},[2986],{"type":45,"value":943},{"type":40,"tag":129,"props":2988,"children":2989},{"style":220},[2990],{"type":45,"value":2991},"featureGate",{"type":40,"tag":129,"props":2993,"children":2994},{"style":148},[2995],{"type":45,"value":227},{"type":40,"tag":129,"props":2997,"children":2998},{"style":142},[2999],{"type":45,"value":227},{"type":40,"tag":129,"props":3001,"children":3002},{"style":2305},[3003],{"type":45,"value":3004},"gate",{"type":40,"tag":129,"props":3006,"children":3007},{"style":142},[3008],{"type":45,"value":318},{"type":40,"tag":129,"props":3010,"children":3011},{"style":204},[3012],{"type":45,"value":2343},{"type":40,"tag":129,"props":3014,"children":3015},{"style":148},[3016],{"type":45,"value":3017}," gate",{"type":40,"tag":129,"props":3019,"children":3020},{"style":142},[3021],{"type":45,"value":943},{"type":40,"tag":129,"props":3023,"children":3024},{"style":148},[3025],{"type":45,"value":3026},"value)",{"type":40,"tag":129,"props":3028,"children":3029},{"style":142},[3030],{"type":45,"value":265},{"type":40,"tag":129,"props":3032,"children":3033},{"class":131,"line":325},[3034,3038],{"type":40,"tag":129,"props":3035,"children":3036},{"style":148},[3037],{"type":45,"value":2594},{"type":40,"tag":129,"props":3039,"children":3040},{"style":142},[3041],{"type":45,"value":265},{"type":40,"tag":129,"props":3043,"children":3044},{"class":131,"line":333},[3045,3049,3053],{"type":40,"tag":129,"props":3046,"children":3047},{"style":142},[3048],{"type":45,"value":313},{"type":40,"tag":129,"props":3050,"children":3051},{"style":148},[3052],{"type":45,"value":318},{"type":40,"tag":129,"props":3054,"children":3055},{"style":142},[3056],{"type":45,"value":182},{"type":40,"tag":48,"props":3058,"children":3059},{},[3060,3062,3066],{"type":45,"value":3061},"See ",{"type":40,"tag":81,"props":3063,"children":3064},{"href":1662},[3065],{"type":45,"value":1662},{"type":45,"value":3067}," for all supported adapters.",{"type":40,"tag":106,"props":3069,"children":3071},{"id":3070},"key-parameters",[3072],{"type":45,"value":3073},"Key parameters",{"type":40,"tag":3075,"props":3076,"children":3077},"table",{},[3078,3102],{"type":40,"tag":3079,"props":3080,"children":3081},"thead",{},[3082],{"type":40,"tag":3083,"props":3084,"children":3085},"tr",{},[3086,3092,3097],{"type":40,"tag":3087,"props":3088,"children":3089},"th",{},[3090],{"type":45,"value":3091},"Parameter",{"type":40,"tag":3087,"props":3093,"children":3094},{},[3095],{"type":45,"value":3096},"Type",{"type":40,"tag":3087,"props":3098,"children":3099},{},[3100],{"type":45,"value":3101},"Description",{"type":40,"tag":3103,"props":3104,"children":3105},"tbody",{},[3106,3133,3158,3191,3216,3240,3266,3303],{"type":40,"tag":3083,"props":3107,"children":3108},{},[3109,3119,3128],{"type":40,"tag":3110,"props":3111,"children":3112},"td",{},[3113],{"type":40,"tag":54,"props":3114,"children":3116},{"className":3115},[],[3117],{"type":45,"value":3118},"key",{"type":40,"tag":3110,"props":3120,"children":3121},{},[3122],{"type":40,"tag":54,"props":3123,"children":3125},{"className":3124},[],[3126],{"type":45,"value":3127},"string",{"type":40,"tag":3110,"props":3129,"children":3130},{},[3131],{"type":45,"value":3132},"Unique flag identifier",{"type":40,"tag":3083,"props":3134,"children":3135},{},[3136,3144,3153],{"type":40,"tag":3110,"props":3137,"children":3138},{},[3139],{"type":40,"tag":54,"props":3140,"children":3142},{"className":3141},[],[3143],{"type":45,"value":394},{"type":40,"tag":3110,"props":3145,"children":3146},{},[3147],{"type":40,"tag":54,"props":3148,"children":3150},{"className":3149},[],[3151],{"type":45,"value":3152},"function",{"type":40,"tag":3110,"props":3154,"children":3155},{},[3156],{"type":45,"value":3157},"Resolves the flag value",{"type":40,"tag":3083,"props":3159,"children":3160},{},[3161,3170,3179],{"type":40,"tag":3110,"props":3162,"children":3163},{},[3164],{"type":40,"tag":54,"props":3165,"children":3167},{"className":3166},[],[3168],{"type":45,"value":3169},"defaultValue",{"type":40,"tag":3110,"props":3171,"children":3172},{},[3173],{"type":40,"tag":54,"props":3174,"children":3176},{"className":3175},[],[3177],{"type":45,"value":3178},"any",{"type":40,"tag":3110,"props":3180,"children":3181},{},[3182,3184,3189],{"type":45,"value":3183},"Fallback if ",{"type":40,"tag":54,"props":3185,"children":3187},{"className":3186},[],[3188],{"type":45,"value":394},{"type":45,"value":3190}," returns undefined or throws",{"type":40,"tag":3083,"props":3192,"children":3193},{},[3194,3203,3211],{"type":40,"tag":3110,"props":3195,"children":3196},{},[3197],{"type":40,"tag":54,"props":3198,"children":3200},{"className":3199},[],[3201],{"type":45,"value":3202},"description",{"type":40,"tag":3110,"props":3204,"children":3205},{},[3206],{"type":40,"tag":54,"props":3207,"children":3209},{"className":3208},[],[3210],{"type":45,"value":3127},{"type":40,"tag":3110,"props":3212,"children":3213},{},[3214],{"type":45,"value":3215},"Shown in Flags Explorer",{"type":40,"tag":3083,"props":3217,"children":3218},{},[3219,3227,3235],{"type":40,"tag":3110,"props":3220,"children":3221},{},[3222],{"type":40,"tag":54,"props":3223,"children":3225},{"className":3224},[],[3226],{"type":45,"value":402},{"type":40,"tag":3110,"props":3228,"children":3229},{},[3230],{"type":40,"tag":54,"props":3231,"children":3233},{"className":3232},[],[3234],{"type":45,"value":3127},{"type":40,"tag":3110,"props":3236,"children":3237},{},[3238],{"type":45,"value":3239},"URL to manage the flag in provider dashboard",{"type":40,"tag":3083,"props":3241,"children":3242},{},[3243,3252,3261],{"type":40,"tag":3110,"props":3244,"children":3245},{},[3246],{"type":40,"tag":54,"props":3247,"children":3249},{"className":3248},[],[3250],{"type":45,"value":3251},"options",{"type":40,"tag":3110,"props":3253,"children":3254},{},[3255],{"type":40,"tag":54,"props":3256,"children":3258},{"className":3257},[],[3259],{"type":45,"value":3260},"{ label?: string, value: any }[]",{"type":40,"tag":3110,"props":3262,"children":3263},{},[3264],{"type":45,"value":3265},"Possible values, used for precompute + Flags Explorer",{"type":40,"tag":3083,"props":3267,"children":3268},{},[3269,3278,3287],{"type":40,"tag":3110,"props":3270,"children":3271},{},[3272],{"type":40,"tag":54,"props":3273,"children":3275},{"className":3274},[],[3276],{"type":45,"value":3277},"adapter",{"type":40,"tag":3110,"props":3279,"children":3280},{},[3281],{"type":40,"tag":54,"props":3282,"children":3284},{"className":3283},[],[3285],{"type":45,"value":3286},"Adapter",{"type":40,"tag":3110,"props":3288,"children":3289},{},[3290,3292,3297,3298],{"type":45,"value":3291},"Provider adapter implementing ",{"type":40,"tag":54,"props":3293,"children":3295},{"className":3294},[],[3296],{"type":45,"value":394},{"type":45,"value":396},{"type":40,"tag":54,"props":3299,"children":3301},{"className":3300},[],[3302],{"type":45,"value":402},{"type":40,"tag":3083,"props":3304,"children":3305},{},[3306,3314,3322],{"type":40,"tag":3110,"props":3307,"children":3308},{},[3309],{"type":40,"tag":54,"props":3310,"children":3312},{"className":3311},[],[3313],{"type":45,"value":2087},{"type":40,"tag":3110,"props":3315,"children":3316},{},[3317],{"type":40,"tag":54,"props":3318,"children":3320},{"className":3319},[],[3321],{"type":45,"value":3152},{"type":40,"tag":3110,"props":3323,"children":3324},{},[3325,3327],{"type":45,"value":3326},"Returns evaluation context (entities) for ",{"type":40,"tag":54,"props":3328,"children":3330},{"className":3329},[],[3331],{"type":45,"value":394},{"type":40,"tag":99,"props":3333,"children":3335},{"id":3334},"dedupe",[3336],{"type":45,"value":3337},"Dedupe",{"type":40,"tag":48,"props":3339,"children":3340},{},[3341,3343,3348,3350,3355],{"type":45,"value":3342},"Wrap shared functions (especially ",{"type":40,"tag":54,"props":3344,"children":3346},{"className":3345},[],[3347],{"type":45,"value":2087},{"type":45,"value":3349},") in ",{"type":40,"tag":54,"props":3351,"children":3353},{"className":3352},[],[3354],{"type":45,"value":3334},{"type":45,"value":3356}," to run them once per request:",{"type":40,"tag":118,"props":3358,"children":3360},{"className":120,"code":3359,"language":122,"meta":123,"style":123},"import { dedupe } from 'flags\u002Fnext';\n\nconst identify = dedupe(({ cookies }) => {\n  return { user: { id: cookies.get('uid')?.value } };\n});\n",[3361],{"type":40,"tag":54,"props":3362,"children":3363},{"__ignoreMap":123},[3364,3403,3410,3453,3533],{"type":40,"tag":129,"props":3365,"children":3366},{"class":131,"line":132},[3367,3371,3375,3379,3383,3387,3391,3395,3399],{"type":40,"tag":129,"props":3368,"children":3369},{"style":136},[3370],{"type":45,"value":139},{"type":40,"tag":129,"props":3372,"children":3373},{"style":142},[3374],{"type":45,"value":145},{"type":40,"tag":129,"props":3376,"children":3377},{"style":148},[3378],{"type":45,"value":2118},{"type":40,"tag":129,"props":3380,"children":3381},{"style":142},[3382],{"type":45,"value":156},{"type":40,"tag":129,"props":3384,"children":3385},{"style":136},[3386],{"type":45,"value":161},{"type":40,"tag":129,"props":3388,"children":3389},{"style":142},[3390],{"type":45,"value":166},{"type":40,"tag":129,"props":3392,"children":3393},{"style":169},[3394],{"type":45,"value":172},{"type":40,"tag":129,"props":3396,"children":3397},{"style":142},[3398],{"type":45,"value":177},{"type":40,"tag":129,"props":3400,"children":3401},{"style":142},[3402],{"type":45,"value":182},{"type":40,"tag":129,"props":3404,"children":3405},{"class":131,"line":185},[3406],{"type":40,"tag":129,"props":3407,"children":3408},{"emptyLinePlaceholder":189},[3409],{"type":45,"value":192},{"type":40,"tag":129,"props":3411,"children":3412},{"class":131,"line":195},[3413,3417,3421,3425,3429,3433,3437,3441,3445,3449],{"type":40,"tag":129,"props":3414,"children":3415},{"style":204},[3416],{"type":45,"value":339},{"type":40,"tag":129,"props":3418,"children":3419},{"style":148},[3420],{"type":45,"value":2281},{"type":40,"tag":129,"props":3422,"children":3423},{"style":142},[3424],{"type":45,"value":217},{"type":40,"tag":129,"props":3426,"children":3427},{"style":220},[3428],{"type":45,"value":2118},{"type":40,"tag":129,"props":3430,"children":3431},{"style":148},[3432],{"type":45,"value":227},{"type":40,"tag":129,"props":3434,"children":3435},{"style":142},[3436],{"type":45,"value":2611},{"type":40,"tag":129,"props":3438,"children":3439},{"style":2305},[3440],{"type":45,"value":2308},{"type":40,"tag":129,"props":3442,"children":3443},{"style":142},[3444],{"type":45,"value":2621},{"type":40,"tag":129,"props":3446,"children":3447},{"style":204},[3448],{"type":45,"value":2343},{"type":40,"tag":129,"props":3450,"children":3451},{"style":142},[3452],{"type":45,"value":1390},{"type":40,"tag":129,"props":3454,"children":3455},{"class":131,"line":235},[3456,3460,3464,3468,3472,3476,3480,3484,3488,3492,3496,3500,3504,3509,3513,3517,3521,3525,3529],{"type":40,"tag":129,"props":3457,"children":3458},{"style":136},[3459],{"type":45,"value":1432},{"type":40,"tag":129,"props":3461,"children":3462},{"style":142},[3463],{"type":45,"value":145},{"type":40,"tag":129,"props":3465,"children":3466},{"style":239},[3467],{"type":45,"value":2429},{"type":40,"tag":129,"props":3469,"children":3470},{"style":142},[3471],{"type":45,"value":247},{"type":40,"tag":129,"props":3473,"children":3474},{"style":142},[3475],{"type":45,"value":145},{"type":40,"tag":129,"props":3477,"children":3478},{"style":239},[3479],{"type":45,"value":2241},{"type":40,"tag":129,"props":3481,"children":3482},{"style":142},[3483],{"type":45,"value":247},{"type":40,"tag":129,"props":3485,"children":3486},{"style":148},[3487],{"type":45,"value":2308},{"type":40,"tag":129,"props":3489,"children":3490},{"style":142},[3491],{"type":45,"value":943},{"type":40,"tag":129,"props":3493,"children":3494},{"style":220},[3495],{"type":45,"value":2377},{"type":40,"tag":129,"props":3497,"children":3498},{"style":239},[3499],{"type":45,"value":227},{"type":40,"tag":129,"props":3501,"children":3502},{"style":142},[3503],{"type":45,"value":177},{"type":40,"tag":129,"props":3505,"children":3506},{"style":169},[3507],{"type":45,"value":3508},"uid",{"type":40,"tag":129,"props":3510,"children":3511},{"style":142},[3512],{"type":45,"value":177},{"type":40,"tag":129,"props":3514,"children":3515},{"style":239},[3516],{"type":45,"value":318},{"type":40,"tag":129,"props":3518,"children":3519},{"style":142},[3520],{"type":45,"value":2403},{"type":40,"tag":129,"props":3522,"children":3523},{"style":148},[3524],{"type":45,"value":2408},{"type":40,"tag":129,"props":3526,"children":3527},{"style":142},[3528],{"type":45,"value":156},{"type":40,"tag":129,"props":3530,"children":3531},{"style":142},[3532],{"type":45,"value":2255},{"type":40,"tag":129,"props":3534,"children":3535},{"class":131,"line":268},[3536,3540,3544],{"type":40,"tag":129,"props":3537,"children":3538},{"style":142},[3539],{"type":45,"value":313},{"type":40,"tag":129,"props":3541,"children":3542},{"style":148},[3543],{"type":45,"value":318},{"type":40,"tag":129,"props":3545,"children":3546},{"style":142},[3547],{"type":45,"value":182},{"type":40,"tag":48,"props":3549,"children":3550},{},[3551,3553,3558],{"type":45,"value":3552},"Note: ",{"type":40,"tag":54,"props":3554,"children":3556},{"className":3555},[],[3557],{"type":45,"value":3334},{"type":45,"value":3559}," is not available in Pages Router.",{"type":40,"tag":99,"props":3561,"children":3563},{"id":3562},"bulk-evaluation",[3564],{"type":45,"value":3565},"Bulk evaluation",{"type":40,"tag":48,"props":3567,"children":3568},{},[3569,3571,3576,3578,3584,3586,3591,3593,3599,3601,3606,3608,3614],{"type":45,"value":3570},"To evaluate ",{"type":40,"tag":607,"props":3572,"children":3573},{},[3574],{"type":45,"value":3575},"multiple",{"type":45,"value":3577}," flags at once, call ",{"type":40,"tag":54,"props":3579,"children":3581},{"className":3580},[],[3582],{"type":45,"value":3583},"evaluate()",{"type":45,"value":3585}," (from ",{"type":40,"tag":54,"props":3587,"children":3589},{"className":3588},[],[3590],{"type":45,"value":172},{"type":45,"value":3592},") instead of awaiting flags one at a time or using ",{"type":40,"tag":54,"props":3594,"children":3596},{"className":3595},[],[3597],{"type":45,"value":3598},"Promise.all()",{"type":45,"value":3600},". To evaluate a ",{"type":40,"tag":607,"props":3602,"children":3603},{},[3604],{"type":45,"value":3605},"single",{"type":45,"value":3607}," flag, just call it: ",{"type":40,"tag":54,"props":3609,"children":3611},{"className":3610},[],[3612],{"type":45,"value":3613},"await myFlag()",{"type":45,"value":943},{"type":40,"tag":118,"props":3616,"children":3618},{"className":120,"code":3617,"language":122,"meta":123,"style":123},"import { evaluate } from 'flags\u002Fnext';\nimport { flagA, flagB } from '..\u002Fflags';\n\n\u002F\u002F avoid: each await blocks the next, so the flags resolve sequentially\nconst a = await flagA();\nconst b = await flagB();\n\n\u002F\u002F avoid: parallel, but each flag is evaluated in isolation\nconst [a, b] = await Promise.all([flagA(), flagB()]);\n\n\u002F\u002F prefer: shares work across the batch\nconst [a, b] = await evaluate([flagA, flagB]);\n",[3619],{"type":40,"tag":54,"props":3620,"children":3621},{"__ignoreMap":123},[3622,3662,3711,3718,3726,3758,3790,3797,3805,3886,3893,3901],{"type":40,"tag":129,"props":3623,"children":3624},{"class":131,"line":132},[3625,3629,3633,3638,3642,3646,3650,3654,3658],{"type":40,"tag":129,"props":3626,"children":3627},{"style":136},[3628],{"type":45,"value":139},{"type":40,"tag":129,"props":3630,"children":3631},{"style":142},[3632],{"type":45,"value":145},{"type":40,"tag":129,"props":3634,"children":3635},{"style":148},[3636],{"type":45,"value":3637}," evaluate",{"type":40,"tag":129,"props":3639,"children":3640},{"style":142},[3641],{"type":45,"value":156},{"type":40,"tag":129,"props":3643,"children":3644},{"style":136},[3645],{"type":45,"value":161},{"type":40,"tag":129,"props":3647,"children":3648},{"style":142},[3649],{"type":45,"value":166},{"type":40,"tag":129,"props":3651,"children":3652},{"style":169},[3653],{"type":45,"value":172},{"type":40,"tag":129,"props":3655,"children":3656},{"style":142},[3657],{"type":45,"value":177},{"type":40,"tag":129,"props":3659,"children":3660},{"style":142},[3661],{"type":45,"value":182},{"type":40,"tag":129,"props":3663,"children":3664},{"class":131,"line":185},[3665,3669,3673,3678,3682,3687,3691,3695,3699,3703,3707],{"type":40,"tag":129,"props":3666,"children":3667},{"style":136},[3668],{"type":45,"value":139},{"type":40,"tag":129,"props":3670,"children":3671},{"style":142},[3672],{"type":45,"value":145},{"type":40,"tag":129,"props":3674,"children":3675},{"style":148},[3676],{"type":45,"value":3677}," flagA",{"type":40,"tag":129,"props":3679,"children":3680},{"style":142},[3681],{"type":45,"value":1933},{"type":40,"tag":129,"props":3683,"children":3684},{"style":148},[3685],{"type":45,"value":3686}," flagB",{"type":40,"tag":129,"props":3688,"children":3689},{"style":142},[3690],{"type":45,"value":156},{"type":40,"tag":129,"props":3692,"children":3693},{"style":136},[3694],{"type":45,"value":161},{"type":40,"tag":129,"props":3696,"children":3697},{"style":142},[3698],{"type":45,"value":166},{"type":40,"tag":129,"props":3700,"children":3701},{"style":169},[3702],{"type":45,"value":1339},{"type":40,"tag":129,"props":3704,"children":3705},{"style":142},[3706],{"type":45,"value":177},{"type":40,"tag":129,"props":3708,"children":3709},{"style":142},[3710],{"type":45,"value":182},{"type":40,"tag":129,"props":3712,"children":3713},{"class":131,"line":195},[3714],{"type":40,"tag":129,"props":3715,"children":3716},{"emptyLinePlaceholder":189},[3717],{"type":45,"value":192},{"type":40,"tag":129,"props":3719,"children":3720},{"class":131,"line":235},[3721],{"type":40,"tag":129,"props":3722,"children":3723},{"style":1756},[3724],{"type":45,"value":3725},"\u002F\u002F avoid: each await blocks the next, so the flags resolve sequentially\n",{"type":40,"tag":129,"props":3727,"children":3728},{"class":131,"line":268},[3729,3733,3738,3742,3746,3750,3754],{"type":40,"tag":129,"props":3730,"children":3731},{"style":204},[3732],{"type":45,"value":339},{"type":40,"tag":129,"props":3734,"children":3735},{"style":148},[3736],{"type":45,"value":3737}," a ",{"type":40,"tag":129,"props":3739,"children":3740},{"style":142},[3741],{"type":45,"value":217},{"type":40,"tag":129,"props":3743,"children":3744},{"style":136},[3745],{"type":45,"value":353},{"type":40,"tag":129,"props":3747,"children":3748},{"style":220},[3749],{"type":45,"value":3677},{"type":40,"tag":129,"props":3751,"children":3752},{"style":148},[3753],{"type":45,"value":279},{"type":40,"tag":129,"props":3755,"children":3756},{"style":142},[3757],{"type":45,"value":182},{"type":40,"tag":129,"props":3759,"children":3760},{"class":131,"line":307},[3761,3765,3770,3774,3778,3782,3786],{"type":40,"tag":129,"props":3762,"children":3763},{"style":204},[3764],{"type":45,"value":339},{"type":40,"tag":129,"props":3766,"children":3767},{"style":148},[3768],{"type":45,"value":3769}," b ",{"type":40,"tag":129,"props":3771,"children":3772},{"style":142},[3773],{"type":45,"value":217},{"type":40,"tag":129,"props":3775,"children":3776},{"style":136},[3777],{"type":45,"value":353},{"type":40,"tag":129,"props":3779,"children":3780},{"style":220},[3781],{"type":45,"value":3686},{"type":40,"tag":129,"props":3783,"children":3784},{"style":148},[3785],{"type":45,"value":279},{"type":40,"tag":129,"props":3787,"children":3788},{"style":142},[3789],{"type":45,"value":182},{"type":40,"tag":129,"props":3791,"children":3792},{"class":131,"line":325},[3793],{"type":40,"tag":129,"props":3794,"children":3795},{"emptyLinePlaceholder":189},[3796],{"type":45,"value":192},{"type":40,"tag":129,"props":3798,"children":3799},{"class":131,"line":333},[3800],{"type":40,"tag":129,"props":3801,"children":3802},{"style":1756},[3803],{"type":45,"value":3804},"\u002F\u002F avoid: parallel, but each flag is evaluated in isolation\n",{"type":40,"tag":129,"props":3806,"children":3807},{"class":131,"line":1962},[3808,3812,3816,3820,3824,3829,3833,3837,3841,3846,3850,3855,3860,3865,3869,3873,3877,3882],{"type":40,"tag":129,"props":3809,"children":3810},{"style":204},[3811],{"type":45,"value":339},{"type":40,"tag":129,"props":3813,"children":3814},{"style":142},[3815],{"type":45,"value":2689},{"type":40,"tag":129,"props":3817,"children":3818},{"style":148},[3819],{"type":45,"value":81},{"type":40,"tag":129,"props":3821,"children":3822},{"style":142},[3823],{"type":45,"value":1933},{"type":40,"tag":129,"props":3825,"children":3826},{"style":148},[3827],{"type":45,"value":3828}," b",{"type":40,"tag":129,"props":3830,"children":3831},{"style":142},[3832],{"type":45,"value":2724},{"type":40,"tag":129,"props":3834,"children":3835},{"style":142},[3836],{"type":45,"value":1408},{"type":40,"tag":129,"props":3838,"children":3839},{"style":136},[3840],{"type":45,"value":353},{"type":40,"tag":129,"props":3842,"children":3843},{"style":907},[3844],{"type":45,"value":3845}," Promise",{"type":40,"tag":129,"props":3847,"children":3848},{"style":142},[3849],{"type":45,"value":943},{"type":40,"tag":129,"props":3851,"children":3852},{"style":220},[3853],{"type":45,"value":3854},"all",{"type":40,"tag":129,"props":3856,"children":3857},{"style":148},[3858],{"type":45,"value":3859},"([",{"type":40,"tag":129,"props":3861,"children":3862},{"style":220},[3863],{"type":45,"value":3864},"flagA",{"type":40,"tag":129,"props":3866,"children":3867},{"style":148},[3868],{"type":45,"value":279},{"type":40,"tag":129,"props":3870,"children":3871},{"style":142},[3872],{"type":45,"value":1933},{"type":40,"tag":129,"props":3874,"children":3875},{"style":220},[3876],{"type":45,"value":3686},{"type":40,"tag":129,"props":3878,"children":3879},{"style":148},[3880],{"type":45,"value":3881},"()])",{"type":40,"tag":129,"props":3883,"children":3884},{"style":142},[3885],{"type":45,"value":182},{"type":40,"tag":129,"props":3887,"children":3888},{"class":131,"line":2012},[3889],{"type":40,"tag":129,"props":3890,"children":3891},{"emptyLinePlaceholder":189},[3892],{"type":45,"value":192},{"type":40,"tag":129,"props":3894,"children":3895},{"class":131,"line":2025},[3896],{"type":40,"tag":129,"props":3897,"children":3898},{"style":1756},[3899],{"type":45,"value":3900},"\u002F\u002F prefer: shares work across the batch\n",{"type":40,"tag":129,"props":3902,"children":3903},{"class":131,"line":2057},[3904,3908,3912,3916,3920,3924,3928,3932,3936,3940,3945,3949,3954],{"type":40,"tag":129,"props":3905,"children":3906},{"style":204},[3907],{"type":45,"value":339},{"type":40,"tag":129,"props":3909,"children":3910},{"style":142},[3911],{"type":45,"value":2689},{"type":40,"tag":129,"props":3913,"children":3914},{"style":148},[3915],{"type":45,"value":81},{"type":40,"tag":129,"props":3917,"children":3918},{"style":142},[3919],{"type":45,"value":1933},{"type":40,"tag":129,"props":3921,"children":3922},{"style":148},[3923],{"type":45,"value":3828},{"type":40,"tag":129,"props":3925,"children":3926},{"style":142},[3927],{"type":45,"value":2724},{"type":40,"tag":129,"props":3929,"children":3930},{"style":142},[3931],{"type":45,"value":1408},{"type":40,"tag":129,"props":3933,"children":3934},{"style":136},[3935],{"type":45,"value":353},{"type":40,"tag":129,"props":3937,"children":3938},{"style":220},[3939],{"type":45,"value":3637},{"type":40,"tag":129,"props":3941,"children":3942},{"style":148},[3943],{"type":45,"value":3944},"([flagA",{"type":40,"tag":129,"props":3946,"children":3947},{"style":142},[3948],{"type":45,"value":1933},{"type":40,"tag":129,"props":3950,"children":3951},{"style":148},[3952],{"type":45,"value":3953}," flagB])",{"type":40,"tag":129,"props":3955,"children":3956},{"style":142},[3957],{"type":45,"value":182},{"type":40,"tag":48,"props":3959,"children":3960},{},[3961,3966,3968,3973,3975,3980],{"type":40,"tag":54,"props":3962,"children":3964},{"className":3963},[],[3965],{"type":45,"value":3583},{"type":45,"value":3967}," is faster than both approaches. Awaiting flags one at a time makes total latency the sum of every flag's evaluation instead of the slowest single flag, while ",{"type":40,"tag":54,"props":3969,"children":3971},{"className":3970},[],[3972],{"type":45,"value":3598},{"type":45,"value":3974}," runs them in parallel but evaluates each in isolation. ",{"type":40,"tag":54,"props":3976,"children":3978},{"className":3977},[],[3979],{"type":45,"value":3583},{"type":45,"value":3981}," pre-reads headers, cookies, and overrides once for the whole batch and lets adapters resolve a group in a single call, which reduces the number of parallel promises the runtime manages and leaves less room for the async work to be interrupted by other microtasks.",{"type":40,"tag":48,"props":3983,"children":3984},{},[3985,3987,3992,3994,3999],{"type":45,"value":3986},"It accepts either an ",{"type":40,"tag":607,"props":3988,"children":3989},{},[3990],{"type":45,"value":3991},"array",{"type":45,"value":3993}," (positional results) or an ",{"type":40,"tag":607,"props":3995,"children":3996},{},[3997],{"type":45,"value":3998},"object",{"type":45,"value":4000}," (keyed results):",{"type":40,"tag":118,"props":4002,"children":4004},{"className":120,"code":4003,"language":122,"meta":123,"style":123},"const [a, b] = await evaluate([flagA, flagB]);\nconst { a, b } = await evaluate({ a: flagA, b: flagB });\n",[4005],{"type":40,"tag":54,"props":4006,"children":4007},{"__ignoreMap":123},[4008,4063],{"type":40,"tag":129,"props":4009,"children":4010},{"class":131,"line":132},[4011,4015,4019,4023,4027,4031,4035,4039,4043,4047,4051,4055,4059],{"type":40,"tag":129,"props":4012,"children":4013},{"style":204},[4014],{"type":45,"value":339},{"type":40,"tag":129,"props":4016,"children":4017},{"style":142},[4018],{"type":45,"value":2689},{"type":40,"tag":129,"props":4020,"children":4021},{"style":148},[4022],{"type":45,"value":81},{"type":40,"tag":129,"props":4024,"children":4025},{"style":142},[4026],{"type":45,"value":1933},{"type":40,"tag":129,"props":4028,"children":4029},{"style":148},[4030],{"type":45,"value":3828},{"type":40,"tag":129,"props":4032,"children":4033},{"style":142},[4034],{"type":45,"value":2724},{"type":40,"tag":129,"props":4036,"children":4037},{"style":142},[4038],{"type":45,"value":1408},{"type":40,"tag":129,"props":4040,"children":4041},{"style":136},[4042],{"type":45,"value":353},{"type":40,"tag":129,"props":4044,"children":4045},{"style":220},[4046],{"type":45,"value":3637},{"type":40,"tag":129,"props":4048,"children":4049},{"style":148},[4050],{"type":45,"value":3944},{"type":40,"tag":129,"props":4052,"children":4053},{"style":142},[4054],{"type":45,"value":1933},{"type":40,"tag":129,"props":4056,"children":4057},{"style":148},[4058],{"type":45,"value":3953},{"type":40,"tag":129,"props":4060,"children":4061},{"style":142},[4062],{"type":45,"value":182},{"type":40,"tag":129,"props":4064,"children":4065},{"class":131,"line":185},[4066,4070,4074,4079,4083,4087,4091,4095,4099,4103,4107,4112,4116,4120,4124,4128,4132,4136,4141,4145,4149],{"type":40,"tag":129,"props":4067,"children":4068},{"style":204},[4069],{"type":45,"value":339},{"type":40,"tag":129,"props":4071,"children":4072},{"style":142},[4073],{"type":45,"value":145},{"type":40,"tag":129,"props":4075,"children":4076},{"style":148},[4077],{"type":45,"value":4078}," a",{"type":40,"tag":129,"props":4080,"children":4081},{"style":142},[4082],{"type":45,"value":1933},{"type":40,"tag":129,"props":4084,"children":4085},{"style":148},[4086],{"type":45,"value":3769},{"type":40,"tag":129,"props":4088,"children":4089},{"style":142},[4090],{"type":45,"value":313},{"type":40,"tag":129,"props":4092,"children":4093},{"style":142},[4094],{"type":45,"value":1408},{"type":40,"tag":129,"props":4096,"children":4097},{"style":136},[4098],{"type":45,"value":353},{"type":40,"tag":129,"props":4100,"children":4101},{"style":220},[4102],{"type":45,"value":3637},{"type":40,"tag":129,"props":4104,"children":4105},{"style":148},[4106],{"type":45,"value":227},{"type":40,"tag":129,"props":4108,"children":4109},{"style":142},[4110],{"type":45,"value":4111},"{",{"type":40,"tag":129,"props":4113,"children":4114},{"style":239},[4115],{"type":45,"value":4078},{"type":40,"tag":129,"props":4117,"children":4118},{"style":142},[4119],{"type":45,"value":247},{"type":40,"tag":129,"props":4121,"children":4122},{"style":148},[4123],{"type":45,"value":3677},{"type":40,"tag":129,"props":4125,"children":4126},{"style":142},[4127],{"type":45,"value":1933},{"type":40,"tag":129,"props":4129,"children":4130},{"style":239},[4131],{"type":45,"value":3828},{"type":40,"tag":129,"props":4133,"children":4134},{"style":142},[4135],{"type":45,"value":247},{"type":40,"tag":129,"props":4137,"children":4138},{"style":148},[4139],{"type":45,"value":4140}," flagB ",{"type":40,"tag":129,"props":4142,"children":4143},{"style":142},[4144],{"type":45,"value":313},{"type":40,"tag":129,"props":4146,"children":4147},{"style":148},[4148],{"type":45,"value":318},{"type":40,"tag":129,"props":4150,"children":4151},{"style":142},[4152],{"type":45,"value":182},{"type":40,"tag":48,"props":4154,"children":4155},{},[4156,4158,4164,4166,4172],{"type":45,"value":4157},"Outside App Router (Pages Router ",{"type":40,"tag":54,"props":4159,"children":4161},{"className":4160},[],[4162],{"type":45,"value":4163},"getServerSideProps",{"type":45,"value":4165},"\u002FAPI routes, or routing middleware), pass the request as the second argument: ",{"type":40,"tag":54,"props":4167,"children":4169},{"className":4168},[],[4170],{"type":45,"value":4171},"await evaluate([flagA, flagB], request)",{"type":45,"value":943},{"type":40,"tag":48,"props":4174,"children":4175},{},[4176,4181,4183,4189,4191,4197,4199,4205],{"type":40,"tag":54,"props":4177,"children":4179},{"className":4178},[],[4180],{"type":45,"value":3583},{"type":45,"value":4182}," always evaluates flags at request time. It is not for reading ",{"type":40,"tag":81,"props":4184,"children":4186},{"href":4185},"#precompute-pattern",[4187],{"type":45,"value":4188},"precomputed",{"type":45,"value":4190}," (static) values — for those, use ",{"type":40,"tag":54,"props":4192,"children":4194},{"className":4193},[],[4195],{"type":45,"value":4196},"getPrecomputed",{"type":45,"value":4198}," (or call the flag with the code, ",{"type":40,"tag":54,"props":4200,"children":4202},{"className":4201},[],[4203],{"type":45,"value":4204},"await myFlag(code, flagGroup)",{"type":45,"value":747},{"type":40,"tag":48,"props":4207,"children":4208},{},[4209,4211,4217,4219,4224,4226,4232,4234,4239,4241,4253],{"type":45,"value":4210},"Adapters can opt into batching by implementing the optional ",{"type":40,"tag":54,"props":4212,"children":4214},{"className":4213},[],[4215],{"type":45,"value":4216},"bulkDecide",{"type":45,"value":4218}," hook. The Vercel adapter (",{"type":40,"tag":54,"props":4220,"children":4222},{"className":4221},[],[4223],{"type":45,"value":410},{"type":45,"value":4225},") implements it — roughly a 10x reduction in evaluation time when resolving hundreds of flags. See ",{"type":40,"tag":81,"props":4227,"children":4229},{"href":4228},"references\u002Fproviders.md#custom-adapters",[4230],{"type":45,"value":4231},"references\u002Fproviders.md — Custom Adapters",{"type":45,"value":4233}," for implementing ",{"type":40,"tag":54,"props":4235,"children":4237},{"className":4236},[],[4238],{"type":45,"value":4216},{"type":45,"value":4240},", and ",{"type":40,"tag":81,"props":4242,"children":4244},{"href":4243},"references\u002Fapi.md#evaluate",[4245,4247],{"type":45,"value":4246},"references\u002Fapi.md — ",{"type":40,"tag":54,"props":4248,"children":4250},{"className":4249},[],[4251],{"type":45,"value":4252},"evaluate",{"type":45,"value":4254}," for the full signature.",{"type":40,"tag":99,"props":4256,"children":4258},{"id":4257},"flags-explorer-setup",[4259],{"type":45,"value":1591},{"type":40,"tag":106,"props":4261,"children":4263},{"id":4262},"nextjs-app-router",[4264],{"type":45,"value":4265},"Next.js (App Router)",{"type":40,"tag":118,"props":4267,"children":4269},{"className":120,"code":4268,"language":122,"meta":123,"style":123},"\u002F\u002F app\u002F.well-known\u002Fvercel\u002Fflags\u002Froute.ts\nimport { createFlagsDiscoveryEndpoint } from 'flags\u002Fnext';\nimport { getProviderData } from '@flags-sdk\u002Fvercel';\nimport * as flags from '..\u002F..\u002F..\u002F..\u002Fflags';\n\nexport const GET = createFlagsDiscoveryEndpoint(async () => {\n  return getProviderData(flags);\n});\n",[4270],{"type":40,"tag":54,"props":4271,"children":4272},{"__ignoreMap":123},[4273,4281,4321,4361,4405,4412,4458,4485],{"type":40,"tag":129,"props":4274,"children":4275},{"class":131,"line":132},[4276],{"type":40,"tag":129,"props":4277,"children":4278},{"style":1756},[4279],{"type":45,"value":4280},"\u002F\u002F app\u002F.well-known\u002Fvercel\u002Fflags\u002Froute.ts\n",{"type":40,"tag":129,"props":4282,"children":4283},{"class":131,"line":185},[4284,4288,4292,4297,4301,4305,4309,4313,4317],{"type":40,"tag":129,"props":4285,"children":4286},{"style":136},[4287],{"type":45,"value":139},{"type":40,"tag":129,"props":4289,"children":4290},{"style":142},[4291],{"type":45,"value":145},{"type":40,"tag":129,"props":4293,"children":4294},{"style":148},[4295],{"type":45,"value":4296}," createFlagsDiscoveryEndpoint",{"type":40,"tag":129,"props":4298,"children":4299},{"style":142},[4300],{"type":45,"value":156},{"type":40,"tag":129,"props":4302,"children":4303},{"style":136},[4304],{"type":45,"value":161},{"type":40,"tag":129,"props":4306,"children":4307},{"style":142},[4308],{"type":45,"value":166},{"type":40,"tag":129,"props":4310,"children":4311},{"style":169},[4312],{"type":45,"value":172},{"type":40,"tag":129,"props":4314,"children":4315},{"style":142},[4316],{"type":45,"value":177},{"type":40,"tag":129,"props":4318,"children":4319},{"style":142},[4320],{"type":45,"value":182},{"type":40,"tag":129,"props":4322,"children":4323},{"class":131,"line":195},[4324,4328,4332,4337,4341,4345,4349,4353,4357],{"type":40,"tag":129,"props":4325,"children":4326},{"style":136},[4327],{"type":45,"value":139},{"type":40,"tag":129,"props":4329,"children":4330},{"style":142},[4331],{"type":45,"value":145},{"type":40,"tag":129,"props":4333,"children":4334},{"style":148},[4335],{"type":45,"value":4336}," getProviderData",{"type":40,"tag":129,"props":4338,"children":4339},{"style":142},[4340],{"type":45,"value":156},{"type":40,"tag":129,"props":4342,"children":4343},{"style":136},[4344],{"type":45,"value":161},{"type":40,"tag":129,"props":4346,"children":4347},{"style":142},[4348],{"type":45,"value":166},{"type":40,"tag":129,"props":4350,"children":4351},{"style":169},[4352],{"type":45,"value":410},{"type":40,"tag":129,"props":4354,"children":4355},{"style":142},[4356],{"type":45,"value":177},{"type":40,"tag":129,"props":4358,"children":4359},{"style":142},[4360],{"type":45,"value":182},{"type":40,"tag":129,"props":4362,"children":4363},{"class":131,"line":235},[4364,4368,4373,4378,4383,4388,4392,4397,4401],{"type":40,"tag":129,"props":4365,"children":4366},{"style":136},[4367],{"type":45,"value":139},{"type":40,"tag":129,"props":4369,"children":4370},{"style":142},[4371],{"type":45,"value":4372}," *",{"type":40,"tag":129,"props":4374,"children":4375},{"style":136},[4376],{"type":45,"value":4377}," as",{"type":40,"tag":129,"props":4379,"children":4380},{"style":148},[4381],{"type":45,"value":4382}," flags ",{"type":40,"tag":129,"props":4384,"children":4385},{"style":136},[4386],{"type":45,"value":4387},"from",{"type":40,"tag":129,"props":4389,"children":4390},{"style":142},[4391],{"type":45,"value":166},{"type":40,"tag":129,"props":4393,"children":4394},{"style":169},[4395],{"type":45,"value":4396},"..\u002F..\u002F..\u002F..\u002Fflags",{"type":40,"tag":129,"props":4398,"children":4399},{"style":142},[4400],{"type":45,"value":177},{"type":40,"tag":129,"props":4402,"children":4403},{"style":142},[4404],{"type":45,"value":182},{"type":40,"tag":129,"props":4406,"children":4407},{"class":131,"line":268},[4408],{"type":40,"tag":129,"props":4409,"children":4410},{"emptyLinePlaceholder":189},[4411],{"type":45,"value":192},{"type":40,"tag":129,"props":4413,"children":4414},{"class":131,"line":307},[4415,4419,4423,4428,4432,4436,4440,4445,4450,4454],{"type":40,"tag":129,"props":4416,"children":4417},{"style":136},[4418],{"type":45,"value":201},{"type":40,"tag":129,"props":4420,"children":4421},{"style":204},[4422],{"type":45,"value":207},{"type":40,"tag":129,"props":4424,"children":4425},{"style":148},[4426],{"type":45,"value":4427}," GET ",{"type":40,"tag":129,"props":4429,"children":4430},{"style":142},[4431],{"type":45,"value":217},{"type":40,"tag":129,"props":4433,"children":4434},{"style":220},[4435],{"type":45,"value":4296},{"type":40,"tag":129,"props":4437,"children":4438},{"style":148},[4439],{"type":45,"value":227},{"type":40,"tag":129,"props":4441,"children":4442},{"style":204},[4443],{"type":45,"value":4444},"async",{"type":40,"tag":129,"props":4446,"children":4447},{"style":142},[4448],{"type":45,"value":4449}," ()",{"type":40,"tag":129,"props":4451,"children":4452},{"style":204},[4453],{"type":45,"value":2343},{"type":40,"tag":129,"props":4455,"children":4456},{"style":142},[4457],{"type":45,"value":1390},{"type":40,"tag":129,"props":4459,"children":4460},{"class":131,"line":325},[4461,4465,4469,4473,4477,4481],{"type":40,"tag":129,"props":4462,"children":4463},{"style":136},[4464],{"type":45,"value":1432},{"type":40,"tag":129,"props":4466,"children":4467},{"style":220},[4468],{"type":45,"value":4336},{"type":40,"tag":129,"props":4470,"children":4471},{"style":239},[4472],{"type":45,"value":227},{"type":40,"tag":129,"props":4474,"children":4475},{"style":148},[4476],{"type":45,"value":59},{"type":40,"tag":129,"props":4478,"children":4479},{"style":239},[4480],{"type":45,"value":318},{"type":40,"tag":129,"props":4482,"children":4483},{"style":142},[4484],{"type":45,"value":182},{"type":40,"tag":129,"props":4486,"children":4487},{"class":131,"line":333},[4488,4492,4496],{"type":40,"tag":129,"props":4489,"children":4490},{"style":142},[4491],{"type":45,"value":313},{"type":40,"tag":129,"props":4493,"children":4494},{"style":148},[4495],{"type":45,"value":318},{"type":40,"tag":129,"props":4497,"children":4498},{"style":142},[4499],{"type":45,"value":182},{"type":40,"tag":106,"props":4501,"children":4503},{"id":4502},"with-external-provider-data",[4504],{"type":45,"value":4505},"With external provider data",{"type":40,"tag":48,"props":4507,"children":4508},{},[4509,4511,4517,4519,4525,4527,4531],{"type":45,"value":4510},"When using a third-party provider alongside Vercel Flags, combine their data with ",{"type":40,"tag":54,"props":4512,"children":4514},{"className":4513},[],[4515],{"type":45,"value":4516},"mergeProviderData",{"type":45,"value":4518},". Each provider adapter exports its own ",{"type":40,"tag":54,"props":4520,"children":4522},{"className":4521},[],[4523],{"type":45,"value":4524},"getProviderData",{"type":45,"value":4526}," — see the provider-specific examples in ",{"type":40,"tag":81,"props":4528,"children":4529},{"href":1662},[4530],{"type":45,"value":1662},{"type":45,"value":943},{"type":40,"tag":106,"props":4533,"children":4535},{"id":4534},"sveltekit",[4536],{"type":45,"value":4537},"SvelteKit",{"type":40,"tag":118,"props":4539,"children":4541},{"className":120,"code":4540,"language":122,"meta":123,"style":123},"\u002F\u002F src\u002Fhooks.server.ts\nimport { createHandle } from 'flags\u002Fsveltekit';\nimport { FLAGS_SECRET } from '$env\u002Fstatic\u002Fprivate';\nimport * as flags from '$lib\u002Fflags';\n\nexport const handle = createHandle({ secret: FLAGS_SECRET, flags });\n",[4542],{"type":40,"tag":54,"props":4543,"children":4544},{"__ignoreMap":123},[4545,4553,4594,4635,4675,4682],{"type":40,"tag":129,"props":4546,"children":4547},{"class":131,"line":132},[4548],{"type":40,"tag":129,"props":4549,"children":4550},{"style":1756},[4551],{"type":45,"value":4552},"\u002F\u002F src\u002Fhooks.server.ts\n",{"type":40,"tag":129,"props":4554,"children":4555},{"class":131,"line":185},[4556,4560,4564,4569,4573,4577,4581,4586,4590],{"type":40,"tag":129,"props":4557,"children":4558},{"style":136},[4559],{"type":45,"value":139},{"type":40,"tag":129,"props":4561,"children":4562},{"style":142},[4563],{"type":45,"value":145},{"type":40,"tag":129,"props":4565,"children":4566},{"style":148},[4567],{"type":45,"value":4568}," createHandle",{"type":40,"tag":129,"props":4570,"children":4571},{"style":142},[4572],{"type":45,"value":156},{"type":40,"tag":129,"props":4574,"children":4575},{"style":136},[4576],{"type":45,"value":161},{"type":40,"tag":129,"props":4578,"children":4579},{"style":142},[4580],{"type":45,"value":166},{"type":40,"tag":129,"props":4582,"children":4583},{"style":169},[4584],{"type":45,"value":4585},"flags\u002Fsveltekit",{"type":40,"tag":129,"props":4587,"children":4588},{"style":142},[4589],{"type":45,"value":177},{"type":40,"tag":129,"props":4591,"children":4592},{"style":142},[4593],{"type":45,"value":182},{"type":40,"tag":129,"props":4595,"children":4596},{"class":131,"line":195},[4597,4601,4605,4610,4614,4618,4622,4627,4631],{"type":40,"tag":129,"props":4598,"children":4599},{"style":136},[4600],{"type":45,"value":139},{"type":40,"tag":129,"props":4602,"children":4603},{"style":142},[4604],{"type":45,"value":145},{"type":40,"tag":129,"props":4606,"children":4607},{"style":148},[4608],{"type":45,"value":4609}," FLAGS_SECRET",{"type":40,"tag":129,"props":4611,"children":4612},{"style":142},[4613],{"type":45,"value":156},{"type":40,"tag":129,"props":4615,"children":4616},{"style":136},[4617],{"type":45,"value":161},{"type":40,"tag":129,"props":4619,"children":4620},{"style":142},[4621],{"type":45,"value":166},{"type":40,"tag":129,"props":4623,"children":4624},{"style":169},[4625],{"type":45,"value":4626},"$env\u002Fstatic\u002Fprivate",{"type":40,"tag":129,"props":4628,"children":4629},{"style":142},[4630],{"type":45,"value":177},{"type":40,"tag":129,"props":4632,"children":4633},{"style":142},[4634],{"type":45,"value":182},{"type":40,"tag":129,"props":4636,"children":4637},{"class":131,"line":235},[4638,4642,4646,4650,4654,4658,4662,4667,4671],{"type":40,"tag":129,"props":4639,"children":4640},{"style":136},[4641],{"type":45,"value":139},{"type":40,"tag":129,"props":4643,"children":4644},{"style":142},[4645],{"type":45,"value":4372},{"type":40,"tag":129,"props":4647,"children":4648},{"style":136},[4649],{"type":45,"value":4377},{"type":40,"tag":129,"props":4651,"children":4652},{"style":148},[4653],{"type":45,"value":4382},{"type":40,"tag":129,"props":4655,"children":4656},{"style":136},[4657],{"type":45,"value":4387},{"type":40,"tag":129,"props":4659,"children":4660},{"style":142},[4661],{"type":45,"value":166},{"type":40,"tag":129,"props":4663,"children":4664},{"style":169},[4665],{"type":45,"value":4666},"$lib\u002Fflags",{"type":40,"tag":129,"props":4668,"children":4669},{"style":142},[4670],{"type":45,"value":177},{"type":40,"tag":129,"props":4672,"children":4673},{"style":142},[4674],{"type":45,"value":182},{"type":40,"tag":129,"props":4676,"children":4677},{"class":131,"line":268},[4678],{"type":40,"tag":129,"props":4679,"children":4680},{"emptyLinePlaceholder":189},[4681],{"type":45,"value":192},{"type":40,"tag":129,"props":4683,"children":4684},{"class":131,"line":307},[4685,4689,4693,4698,4702,4706,4710,4714,4719,4723,4727,4731,4735,4739,4743],{"type":40,"tag":129,"props":4686,"children":4687},{"style":136},[4688],{"type":45,"value":201},{"type":40,"tag":129,"props":4690,"children":4691},{"style":204},[4692],{"type":45,"value":207},{"type":40,"tag":129,"props":4694,"children":4695},{"style":148},[4696],{"type":45,"value":4697}," handle ",{"type":40,"tag":129,"props":4699,"children":4700},{"style":142},[4701],{"type":45,"value":217},{"type":40,"tag":129,"props":4703,"children":4704},{"style":220},[4705],{"type":45,"value":4568},{"type":40,"tag":129,"props":4707,"children":4708},{"style":148},[4709],{"type":45,"value":227},{"type":40,"tag":129,"props":4711,"children":4712},{"style":142},[4713],{"type":45,"value":4111},{"type":40,"tag":129,"props":4715,"children":4716},{"style":239},[4717],{"type":45,"value":4718}," secret",{"type":40,"tag":129,"props":4720,"children":4721},{"style":142},[4722],{"type":45,"value":247},{"type":40,"tag":129,"props":4724,"children":4725},{"style":148},[4726],{"type":45,"value":4609},{"type":40,"tag":129,"props":4728,"children":4729},{"style":142},[4730],{"type":45,"value":1933},{"type":40,"tag":129,"props":4732,"children":4733},{"style":148},[4734],{"type":45,"value":4382},{"type":40,"tag":129,"props":4736,"children":4737},{"style":142},[4738],{"type":45,"value":313},{"type":40,"tag":129,"props":4740,"children":4741},{"style":148},[4742],{"type":45,"value":318},{"type":40,"tag":129,"props":4744,"children":4745},{"style":142},[4746],{"type":45,"value":182},{"type":40,"tag":99,"props":4748,"children":4750},{"id":4749},"flags_secret",[4751],{"type":45,"value":1054},{"type":40,"tag":48,"props":4753,"children":4754},{},[4755],{"type":45,"value":4756},"Required for precompute and Flags Explorer. Must be 32 random bytes, base64-encoded:",{"type":40,"tag":118,"props":4758,"children":4762},{"className":4759,"code":4760,"language":4761,"meta":123,"style":123},"language-sh shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","node -e \"console.log(crypto.randomBytes(32).toString('base64url'))\"\n","sh",[4763],{"type":40,"tag":54,"props":4764,"children":4765},{"__ignoreMap":123},[4766],{"type":40,"tag":129,"props":4767,"children":4768},{"class":131,"line":132},[4769,4774,4779,4784,4789],{"type":40,"tag":129,"props":4770,"children":4771},{"style":907},[4772],{"type":45,"value":4773},"node",{"type":40,"tag":129,"props":4775,"children":4776},{"style":169},[4777],{"type":45,"value":4778}," -e",{"type":40,"tag":129,"props":4780,"children":4781},{"style":142},[4782],{"type":45,"value":4783}," \"",{"type":40,"tag":129,"props":4785,"children":4786},{"style":169},[4787],{"type":45,"value":4788},"console.log(crypto.randomBytes(32).toString('base64url'))",{"type":40,"tag":129,"props":4790,"children":4791},{"style":142},[4792],{"type":45,"value":4793},"\"\n",{"type":40,"tag":48,"props":4795,"children":4796},{},[4797,4799,4804],{"type":45,"value":4798},"Use a separate ",{"type":40,"tag":54,"props":4800,"children":4802},{"className":4801},[],[4803],{"type":45,"value":1054},{"type":45,"value":4805}," value for each environment (Development, Preview, Production), and mark the Preview and Production values as Sensitive. Run the generator once per environment to produce distinct values, then store each on Vercel:",{"type":40,"tag":118,"props":4807,"children":4809},{"className":4759,"code":4808,"language":4761,"meta":123,"style":123},"vercel env add FLAGS_SECRET production --sensitive --value \u003Cproduction-secret>\nvercel env add FLAGS_SECRET preview --sensitive --value \u003Cpreview-secret>\nvercel env add FLAGS_SECRET development --value \u003Cdevelopment-secret>\n",[4810],{"type":40,"tag":54,"props":4811,"children":4812},{"__ignoreMap":123},[4813,4868,4917],{"type":40,"tag":129,"props":4814,"children":4815},{"class":131,"line":132},[4816,4820,4825,4830,4834,4839,4844,4849,4853,4858,4863],{"type":40,"tag":129,"props":4817,"children":4818},{"style":907},[4819],{"type":45,"value":8},{"type":40,"tag":129,"props":4821,"children":4822},{"style":169},[4823],{"type":45,"value":4824}," env",{"type":40,"tag":129,"props":4826,"children":4827},{"style":169},[4828],{"type":45,"value":4829}," add",{"type":40,"tag":129,"props":4831,"children":4832},{"style":169},[4833],{"type":45,"value":4609},{"type":40,"tag":129,"props":4835,"children":4836},{"style":169},[4837],{"type":45,"value":4838}," production",{"type":40,"tag":129,"props":4840,"children":4841},{"style":169},[4842],{"type":45,"value":4843}," --sensitive",{"type":40,"tag":129,"props":4845,"children":4846},{"style":169},[4847],{"type":45,"value":4848}," --value",{"type":40,"tag":129,"props":4850,"children":4851},{"style":142},[4852],{"type":45,"value":1437},{"type":40,"tag":129,"props":4854,"children":4855},{"style":169},[4856],{"type":45,"value":4857},"production-secre",{"type":40,"tag":129,"props":4859,"children":4860},{"style":148},[4861],{"type":45,"value":4862},"t",{"type":40,"tag":129,"props":4864,"children":4865},{"style":142},[4866],{"type":45,"value":4867},">\n",{"type":40,"tag":129,"props":4869,"children":4870},{"class":131,"line":185},[4871,4875,4879,4883,4887,4892,4896,4900,4904,4909,4913],{"type":40,"tag":129,"props":4872,"children":4873},{"style":907},[4874],{"type":45,"value":8},{"type":40,"tag":129,"props":4876,"children":4877},{"style":169},[4878],{"type":45,"value":4824},{"type":40,"tag":129,"props":4880,"children":4881},{"style":169},[4882],{"type":45,"value":4829},{"type":40,"tag":129,"props":4884,"children":4885},{"style":169},[4886],{"type":45,"value":4609},{"type":40,"tag":129,"props":4888,"children":4889},{"style":169},[4890],{"type":45,"value":4891}," preview",{"type":40,"tag":129,"props":4893,"children":4894},{"style":169},[4895],{"type":45,"value":4843},{"type":40,"tag":129,"props":4897,"children":4898},{"style":169},[4899],{"type":45,"value":4848},{"type":40,"tag":129,"props":4901,"children":4902},{"style":142},[4903],{"type":45,"value":1437},{"type":40,"tag":129,"props":4905,"children":4906},{"style":169},[4907],{"type":45,"value":4908},"preview-secre",{"type":40,"tag":129,"props":4910,"children":4911},{"style":148},[4912],{"type":45,"value":4862},{"type":40,"tag":129,"props":4914,"children":4915},{"style":142},[4916],{"type":45,"value":4867},{"type":40,"tag":129,"props":4918,"children":4919},{"class":131,"line":195},[4920,4924,4928,4932,4936,4941,4945,4949,4954,4958],{"type":40,"tag":129,"props":4921,"children":4922},{"style":907},[4923],{"type":45,"value":8},{"type":40,"tag":129,"props":4925,"children":4926},{"style":169},[4927],{"type":45,"value":4824},{"type":40,"tag":129,"props":4929,"children":4930},{"style":169},[4931],{"type":45,"value":4829},{"type":40,"tag":129,"props":4933,"children":4934},{"style":169},[4935],{"type":45,"value":4609},{"type":40,"tag":129,"props":4937,"children":4938},{"style":169},[4939],{"type":45,"value":4940}," development",{"type":40,"tag":129,"props":4942,"children":4943},{"style":169},[4944],{"type":45,"value":4848},{"type":40,"tag":129,"props":4946,"children":4947},{"style":142},[4948],{"type":45,"value":1437},{"type":40,"tag":129,"props":4950,"children":4951},{"style":169},[4952],{"type":45,"value":4953},"development-secre",{"type":40,"tag":129,"props":4955,"children":4956},{"style":148},[4957],{"type":45,"value":4862},{"type":40,"tag":129,"props":4959,"children":4960},{"style":142},[4961],{"type":45,"value":4867},{"type":40,"tag":48,"props":4963,"children":4964},{},[4965,4967,4973],{"type":45,"value":4966},"Then run ",{"type":40,"tag":54,"props":4968,"children":4970},{"className":4969},[],[4971],{"type":45,"value":4972},"vc env pull",{"type":45,"value":4974}," to sync to local.",{"type":40,"tag":99,"props":4976,"children":4978},{"id":4977},"precompute-pattern",[4979],{"type":45,"value":4980},"Precompute pattern",{"type":40,"tag":48,"props":4982,"children":4983},{},[4984],{"type":45,"value":4985},"Use precompute to keep pages static while using feature flags. Middleware evaluates flags and encodes results into the URL via rewrite. The page reads precomputed values instead of re-evaluating.",{"type":40,"tag":48,"props":4987,"children":4988},{},[4989],{"type":45,"value":4990},"High-level flow:",{"type":40,"tag":873,"props":4992,"children":4993},{},[4994,4999,5018,5029],{"type":40,"tag":75,"props":4995,"children":4996},{},[4997],{"type":45,"value":4998},"Declare flags and group them in an array",{"type":40,"tag":75,"props":5000,"children":5001},{},[5002,5004,5010,5012,5017],{"type":45,"value":5003},"Call ",{"type":40,"tag":54,"props":5005,"children":5007},{"className":5006},[],[5008],{"type":45,"value":5009},"precompute(flagGroup)",{"type":45,"value":5011}," in middleware, get a ",{"type":40,"tag":54,"props":5013,"children":5015},{"className":5014},[],[5016],{"type":45,"value":54},{"type":45,"value":2250},{"type":40,"tag":75,"props":5019,"children":5020},{},[5021,5023],{"type":45,"value":5022},"Rewrite request to ",{"type":40,"tag":54,"props":5024,"children":5026},{"className":5025},[],[5027],{"type":45,"value":5028},"\u002F${code}\u002Foriginal-path",{"type":40,"tag":75,"props":5030,"children":5031},{},[5032,5034,5039,5041],{"type":45,"value":5033},"Page reads flag values from ",{"type":40,"tag":54,"props":5035,"children":5037},{"className":5036},[],[5038],{"type":45,"value":54},{"type":45,"value":5040},": ",{"type":40,"tag":54,"props":5042,"children":5044},{"className":5043},[],[5045],{"type":45,"value":4204},{"type":40,"tag":48,"props":5047,"children":5048},{},[5049],{"type":45,"value":5050},"For full implementation details, see framework-specific references:",{"type":40,"tag":71,"props":5052,"children":5053},{},[5054,5071],{"type":40,"tag":75,"props":5055,"children":5056},{},[5057,5062,5064,5069],{"type":40,"tag":607,"props":5058,"children":5059},{},[5060],{"type":45,"value":5061},"Next.js",{"type":45,"value":5063},": See ",{"type":40,"tag":81,"props":5065,"children":5067},{"href":5066},"references\u002Fnextjs.md",[5068],{"type":45,"value":5066},{"type":45,"value":5070}," — covers proxy middleware, precompute setup, ISR, generatePermutations, multiple groups",{"type":40,"tag":75,"props":5072,"children":5073},{},[5074,5078,5079,5084],{"type":40,"tag":607,"props":5075,"children":5076},{},[5077],{"type":45,"value":4537},{"type":45,"value":5063},{"type":40,"tag":81,"props":5080,"children":5082},{"href":5081},"references\u002Fsveltekit.md",[5083],{"type":45,"value":5081},{"type":45,"value":5085}," — covers reroute hook, middleware, precompute setup, ISR, prerendering",{"type":40,"tag":99,"props":5087,"children":5089},{"id":5088},"custom-adapters",[5090],{"type":45,"value":5091},"Custom adapters",{"type":40,"tag":48,"props":5093,"children":5094},{},[5095,5097,5102,5103,5108,5110,5114],{"type":45,"value":5096},"Create an adapter factory that returns an object with ",{"type":40,"tag":54,"props":5098,"children":5100},{"className":5099},[],[5101],{"type":45,"value":402},{"type":45,"value":396},{"type":40,"tag":54,"props":5104,"children":5106},{"className":5105},[],[5107],{"type":45,"value":394},{"type":45,"value":5109},". For the full pattern (including default adapter and singleton client examples), see ",{"type":40,"tag":81,"props":5111,"children":5112},{"href":4228},[5113],{"type":45,"value":1662},{"type":45,"value":943},{"type":40,"tag":99,"props":5116,"children":5118},{"id":5117},"encryption-functions",[5119],{"type":45,"value":5120},"Encryption functions",{"type":40,"tag":48,"props":5122,"children":5123},{},[5124],{"type":45,"value":5125},"For keeping flag data confidential in the browser (used by Flags Explorer):",{"type":40,"tag":3075,"props":5127,"children":5128},{},[5129,5145],{"type":40,"tag":3079,"props":5130,"children":5131},{},[5132],{"type":40,"tag":3083,"props":5133,"children":5134},{},[5135,5140],{"type":40,"tag":3087,"props":5136,"children":5137},{},[5138],{"type":45,"value":5139},"Function",{"type":40,"tag":3087,"props":5141,"children":5142},{},[5143],{"type":45,"value":5144},"Purpose",{"type":40,"tag":3103,"props":5146,"children":5147},{},[5148,5165,5182,5199,5216,5233],{"type":40,"tag":3083,"props":5149,"children":5150},{},[5151,5160],{"type":40,"tag":3110,"props":5152,"children":5153},{},[5154],{"type":40,"tag":54,"props":5155,"children":5157},{"className":5156},[],[5158],{"type":45,"value":5159},"encryptFlagValues",{"type":40,"tag":3110,"props":5161,"children":5162},{},[5163],{"type":45,"value":5164},"Encrypt resolved flag values",{"type":40,"tag":3083,"props":5166,"children":5167},{},[5168,5177],{"type":40,"tag":3110,"props":5169,"children":5170},{},[5171],{"type":40,"tag":54,"props":5172,"children":5174},{"className":5173},[],[5175],{"type":45,"value":5176},"decryptFlagValues",{"type":40,"tag":3110,"props":5178,"children":5179},{},[5180],{"type":45,"value":5181},"Decrypt flag values",{"type":40,"tag":3083,"props":5183,"children":5184},{},[5185,5194],{"type":40,"tag":3110,"props":5186,"children":5187},{},[5188],{"type":40,"tag":54,"props":5189,"children":5191},{"className":5190},[],[5192],{"type":45,"value":5193},"encryptFlagDefinitions",{"type":40,"tag":3110,"props":5195,"children":5196},{},[5197],{"type":45,"value":5198},"Encrypt flag definitions\u002Fmetadata",{"type":40,"tag":3083,"props":5200,"children":5201},{},[5202,5211],{"type":40,"tag":3110,"props":5203,"children":5204},{},[5205],{"type":40,"tag":54,"props":5206,"children":5208},{"className":5207},[],[5209],{"type":45,"value":5210},"decryptFlagDefinitions",{"type":40,"tag":3110,"props":5212,"children":5213},{},[5214],{"type":45,"value":5215},"Decrypt flag definitions",{"type":40,"tag":3083,"props":5217,"children":5218},{},[5219,5228],{"type":40,"tag":3110,"props":5220,"children":5221},{},[5222],{"type":40,"tag":54,"props":5223,"children":5225},{"className":5224},[],[5226],{"type":45,"value":5227},"encryptOverrides",{"type":40,"tag":3110,"props":5229,"children":5230},{},[5231],{"type":45,"value":5232},"Encrypt toolbar overrides",{"type":40,"tag":3083,"props":5234,"children":5235},{},[5236,5245],{"type":40,"tag":3110,"props":5237,"children":5238},{},[5239],{"type":40,"tag":54,"props":5240,"children":5242},{"className":5241},[],[5243],{"type":45,"value":5244},"decryptOverrides",{"type":40,"tag":3110,"props":5246,"children":5247},{},[5248],{"type":45,"value":5249},"Decrypt toolbar overrides",{"type":40,"tag":48,"props":5251,"children":5252},{},[5253,5255,5260],{"type":45,"value":5254},"All use ",{"type":40,"tag":54,"props":5256,"children":5258},{"className":5257},[],[5259],{"type":45,"value":1054},{"type":45,"value":5261}," by default. Example:",{"type":40,"tag":118,"props":5263,"children":5265},{"className":1300,"code":5264,"language":1302,"meta":123,"style":123},"import { encryptFlagValues } from 'flags';\nimport { FlagValues } from 'flags\u002Freact';\n\nasync function ConfidentialFlags({ values }) {\n  const encrypted = await encryptFlagValues(values);\n  return \u003CFlagValues values={encrypted} \u002F>;\n}\n",[5266],{"type":40,"tag":54,"props":5267,"children":5268},{"__ignoreMap":123},[5269,5309,5350,5357,5390,5431,5466],{"type":40,"tag":129,"props":5270,"children":5271},{"class":131,"line":132},[5272,5276,5280,5285,5289,5293,5297,5301,5305],{"type":40,"tag":129,"props":5273,"children":5274},{"style":136},[5275],{"type":45,"value":139},{"type":40,"tag":129,"props":5277,"children":5278},{"style":142},[5279],{"type":45,"value":145},{"type":40,"tag":129,"props":5281,"children":5282},{"style":148},[5283],{"type":45,"value":5284}," encryptFlagValues",{"type":40,"tag":129,"props":5286,"children":5287},{"style":142},[5288],{"type":45,"value":156},{"type":40,"tag":129,"props":5290,"children":5291},{"style":136},[5292],{"type":45,"value":161},{"type":40,"tag":129,"props":5294,"children":5295},{"style":142},[5296],{"type":45,"value":166},{"type":40,"tag":129,"props":5298,"children":5299},{"style":169},[5300],{"type":45,"value":59},{"type":40,"tag":129,"props":5302,"children":5303},{"style":142},[5304],{"type":45,"value":177},{"type":40,"tag":129,"props":5306,"children":5307},{"style":142},[5308],{"type":45,"value":182},{"type":40,"tag":129,"props":5310,"children":5311},{"class":131,"line":185},[5312,5316,5320,5325,5329,5333,5337,5342,5346],{"type":40,"tag":129,"props":5313,"children":5314},{"style":136},[5315],{"type":45,"value":139},{"type":40,"tag":129,"props":5317,"children":5318},{"style":142},[5319],{"type":45,"value":145},{"type":40,"tag":129,"props":5321,"children":5322},{"style":148},[5323],{"type":45,"value":5324}," FlagValues",{"type":40,"tag":129,"props":5326,"children":5327},{"style":142},[5328],{"type":45,"value":156},{"type":40,"tag":129,"props":5330,"children":5331},{"style":136},[5332],{"type":45,"value":161},{"type":40,"tag":129,"props":5334,"children":5335},{"style":142},[5336],{"type":45,"value":166},{"type":40,"tag":129,"props":5338,"children":5339},{"style":169},[5340],{"type":45,"value":5341},"flags\u002Freact",{"type":40,"tag":129,"props":5343,"children":5344},{"style":142},[5345],{"type":45,"value":177},{"type":40,"tag":129,"props":5347,"children":5348},{"style":142},[5349],{"type":45,"value":182},{"type":40,"tag":129,"props":5351,"children":5352},{"class":131,"line":195},[5353],{"type":40,"tag":129,"props":5354,"children":5355},{"emptyLinePlaceholder":189},[5356],{"type":45,"value":192},{"type":40,"tag":129,"props":5358,"children":5359},{"class":131,"line":235},[5360,5364,5368,5373,5377,5382,5386],{"type":40,"tag":129,"props":5361,"children":5362},{"style":204},[5363],{"type":45,"value":4444},{"type":40,"tag":129,"props":5365,"children":5366},{"style":204},[5367],{"type":45,"value":1376},{"type":40,"tag":129,"props":5369,"children":5370},{"style":220},[5371],{"type":45,"value":5372}," ConfidentialFlags",{"type":40,"tag":129,"props":5374,"children":5375},{"style":142},[5376],{"type":45,"value":2611},{"type":40,"tag":129,"props":5378,"children":5379},{"style":2305},[5380],{"type":45,"value":5381}," values",{"type":40,"tag":129,"props":5383,"children":5384},{"style":142},[5385],{"type":45,"value":2621},{"type":40,"tag":129,"props":5387,"children":5388},{"style":142},[5389],{"type":45,"value":1390},{"type":40,"tag":129,"props":5391,"children":5392},{"class":131,"line":268},[5393,5397,5402,5406,5410,5414,5418,5423,5427],{"type":40,"tag":129,"props":5394,"children":5395},{"style":204},[5396],{"type":45,"value":1398},{"type":40,"tag":129,"props":5398,"children":5399},{"style":148},[5400],{"type":45,"value":5401}," encrypted",{"type":40,"tag":129,"props":5403,"children":5404},{"style":142},[5405],{"type":45,"value":1408},{"type":40,"tag":129,"props":5407,"children":5408},{"style":136},[5409],{"type":45,"value":353},{"type":40,"tag":129,"props":5411,"children":5412},{"style":220},[5413],{"type":45,"value":5284},{"type":40,"tag":129,"props":5415,"children":5416},{"style":239},[5417],{"type":45,"value":227},{"type":40,"tag":129,"props":5419,"children":5420},{"style":148},[5421],{"type":45,"value":5422},"values",{"type":40,"tag":129,"props":5424,"children":5425},{"style":239},[5426],{"type":45,"value":318},{"type":40,"tag":129,"props":5428,"children":5429},{"style":142},[5430],{"type":45,"value":182},{"type":40,"tag":129,"props":5432,"children":5433},{"class":131,"line":307},[5434,5438,5442,5447,5451,5456,5461],{"type":40,"tag":129,"props":5435,"children":5436},{"style":136},[5437],{"type":45,"value":1432},{"type":40,"tag":129,"props":5439,"children":5440},{"style":142},[5441],{"type":45,"value":1437},{"type":40,"tag":129,"props":5443,"children":5444},{"style":907},[5445],{"type":45,"value":5446},"FlagValues",{"type":40,"tag":129,"props":5448,"children":5449},{"style":204},[5450],{"type":45,"value":5381},{"type":40,"tag":129,"props":5452,"children":5453},{"style":142},[5454],{"type":45,"value":5455},"={",{"type":40,"tag":129,"props":5457,"children":5458},{"style":148},[5459],{"type":45,"value":5460},"encrypted",{"type":40,"tag":129,"props":5462,"children":5463},{"style":142},[5464],{"type":45,"value":5465},"} \u002F>;\n",{"type":40,"tag":129,"props":5467,"children":5468},{"class":131,"line":325},[5469],{"type":40,"tag":129,"props":5470,"children":5471},{"style":142},[5472],{"type":45,"value":1510},{"type":40,"tag":99,"props":5474,"children":5476},{"id":5475},"react-components",[5477],{"type":45,"value":5478},"React components",{"type":40,"tag":118,"props":5480,"children":5482},{"className":1300,"code":5481,"language":1302,"meta":123,"style":123},"import { FlagValues, FlagDefinitions } from 'flags\u002Freact';\n\n\u002F\u002F Renders script tag with flag values for Flags Explorer\n\u003CFlagValues values={{ myFlag: true }} \u002F>\n\n\u002F\u002F Renders script tag with flag definitions for Flags Explorer\n\u003CFlagDefinitions definitions={{ myFlag: { options: [...], description: '...' } }} \u002F>\n",[5483],{"type":40,"tag":54,"props":5484,"children":5485},{"__ignoreMap":123},[5486,5534,5541,5549,5586,5593,5601],{"type":40,"tag":129,"props":5487,"children":5488},{"class":131,"line":132},[5489,5493,5497,5501,5505,5510,5514,5518,5522,5526,5530],{"type":40,"tag":129,"props":5490,"children":5491},{"style":136},[5492],{"type":45,"value":139},{"type":40,"tag":129,"props":5494,"children":5495},{"style":142},[5496],{"type":45,"value":145},{"type":40,"tag":129,"props":5498,"children":5499},{"style":148},[5500],{"type":45,"value":5324},{"type":40,"tag":129,"props":5502,"children":5503},{"style":142},[5504],{"type":45,"value":1933},{"type":40,"tag":129,"props":5506,"children":5507},{"style":148},[5508],{"type":45,"value":5509}," FlagDefinitions",{"type":40,"tag":129,"props":5511,"children":5512},{"style":142},[5513],{"type":45,"value":156},{"type":40,"tag":129,"props":5515,"children":5516},{"style":136},[5517],{"type":45,"value":161},{"type":40,"tag":129,"props":5519,"children":5520},{"style":142},[5521],{"type":45,"value":166},{"type":40,"tag":129,"props":5523,"children":5524},{"style":169},[5525],{"type":45,"value":5341},{"type":40,"tag":129,"props":5527,"children":5528},{"style":142},[5529],{"type":45,"value":177},{"type":40,"tag":129,"props":5531,"children":5532},{"style":142},[5533],{"type":45,"value":182},{"type":40,"tag":129,"props":5535,"children":5536},{"class":131,"line":185},[5537],{"type":40,"tag":129,"props":5538,"children":5539},{"emptyLinePlaceholder":189},[5540],{"type":45,"value":192},{"type":40,"tag":129,"props":5542,"children":5543},{"class":131,"line":195},[5544],{"type":40,"tag":129,"props":5545,"children":5546},{"style":1756},[5547],{"type":45,"value":5548},"\u002F\u002F Renders script tag with flag values for Flags Explorer\n",{"type":40,"tag":129,"props":5550,"children":5551},{"class":131,"line":235},[5552,5556,5560,5564,5569,5573,5577,5581],{"type":40,"tag":129,"props":5553,"children":5554},{"style":142},[5555],{"type":45,"value":1795},{"type":40,"tag":129,"props":5557,"children":5558},{"style":907},[5559],{"type":45,"value":5446},{"type":40,"tag":129,"props":5561,"children":5562},{"style":204},[5563],{"type":45,"value":5381},{"type":40,"tag":129,"props":5565,"children":5566},{"style":142},[5567],{"type":45,"value":5568},"={{",{"type":40,"tag":129,"props":5570,"children":5571},{"style":239},[5572],{"type":45,"value":1322},{"type":40,"tag":129,"props":5574,"children":5575},{"style":142},[5576],{"type":45,"value":247},{"type":40,"tag":129,"props":5578,"children":5579},{"style":291},[5580],{"type":45,"value":1980},{"type":40,"tag":129,"props":5582,"children":5583},{"style":142},[5584],{"type":45,"value":5585}," }} \u002F>\n",{"type":40,"tag":129,"props":5587,"children":5588},{"class":131,"line":268},[5589],{"type":40,"tag":129,"props":5590,"children":5591},{"emptyLinePlaceholder":189},[5592],{"type":45,"value":192},{"type":40,"tag":129,"props":5594,"children":5595},{"class":131,"line":307},[5596],{"type":40,"tag":129,"props":5597,"children":5598},{"style":1756},[5599],{"type":45,"value":5600},"\u002F\u002F Renders script tag with flag definitions for Flags Explorer\n",{"type":40,"tag":129,"props":5602,"children":5603},{"class":131,"line":325},[5604,5608,5613,5618,5622,5626,5630,5634,5639,5643,5647,5652,5656,5660,5665,5669,5673,5677,5681,5685],{"type":40,"tag":129,"props":5605,"children":5606},{"style":142},[5607],{"type":45,"value":1795},{"type":40,"tag":129,"props":5609,"children":5610},{"style":907},[5611],{"type":45,"value":5612},"FlagDefinitions",{"type":40,"tag":129,"props":5614,"children":5615},{"style":204},[5616],{"type":45,"value":5617}," definitions",{"type":40,"tag":129,"props":5619,"children":5620},{"style":142},[5621],{"type":45,"value":5568},{"type":40,"tag":129,"props":5623,"children":5624},{"style":239},[5625],{"type":45,"value":1322},{"type":40,"tag":129,"props":5627,"children":5628},{"style":142},[5629],{"type":45,"value":247},{"type":40,"tag":129,"props":5631,"children":5632},{"style":142},[5633],{"type":45,"value":145},{"type":40,"tag":129,"props":5635,"children":5636},{"style":239},[5637],{"type":45,"value":5638}," options",{"type":40,"tag":129,"props":5640,"children":5641},{"style":142},[5642],{"type":45,"value":247},{"type":40,"tag":129,"props":5644,"children":5645},{"style":148},[5646],{"type":45,"value":2689},{"type":40,"tag":129,"props":5648,"children":5649},{"style":142},[5650],{"type":45,"value":5651},"...",{"type":40,"tag":129,"props":5653,"children":5654},{"style":148},[5655],{"type":45,"value":2724},{"type":40,"tag":129,"props":5657,"children":5658},{"style":142},[5659],{"type":45,"value":1933},{"type":40,"tag":129,"props":5661,"children":5662},{"style":239},[5663],{"type":45,"value":5664}," description",{"type":40,"tag":129,"props":5666,"children":5667},{"style":142},[5668],{"type":45,"value":247},{"type":40,"tag":129,"props":5670,"children":5671},{"style":142},[5672],{"type":45,"value":166},{"type":40,"tag":129,"props":5674,"children":5675},{"style":169},[5676],{"type":45,"value":5651},{"type":40,"tag":129,"props":5678,"children":5679},{"style":142},[5680],{"type":45,"value":177},{"type":40,"tag":129,"props":5682,"children":5683},{"style":142},[5684],{"type":45,"value":156},{"type":40,"tag":129,"props":5686,"children":5687},{"style":142},[5688],{"type":45,"value":5585},{"type":40,"tag":99,"props":5690,"children":5692},{"id":5691},"references",[5693],{"type":45,"value":5694},"References",{"type":40,"tag":48,"props":5696,"children":5697},{},[5698],{"type":45,"value":5699},"Detailed framework and provider guides are in separate files to keep context lean:",{"type":40,"tag":71,"props":5701,"children":5702},{},[5703,5715,5727,5739],{"type":40,"tag":75,"props":5704,"children":5705},{},[5706,5713],{"type":40,"tag":607,"props":5707,"children":5708},{},[5709],{"type":40,"tag":81,"props":5710,"children":5711},{"href":5066},[5712],{"type":45,"value":5066},{"type":45,"value":5714},": Next.js quickstart, toolbar, App Router, Pages Router, middleware\u002Fproxy, precompute, dedupe, dashboard pages, marketing pages, suspense fallbacks",{"type":40,"tag":75,"props":5716,"children":5717},{},[5718,5725],{"type":40,"tag":607,"props":5719,"children":5720},{},[5721],{"type":40,"tag":81,"props":5722,"children":5723},{"href":5081},[5724],{"type":45,"value":5081},{"type":45,"value":5726},": SvelteKit quickstart, toolbar, hooks setup, precompute with reroute + middleware, dashboard pages, marketing pages",{"type":40,"tag":75,"props":5728,"children":5729},{},[5730,5737],{"type":40,"tag":607,"props":5731,"children":5732},{},[5733],{"type":40,"tag":81,"props":5734,"children":5735},{"href":1662},[5736],{"type":45,"value":1662},{"type":45,"value":5738},": All provider adapters — Vercel, Edge Config, Statsig, LaunchDarkly, PostHog, GrowthBook, Hypertune, Flagsmith, Reflag, Split, Optimizely, OpenFeature, and custom adapters",{"type":40,"tag":75,"props":5740,"children":5741},{},[5742,5750,5752,5757,5758,5763,5764,5769,5770],{"type":40,"tag":607,"props":5743,"children":5744},{},[5745],{"type":40,"tag":81,"props":5746,"children":5748},{"href":5747},"references\u002Fapi.md",[5749],{"type":45,"value":5747},{"type":45,"value":5751},": Full API reference for ",{"type":40,"tag":54,"props":5753,"children":5755},{"className":5754},[],[5756],{"type":45,"value":59},{"type":45,"value":696},{"type":40,"tag":54,"props":5759,"children":5761},{"className":5760},[],[5762],{"type":45,"value":5341},{"type":45,"value":696},{"type":40,"tag":54,"props":5765,"children":5767},{"className":5766},[],[5768],{"type":45,"value":172},{"type":45,"value":4240},{"type":40,"tag":54,"props":5771,"children":5773},{"className":5772},[],[5774],{"type":45,"value":4585},{"type":40,"tag":5776,"props":5777,"children":5778},"style",{},[5779],{"type":45,"value":5780},"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":5782,"total":132},[5783],{"slug":4,"name":4,"fn":5,"description":6,"org":5784,"tags":5785,"stars":23,"repoUrl":24,"updatedAt":25},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[5786,5787,5788,5789],{"name":21,"slug":22,"type":13},{"name":15,"slug":16,"type":13},{"name":18,"slug":19,"type":13},{"name":9,"slug":8,"type":13},{"items":5791,"total":5967},[5792,5813,5827,5846,5857,5872,5888,5904,5916,5935,5947,5957],{"slug":5793,"name":5793,"fn":5794,"description":5795,"org":5796,"tags":5797,"stars":5810,"repoUrl":5811,"updatedAt":5812},"next-cache-components-adoption","enable and migrate to Next.js Cache Components","Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the `cacheComponents` flag, work through a flood of blocking-prerender \u002F instant validation errors, run the `cache-components-instant-false` codemod, or decide between opting routes out with `export const instant = false` and fixing them in place.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[5798,5801,5804,5807,5809],{"name":5799,"slug":5800,"type":13},"Caching","caching",{"name":5802,"slug":5803,"type":13},"Frontend","frontend",{"name":5805,"slug":5806,"type":13},"Migration","migration",{"name":5061,"slug":5808,"type":13},"next-js",{"name":9,"slug":8,"type":13},141208,"https:\u002F\u002Fgithub.com\u002Fvercel\u002Fnext.js","2026-07-24T05:38:30.118542",{"slug":5814,"name":5814,"fn":5815,"description":5816,"org":5817,"tags":5818,"stars":5810,"repoUrl":5811,"updatedAt":5826},"next-cache-components-optimizer","optimize Next.js cache components","Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components \u002F PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next\u002Fplaywright instant() e2e and work it to green, one verified route at a time; the shipped test then guards against regression. Use when asked to make a route's navigation instant (its static shell commits immediately), fix a route whose static shell isn't prerendered\u002Fserved\u002Fprefetched, grow a route's static shell or fix its slow first paint, diagnose which Suspense boundary keeps a route out of its static shell, or write the instant() e2e guard for one. Requires Next.js 16.3+ with cacheComponents; directs an upgrade if older.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[5819,5820,5821,5822,5825],{"name":5799,"slug":5800,"type":13},{"name":5802,"slug":5803,"type":13},{"name":5061,"slug":5808,"type":13},{"name":5823,"slug":5824,"type":13},"Performance","performance",{"name":9,"slug":8,"type":13},"2026-07-30T05:31:10.674078",{"slug":5828,"name":5828,"fn":5829,"description":5830,"org":5831,"tags":5832,"stars":5810,"repoUrl":5811,"updatedAt":5845},"next-dev-loop","verify Next.js runtime behavior","Verify Next.js runtime behavior after editing app code. Use this skill to confirm a change actually works in a running app — not just that it compiles or type-checks. Combines \u002F_next\u002Fmcp (Next.js's view) with agent-browser (the browser's view). Requires a running `next dev`.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[5833,5836,5837,5840,5841,5842],{"name":5834,"slug":5835,"type":13},"Debugging","debugging",{"name":5802,"slug":5803,"type":13},{"name":5838,"slug":5839,"type":13},"Local Development","local-development",{"name":5061,"slug":5808,"type":13},{"name":9,"slug":8,"type":13},{"name":5843,"slug":5844,"type":13},"Web Development","web-development","2026-05-22T06:45:28.627735",{"slug":5847,"name":5847,"fn":5848,"description":5849,"org":5850,"tags":5851,"stars":5810,"repoUrl":5811,"updatedAt":5856},"next-partial-prefetching-adoption","adopt Partial Prefetching in Next.js apps","Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the `partialPrefetching` flag, opt routes in with `export const prefetch = 'partial'`, audit `\u003CLink prefetch={true}>` calls, or resolve the link-prefetch-partial and instant-shell-url-data insights.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[5852,5853,5854,5855],{"name":5802,"slug":5803,"type":13},{"name":5061,"slug":5808,"type":13},{"name":5823,"slug":5824,"type":13},{"name":9,"slug":8,"type":13},"2026-07-30T05:31:11.591864",{"slug":5858,"name":5858,"fn":5859,"description":5860,"org":5861,"tags":5862,"stars":5869,"repoUrl":5870,"updatedAt":5871},"turborepo","manage monorepos with Turborepo","Turborepo monorepo build system guidance. Triggers on: turbo.json, task pipelines,\ndependsOn, caching, remote cache, the \"turbo\" CLI, --filter, --affected, CI optimization, environment\nvariables, internal packages, monorepo structure\u002Fbest practices, and boundaries.\n\nUse when user: configures tasks\u002Fworkflows\u002Fpipelines, creates packages, sets up\nmonorepo, shares code between apps, runs changed\u002Faffected packages, debugs cache,\nor has apps\u002Fpackages directories.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[5863,5866,5867],{"name":5864,"slug":5865,"type":13},"CI\u002FCD","ci-cd",{"name":5823,"slug":5824,"type":13},{"name":5868,"slug":5858,"type":13},"Turborepo",30809,"https:\u002F\u002Fgithub.com\u002Fvercel\u002Fturborepo","2026-07-30T05:32:14.920116",{"slug":5873,"name":5873,"fn":5874,"description":5875,"org":5876,"tags":5877,"stars":5885,"repoUrl":5886,"updatedAt":5887},"add-function-examples","add AI function examples for testing","Guide for adding new AI function examples, for testing specific features against the actual provider APIs.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[5878,5881,5884],{"name":5879,"slug":5880,"type":13},"AI SDK","ai-sdk",{"name":5882,"slug":5883,"type":13},"Testing","testing",{"name":9,"slug":8,"type":13},25670,"https:\u002F\u002Fgithub.com\u002Fvercel\u002Fai","2026-04-06T18:55:51.318866",{"slug":5889,"name":5889,"fn":5890,"description":5891,"org":5892,"tags":5893,"stars":5885,"repoUrl":5886,"updatedAt":5903},"add-harness-package","add AI SDK harness packages","Guide for adding new AI SDK harness packages. Use when creating a new @ai-sdk\u002Fharness-\u003Cname> package that adapts a coding-agent runtime to HarnessV1.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[5894,5897,5898,5901,5902],{"name":5895,"slug":5896,"type":13},"Agents","agents",{"name":5879,"slug":5880,"type":13},{"name":5899,"slug":5900,"type":13},"Harness","harness",{"name":18,"slug":19,"type":13},{"name":9,"slug":8,"type":13},"2026-06-18T08:29:19.858737",{"slug":5905,"name":5905,"fn":5906,"description":5907,"org":5908,"tags":5909,"stars":5885,"repoUrl":5886,"updatedAt":5915},"add-provider-package","add new provider packages to AI SDK","Guide for adding new AI provider packages to the AI SDK. Use when creating a new @ai-sdk\u002F\u003Cprovider> package to integrate an AI service into the SDK.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[5910,5911,5914],{"name":5879,"slug":5880,"type":13},{"name":5912,"slug":5913,"type":13},"API Development","api-development",{"name":9,"slug":8,"type":13},"2026-04-06T18:55:47.45549",{"slug":5917,"name":5917,"fn":5918,"description":5919,"org":5920,"tags":5921,"stars":5885,"repoUrl":5886,"updatedAt":5934},"adr-skill","create and maintain architecture decision records","Create and maintain Architecture Decision Records (ADRs) optimized for agentic coding workflows. Use when you need to propose, write, update, accept\u002Freject, deprecate, or supersede an ADR; bootstrap an adr folder and index; consult existing ADRs before implementing changes; or enforce ADR conventions. This skill uses Socratic questioning to capture intent before drafting, and validates output against an agent-readiness checklist.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[5922,5925,5928,5931],{"name":5923,"slug":5924,"type":13},"ADR","adr",{"name":5926,"slug":5927,"type":13},"Architecture","architecture",{"name":5929,"slug":5930,"type":13},"Documentation","documentation",{"name":5932,"slug":5933,"type":13},"Engineering","engineering","2026-04-06T18:55:50.043694",{"slug":5880,"name":5880,"fn":5936,"description":5937,"org":5938,"tags":5939,"stars":5885,"repoUrl":5886,"updatedAt":5946},"build AI features with Vercel AI SDK","Answer questions about the AI SDK and help build AI-powered features. Use when developers: (1) Ask about AI SDK functions like generateText, streamText, ToolLoopAgent, embed, or tools, (2) Want to build AI agents, chatbots, RAG systems, or text generation features, (3) Have questions about AI providers (OpenAI, Anthropic, Google, etc.), streaming, tool calling, structured output, or embeddings, (4) Use React hooks like useChat or useCompletion. Triggers on: \"AI SDK\", \"Vercel AI SDK\", \"generateText\", \"streamText\", \"add AI to my app\", \"build an agent\", \"tool calling\", \"structured output\", \"useChat\".",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[5940,5941,5942,5945],{"name":5895,"slug":5896,"type":13},{"name":5879,"slug":5880,"type":13},{"name":5943,"slug":5944,"type":13},"LLM","llm",{"name":9,"slug":8,"type":13},"2026-04-06T18:55:48.739463",{"slug":5948,"name":5948,"fn":5949,"description":5950,"org":5951,"tags":5952,"stars":5885,"repoUrl":5886,"updatedAt":5956},"capture-api-response-test-fixture","capture API response test fixtures","Capture API response test fixture.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[5953,5954,5955],{"name":5912,"slug":5913,"type":13},{"name":5882,"slug":5883,"type":13},{"name":9,"slug":8,"type":13},"2026-04-06T18:55:56.374433",{"slug":5958,"name":5958,"fn":5959,"description":5960,"org":5961,"tags":5962,"stars":5885,"repoUrl":5886,"updatedAt":5966},"develop-ai-functions-example","develop AI SDK function examples","Develop examples for AI SDK functions. Use when creating, running, or modifying examples under examples\u002Fai-functions\u002Fsrc to validate provider support, demonstrate features, or create test fixtures.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[5963,5964,5965],{"name":5879,"slug":5880,"type":13},{"name":5882,"slug":5883,"type":13},{"name":9,"slug":8,"type":13},"2026-04-06T18:55:55.088956",68]