Mastra
★★★★★4.3Dev FrameworksFreemiumUpdated 27 Oct 2026
TypeScript agent framework with workflows and evals
Mastra gives TypeScript teams agents, durable workflows, RAG and evaluation in one opinionated framework.
mastra.ai

Starter prompts
Copy one into Mastra and swap the {braces} for your own details.
- Scaffold a {stack} project that does {task}, with tests and a README.
- Wire {service} into this framework and show the smallest working example.
- Explain where {framework} fits compared to {alternative} for {use case}.
Key Features
Durable workflows
Step functions with retries and suspend/resume.
Evals
Built-in scoring for outputs.
Local dev server
Playground for agents and workflows.
How to Use
- Scaffold a project with the CLI.
- Define an agent and a workflow.
- Test locally in the playground, then deploy.
Core Advantages
- ✓Best TS/JS experience
- ✓Durable execution
- ✓Good local tooling
Who It's For
Next.js teamsFull-stack devsProduct engineers
Pricing & Free Trial
Free open source plus cloudIndicative — not yet re-checked
Open source
$0
Apache 2.0
Free tier: Library free; optional cloud platform.
Prices are indicative — check the current list on mastra.ai
Frequently asked questions
- What is Mastra?
- Mastra gives TypeScript teams agents, durable workflows, RAG and evaluation in one opinionated framework.
- Is there a free plan for Mastra?
- Library free; optional cloud platform.
- How much does Mastra cost?
- Mastra uses a free open source plus cloud model — see the pricing section for the plans we have on file.
- What can Mastra do?
- Its headline capabilities: durable workflows; evals; local dev server.
- Who is Mastra for?
- It is aimed at next.js teams, full-stack devs, product engineers.
Our Verdict
The strongest option if your stack is TypeScript end to end.
Community rating
—
0 ratings
Tap a star to rate this tool
More like this
Compare Mastra with alternatives
Put Mastra next to its closest rivals — ratings, free tiers and entry prices in one table:
Ollama★ 4.6
Instructor★ 4.4
Pydantic AI★ 4.4