Mastra
A TypeScript framework for AI applications and agents, with model routing, workflows, RAG and evals.
Sources and review
Checked against public documentation on . Suitability guidance is our editorial judgment; this is not a performance benchmark or an endorsement.
TypeScript teams building production agents without switching to Python.
You need its enterprise features in production without a commercial licence; code under ee directories requires one.
About Mastra
Mastra is a TypeScript framework for AI applications and agents that runs inside React, Next.js and Node projects or as a standalone server. It routes to more than 40 model providers through one interface and covers autonomous agents, graph-based workflows, memory, RAG, MCP and evals, from prototype to production. Most of the code is Apache-2.0; directories marked ee are source-available under an enterprise licence.
Mastra is an open-source project written primarily in TypeScript, with 28k stars on GitHub. It was last updated in September 2026.
npm create mastra@latest