# Flags SDK: 7.1 out of 10

A strong pick. 4th of 8 in [Feature flag SDKs](https://elestia.ai/opensource/feature-flags/index.md).

Vercel's Flags SDK is an open-source, MIT-licensed toolkit for feature flags in Next.js and SvelteKit. It sits on top of providers such as Vercel Flags, LaunchDarkly, Statsig, PostHog or Edge Config, and is not a flag store itself. It is a good choice for Next.js teams, especially on Vercel. Teams on other frameworks, and teams that want a vendor-neutral standard, are better served by OpenFeature or a provider's own SDK.

**Best for:** Next.js or SvelteKit teams, especially on Vercel, who want flags declared in code that work with server rendering, static precompute and the Flags Explorer toolbar.

## Scores

- **Overall: 7.1** (likely 6.1 to 8.1)
  - Claude Opus 5.5 (6.5): For Next.js apps, especially on Vercel, it is a strong and actively maintained way to read flags from any provider, with precompute features that peers lack. Its limits are the Next.js and SvelteKit lock-in, unstable core APIs, the need for a separate flag backend, and little independent validation. For most teams outside that niche, OpenFeature or a provider's own SDK is the better pick.
  - GPT-6.2 Sol (7.7): Typed declarations, static variants, and active maintenance make this a strong pick for new Next.js and SvelteKit apps that evaluate flags on the server. OpenFeature is the broader choice when the same flag API has to work across frameworks and in browsers. Reports of friction with Next.js caching and the limited independent production record keep the estimate below the category’s default-choice tier.
- **Needed by many: 4.6** (likely 3.5 to 5.6)
  - Claude Opus 5.5 (4.5): Feature flags are a common need, but this SDK only serves Next.js and SvelteKit apps. That makes it much narrower than OpenFeature or the multi-runtime vendor SDKs. Next.js is a large ecosystem, which keeps the score in the middle.
  - GPT-6.2 Sol (4.6): Targeted rollouts and quick reversals are useful to many teams running production web apps. Next.js has a sizable developer base, but this SDK serves only Next.js and SvelteKit teams that want server-side evaluation. The framework survey shows the size of the potential audience, with no direct measure of its need for feature flags.
- **Helps a lot: 7.3** (likely 6.2 to 8.3)
  - Claude Opus 5.5 (6.5): Its model of flags as server-side functions fits Next.js well. Precompute for static pages, Flags Explorer overrides and a wide set of adapters are real advantages. On the other side, the precompute APIs are still unstable, Next.js 16 Cache Components support is unfinished, and the issue tracker shows adapter bugs. It also depends on a separate provider for targeting and management.
  - GPT-6.2 Sol (8.0): Version 4.5.0 offers typed flag functions, batch evaluation, static variants, and provider adapters. The release manifest declares TypeScript types despite the collector’s flag, and Vercel publishes examples and an agent skill. Users report friction around precomputation and Next.js caching, and independent performance and agent accuracy measurements are sparse.
- **Holds up over time: 7.8** (likely 6.7 to 8.8)
  - Claude Opus 5.5 (7.5): Vercel pays for the work, and Vercel Flags, which went GA in April 2026, depends on this SDK. That gives it a strong reason to continue. The repository shows 283 commits, 94 releases and 34 contributors in the last year, and issues get handled. It has already changed package name (from @vercel/flags) and had a breaking v4, and its experimental APIs may change again.
  - GPT-6.2 Sol (8.0): Vercel maintains the project and integrates it with its flag service. The repository logged 283 commits in the last year, and npm recorded 16 versions of the core package. A maintainer answered one caching report within four days, though it remains open and the v4 upgrade required application changes. The short maintenance history and uncertain number of people who can authorize releases leave room in the estimate.
- **Used widely: 4.7** (likely 3.2 to 6.1)
  - Claude Opus 5.5 (5.0): Downloads grew about 6x in a year, which beats the 4.1 median ratio. But only 136 dependent repositories back 7.5M monthly downloads, against 608 for GrowthBook, so installs by tooling or templates probably inflate the count. The npm name also dates from 2011, which may add older installs. Stars and social attention are low next to the downloads.
  - GPT-6.2 Sol (4.3): Four-week downloads rose from 1.27 million to 7.56 million, about 6.0× year over year against the 4.1× catalog median. In the same dependent index, Flags SDK has 136 repositories, ahead of Unleash’s 73 and behind GrowthBook’s 608. Automated installs, incomplete repository coverage, and sparse community discussion make the number of teams choosing it hard to pin down.
- **Vouched for: 5.5** (likely 4.1 to 6.9)
  - Claude Opus 5.5 (5.0): Vercel stands behind it and uses it in its own product, and several flag vendors have adapters for it. Independent reviews, benchmarks and user reports are almost absent, and there is no survey data. Most of what exists online is Vercel's own documentation.
  - GPT-6.2 Sol (6.0): Co-op’s frontend lead described testing a payment rollout in production with the SDK in a Vercel case example. OpenFeature and Statsig document integrations, and PostHog’s comparison identifies a practical fit for Next.js teams that keep flags in code. Those integrations show ecosystem support, while recent named production reports and independent benchmarks remain sparse.
- **Safe: 7.9** (likely 6.8 to 8.9)
  - Claude Opus 5.5 (7.5): It has one moderate advisory (CVE-2025-46332): an override link could expose the list of flags. The fix came only in the 4.0.0 major release. The package has two dependencies, an MIT licence and an active corporate maintainer. There is no OpenSSF Scorecard, and past issues show build-breaking peer dependencies, which keep the range open.
  - GPT-6.2 Sol (8.2): The MIT-licensed core has two direct dependencies, and its GitHub Actions workflow is configured for npm trusted publishing and provenance. The moderate information-disclosure advisory was disclosed with a fix in 4.0.0, and a separate 2026 leak was fixed in version 2.0.0 of the optional Flagsmith adapter. The missing OpenSSF Scorecard and limited visibility into release permissions widen the range.

## Good

- Flags are declared in code as typed server-side functions, which avoids layout shift and keeps flag values out of client bundles.
- The precompute pattern keeps pages static while serving flag variants, which few peers offer.
- Adapters for LaunchDarkly, Statsig, PostHog, GrowthBook, Edge Config, Vercel Flags and OpenFeature keep you free to switch providers.
- Vercel staff maintain it actively, with frequent releases and only two runtime dependencies.

## Bad

- It only supports Next.js and SvelteKit, so it is no use for other frameworks or plain Node services.
- Key APIs such as precompute and evaluate are still marked unstable or experimental.
- Support for Next.js 16 Cache Components is still being worked out in open issues.
- It has no flag management, targeting UI or experimentation of its own, so you still need a backing provider.

## The numbers

- Downloads, 4 weeks: 7.6M
- In a year: ×6.0
- GitHub stars: 631
- Commits, 12 months: 283
- Last npm release: Nov 2026
- Advisories, 24 months: 1
- Licence: MIT
- GitHub: https://github.com/vercel/flags
- npm: https://www.npmjs.com/package/flags

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 21 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
