vercel/ai

The AI Toolkit for TypeScript. From the creators of Next.js, the AI SDK is a free open-source library for building AI-powered applications and agents

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 13 minutes ago
Added to GitGenius on April 14th, 2025
Created on May 23rd, 2023
Open Issues & Pull Requests: 1,771 (+3)
Number of forks: 5,011
Total Stargazers: 26,382 (+1)
Total Subscribers: 142 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 18.0 hours
Mean response time: 34.8 days
90th percentile: 108.8 days
Tracked items: 4,201

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 86% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Work labelled "merged-main" is answered fastest, typically in about 12 hours, while "feature" waits about 3 days. Almost all tracked open issues have seen activity in the last three months. Only 3% of issues opened in the past year have been closed.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 755
New in 7 days: 47
Closed in 7 days: 63
Avg open age: 210 days
Stale 30+ days: 620
Stale 90+ days: 4

Recent activity

Opened in 7 days: 45
Closed in 7 days: 63
Comments in 7 days: 118
Events in 7 days: 405

Top labels

  • task-identify-issue-type-done (4,198)
  • ai/provider (1,844)
  • support (1,244)
  • merged-main (981)
  • bug (844)
  • ai/core (825)
  • feature (734)
  • ai/ui (548)

Detailed Description

The AI SDK is a free, open-source TypeScript toolkit created by Vercel and the Next.js team for building AI-powered applications and agents. It provides a provider-agnostic architecture that abstracts away differences between multiple AI model providers, allowing developers to write unified code that works across OpenAI, Anthropic, Google, and other supported providers. The toolkit is designed to work seamlessly with popular UI frameworks including Next.js, React, Svelte, Vue, and Angular, as well as Node.js runtimes, making it accessible across different development environments.

The core functionality of the AI SDK centers on three main capabilities: generating text through language models, generating structured data from unstructured inputs, and building autonomous agents. The SDK provides a unified API that lets developers pass model strings to access providers through the Vercel AI Gateway by default, while also supporting direct connections to provider SDKs for more granular control. The AI SDK UI module offers framework-agnostic hooks specifically designed for building chatbots and generative user interfaces, with dedicated packages available for different frameworks like Next.js and React.

The repository's influence extends to overlapping contributor relationships with major projects including Microsoft's VSCode, TypeScript, and the Rust language repository, indicating its significance within the broader developer ecosystem.

The SDK requires Node.js 22 or higher and provides comprehensive documentation through its official website at ai-sdk.dev, including API references and detailed guides. The project includes pre-built templates for different use cases, providers, and frameworks to accelerate development. The repository actively encourages contributions through published contribution guidelines and maintains a community presence on the Vercel Community platform where users can ask questions, share ideas, and showcase projects built with the AI SDK.