Mastra
by Mastra
TypeScript-first agent framework. Workflows, agents, tools, memory, evals, in one consistent shape.
OSS
Mastra
Added 17 May 2026
Overview
Mastra is a TypeScript-first agent framework from former Gatsby founders. It bundles agents, workflows, tools, memory, and evals under a single API and ships with first-party integrations for the common provider and vector stores. The TypeScript answer to LangGraph for teams who want one consistent framework.
Best for
Best for
TypeScript teams who want a single agent framework, not a stack
Use cases
- Build production agents in a Next.js or Node app
- Define long-running workflows with explicit state in TypeScript
- Wire eval into the dev loop from day one
- Use one framework across agents, workflows, memory, and evals
Notes
Why it matters
TypeScript-first agent stacks are underserved by the Python-heavy ecosystem. Mastra is the most credible all-in-one answer for teams who do not want to bolt together five libraries.
How teams use it in production
Use Mastra as the spine. Reach for Vercel AI SDK where streaming UIs are the priority. Treat memory and eval as first-class from the start.
What to watch
The race between Mastra, Vercel AI SDK (with the new agent loop), and LangGraph.js is the question of where TypeScript agent stacks land in 2026.
Pros
- One coherent API across agents, workflows, memory, and evals
- First-class TypeScript, no Python sibling needed
- Strong dev loop and inspector tooling
- Active development with experienced founder backing
Cons
- Newer, ecosystem still maturing
- Less battle-tested than LangGraph or LlamaIndex
- Documentation depth still catching up to feature surface
Pairs with
Other entries in the index that connect to this one. Click through to see the chain.