Evaluate FastStats flags on the server with Vercel's Flags SDK
The Flags SDK declares flags in code and evaluates them
on the server, in Next.js or SvelteKit. @faststats/flags-sdk is an adapter that
resolves those flags from FastStats.
A stable device or install ID. Required unless userId is set
userId
Your ID for a signed-in user. Rollouts bucket by it, so they follow the user
sessionId
Links evaluations to a session in analytics
attributes
Anything targeting rules should match on
The adapter forwards the visitor’s User-Agent, so rules can match browser,
os, and device. country is filled from x-vercel-ip-country or
cf-ipcountry unless attributes already sets it.
A flag falls back to its defaultValue when it does not exist, is archived, or
the service cannot be reached within timeoutMs. A missing flag without a
defaultValue throws a FastStatsFlagsError.