# AI SDKs and agent frameworks

Call language models and build AI agents from JavaScript or TypeScript. 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.

| Rank | Project | Overall | Needed by many | Helps a lot | Holds up over time | Used widely | Vouched for | Safe | Best for |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | [AI SDK](https://elestia.ai/opensource/ai-sdks/ai-sdk/index.md) | 9.0 | 6.7 | 9.0 | 8.5 | 7.5 | 8.1 | 8.2 | TypeScript teams building AI features or agents into web apps who want one typed API across model providers, with streaming and UI hooks. |
| 2 | [OpenAI SDK](https://elestia.ai/opensource/ai-sdks/openai/index.md) | 7.9 | 6.1 | 7.9 | 8.7 | 8.3 | 7.9 | 8.8 | Server-side code that calls OpenAI or an OpenAI-compatible API directly and needs every new endpoint on day one. |
| 3 | [Anthropic SDK](https://elestia.ai/opensource/ai-sdks/anthropic-sdk/index.md) | 7.8 | 5.2 | 8.1 | 8.5 | 7.1 | 7.0 | 8.0 | Server-side TypeScript projects that build on Claude and want every API feature as soon as it ships. |
| 4 | [Mastra](https://elestia.ai/opensource/ai-sdks/mastra/index.md) | 7.7 | 5.4 | 7.9 | 8.0 | 6.6 | 7.1 | 5.3 | TypeScript teams that want agents, workflows, memory and observability in one integrated framework rather than assembling them on top of the AI SDK. |
| 5 | [LangGraph.js](https://elestia.ai/opensource/ai-sdks/langgraph/index.md) | 7.5 | 4.9 | 7.6 | 8.1 | 5.7 | 7.3 | 7.3 | TypeScript teams building durable agents with many steps, checkpoints and human approval, especially teams that already use LangChain or LangSmith. |
| 6 | [OpenAI Agents SDK](https://elestia.ai/opensource/ai-sdks/openai-agents/index.md) | 7.4 | 5.4 | 7.6 | 7.8 | 6.3 | 6.1 | 7.8 | Teams building multi-agent or voice agents on OpenAI models who want a small, official framework with tracing and hosted tools built in. |
| 7 | [LangChain.js](https://elestia.ai/opensource/ai-sdks/langchain/index.md) | 6.8 | 5.6 | 6.9 | 7.9 | 5.9 | 6.8 | 6.9 | Teams already on the LangChain/LangGraph/LangSmith stack, or teams that need its wide range of model, retriever and vector-store integrations in TypeScript. |
| 8 | [Genkit](https://elestia.ai/opensource/ai-sdks/genkit/index.md) | 6.7 | 6.2 | 7.1 | 7.6 | 4.3 | 5.7 | 7.2 | Teams on Firebase or Google Cloud that want typed flows, Gemini-first features and built-in tracing, or one framework across TypeScript, Go, Python and Dart. |
| 9 | [LlamaIndex.TS](https://elestia.ai/opensource/ai-sdks/llamaindex/index.md) | 1.5 | 4.6 | 5.1 | 0.6 | 3.2 | 3.1 | 4.3 | Only teams that already run it and are planning a move to a maintained framework. |

## The numbers

| Project | Downloads, 4 weeks | In a year | GitHub stars | Commits, 12 months | Last npm release | Advisories, 24 months |
| --- | --- | --- | --- | --- | --- | --- |
| AI SDK | 180M | ×10 | 28k | 4.7k | Nov 2026 | 1 |
| OpenAI SDK | 232M | ×7.6 | 11k | 1.4k | Nov 2026 | 0 |
| Anthropic SDK | 273M | ×25 | 2.2k | 846 | Nov 2026 | 2 |
| Mastra | 13M | ×15 | 30k | 12k | Nov 2026 | 1 |
| LangGraph.js | 20M | ×7.2 | 3.4k | 892 | Nov 2026 | 0 |
| OpenAI Agents SDK | 9.7M | ×14 | 4k | 1.2k | Nov 2026 | 0 |
| LangChain.js | 16M | ×3.3 | 18k | 1.3k | Nov 2026 | 1 |
| Genkit | 1.1M | +49% | 6.6k | 1.4k | Nov 2026 | 0 |
| LlamaIndex.TS | 735k | ×4.1 | 3.1k | 13 | Dec 2025 | 0 |

All categories: https://elestia.ai/opensource/index.md
