# AI SDK: 9.0 out of 10

The default choice. 1st of 9 in [AI SDKs and agent frameworks](https://elestia.ai/opensource/ai-sdks/index.md).

The AI SDK (npm package `ai`) is Vercel's provider-agnostic TypeScript toolkit for calling language models, streaming, tool use, structured output, chat UIs and agents. In November 2026 it is the default pick for most TypeScript AI work. It is very active, adoption is growing fast and its API is clean. The main cost is how often it ships major versions.

**Best for:** TypeScript teams building AI features or agents into web apps who want one typed API across model providers, with streaming and UI hooks.

## Scores

- **Overall: 9.0** (likely 8.0 to 9.7)
  - Claude Opus 5.5 (9.0): It is the default choice for calling models and building agents in TypeScript. The API is strong, a funded team maintains it, it grows faster than the median, and independent reviewers endorse it. Mastra or LangGraph add more agent orchestration, often on top of this SDK. Frequent breaking majors are the main reason not to score it higher.
  - GPT-6.2 Sol (9.0): AI SDK is the default pick in this group for a new TypeScript app that needs several model providers and streaming chat. It pairs a simple model API with active maintenance and current integrations from other projects. LangGraph.js can be a better fit when execution centers on an explicit graph with checkpointing, and the pace of major upgrades limits confidence in long-term compatibility.
- **Needed by many: 6.7** (likely 5.6 to 7.7)
  - Claude Opus 5.5 (7.5): Adding LLM calls and agents is now common in web and backend TypeScript work. This SDK covers the general job on any runtime and many frameworks, not just Next.js. Still, many projects never call a model, which keeps the score below the top band.
  - GPT-6.2 Sol (5.8): The SDK serves teams adding model calls to web apps, backend services, and internal tools. Its shared core and multiple UI integrations give it reach across JavaScript stacks. Surveys cover selected groups of developers, so the share of all JavaScript projects that need model integration is uncertain.
- **Helps a lot: 9.0** (likely 7.9 to 9.7)
  - Claude Opus 5.5 (9.0): Independent reviewers call its streaming best in class and its typed tool calls clean. It covers text, objects, tools, agents, UI hooks and observability, and v7 adds durable execution and approvals. It loses a little for leaving multi-agent structure to the user and for wire-format churn between versions.
  - GPT-6.2 Sol (8.9): Stable v7.0.179 combines typed tool calls and structured output with chat streaming, resumable workflows, and typed timeout errors. A November comparison found its model calls simpler than LangChain.js and gave it a narrow lead over Mastra for the examples tested. Versioned docs and mocks give coding agents a way to check their work. An open report about pending tool calls and sparse independent performance measurements leave room for uncertainty.
- **Holds up over time: 8.5** (likely 7.4 to 9.5)
  - Claude Opus 5.5 (8.5): Vercel funds a named core team. The repository had 4,736 commits last year and merged more than 12,000 pull requests in total, and the ecosystem is moving towards it. Frequent major versions with breaking changes, plus the reliance on a single company, keep the score below the top.
  - GPT-6.2 Sol (8.5): Vercel has a six-person core team and continues to release updates to the core package. A reported WorkflowAgent regression was fixed within days, while the repository still has more than a thousand open pull requests across its packages. The v7 migration includes runtime and API changes that codemods only partly cover, making future upgrade costs harder to predict.
- **Used widely: 7.5** (likely 6.4 to 8.3)
  - Claude Opus 5.5 (8.5): Downloads grew about 10x year over year (18M to 180M per 4 weeks), well above the 4.1 median. That growth beats LangChain.js and the OpenAI SDK, though not Mastra's from a smaller base. Some downloads come from other tools that install it, such as Mastra and agent CLIs, but its 2,455 dependent repos are close to LangChain's 2,970 and confirm direct use.
  - GPT-6.2 Sol (6.5): Four-week installs rose about 10× year over year against the 4.1× catalog median, a strong signal of growing share. The partial ecosyste.ms index found 2,455 dependent repositories, behind LangChain.js at 2,970 despite much higher install volume. Repeat installs and indirect dependencies make the number of projects choosing it uncertain.
- **Vouched for: 8.1** (likely 7.0 to 9.1)
  - Claude Opus 5.5 (8.0): Several independent comparisons in 2026 call it the default TypeScript AI SDK. Mastra and Vercel's own eve framework build on it, and Langfuse, Datadog, Sentry and Angular integrate with it or promote it. I found no survey figures specific to it, which keeps the score from going higher.
  - GPT-6.2 Sol (8.2): OpenCode uses AI SDK provider adapters, and assistant-ui and Mastra maintain v7 integrations. An independent comparison retested v7 in November and favored its API and documentation. Inngest found production use in a small engineering survey, while evidence on long-term satisfaction is sparse.
- **Safe: 8.2** (likely 7.1 to 9.1)
  - Claude Opus 5.5 (8.0): The package has only 3 dependencies, a permissive Apache-2.0 licence, and one low-severity advisory (a file-type check bypass) in its history. There is no Scorecard to check how releases are published. The very high release rate across many packages makes careful version pinning worthwhile.
  - GPT-6.2 Sol (8.3): The Apache-2.0 core has three direct runtime dependencies, all from the same project. Vercel disclosed the low-severity core advisory with fixes already available, and its GitHub Actions release workflow uses OIDC with npm provenance configured. Separate harness packages have had serious advisories, and the missing OpenSSF Scorecard and unverified publisher count widen the range.

## Good

- One typed API (generateText, streamText, tools, structured output) lets you switch providers by changing one string.
- Its streaming support and UI hooks for React, Vue, Svelte and Angular are rated the best available for chat and copilot apps.
- Version 7 adds durable WorkflowAgent, tool approvals, timeouts, MCP Apps support and built-in telemetry for production agents.
- Vercel funds a core team, and the project has very high commit and release activity with 788 contributors.

## Bad

- Three major versions in about a year (v5, v6, v7) changed the stream and message formats, so upgrades need codemods and manual fixes.
- Patch releases come almost daily, and users report that client and server versions that do not match can break streams.
- Multi-agent orchestration and memory are left to you, so you build them yourself or add Mastra or LangGraph on top.
- No OpenSSF Scorecard was available, and GitHub does not detect a licence on the repository (npm lists Apache-2.0).

## The numbers

- Downloads, 4 weeks: 180M
- In a year: ×10
- GitHub stars: 28k
- Commits, 12 months: 4.7k
- Last npm release: Nov 2026
- Advisories, 24 months: 1
- Licence: Apache-2.0
- GitHub: https://github.com/vercel/ai
- npm: https://www.npmjs.com/package/ai

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.
