Mastra
TypeScript-first AI agent framework. Workflows, RAG, tool use, evals, and integrations. Built for production Node.js apps. Open-source.
Mastra is an open-source TypeScript framework for building AI agents and workflows in Node.js. It provides first-class primitives for tool calling, RAG pipelines with vector storage, multi-step workflows with branching and loops, and built-in evaluation harnesses for testing agent behavior. The developer experience is TypeScript-native throughout, with full type safety on tools, schemas, and workflow steps. It integrates with multiple LLM providers through a unified interface and includes connectors for common services like databases and APIs. For TypeScript developers who find LangChain too Python-centric and the Vercel AI SDK too low-level for complex agent patterns, Mastra fills the gap with a batteries-included approach.
Similar Tools
Vercel AI SDK
The TypeScript toolkit for building AI apps. Unified API across OpenAI, Anthropic, Google. Streaming, tool calling, structured output, multi-step agents. 50K+ GitHub stars.
LangChain / LangGraph
Most popular LLM framework. 100K+ GitHub stars. Chains, RAG, vector stores, tool use. LangGraph adds stateful multi-agent workflows with cycles and persistence.
LlamaIndex
LLM data framework for connecting custom data sources to language models. Best-in-class RAG, data connectors, and query engines. Python and TypeScript.
Claude Agent SDK
Anthropic's Python SDK for building production agent systems. Tool use, guardrails, agent handoffs, and orchestration. Released alongside Claude 4.
Get started with Mastra
TypeScript-first AI agent framework. Workflows, RAG, tool use, evals, and integrations. Built for production Node.js apps. Open-source.
Try MastraGet weekly tool reviews
Honest takes on AI dev tools, frameworks, and infrastructure - delivered to your inbox.
Subscribe FreeMore AI Frameworks Tools
Vercel AI SDK
The TypeScript toolkit for building AI apps. Unified API across OpenAI, Anthropic, Google. Streaming, tool calling, structured output, multi-step agents. 50K+ GitHub stars.
Claude Agent SDK
Anthropic's Python SDK for building production agent systems. Tool use, guardrails, agent handoffs, and orchestration. Released alongside Claude 4.
LangChain / LangGraph
Most popular LLM framework. 100K+ GitHub stars. Chains, RAG, vector stores, tool use. LangGraph adds stateful multi-agent workflows with cycles and persistence.
Related Guides
Claude Code Setup Guide
Configure Claude Code for maximum productivity -- CLAUDE.md, sub-agents, MCP servers, and autonomous workflows.
AI AgentsMCP Servers Explained
What MCP servers are, how they work, and how to build your own in 5 minutes.
AI AgentsGetting Started with DevDigest CLI
Install the dd CLI and scaffold your first AI-powered app in under a minute.
Getting StartedRelated Posts
What is RAG? Retrieval Augmented Generation Explained
How RAG works, why it matters, and how to implement it in TypeScript. The technique that lets AI models use your data wi...

How to Build MCP Servers in TypeScript
A step-by-step guide to building Model Context Protocol servers in TypeScript. Project setup, tool registration, resourc...

Transformers.js: Run AI Models Directly in the Browser
Transformers.js lets you run machine learning models in the browser with zero backend. Here is how to use it for text ge...