Mastra is what you reach for when the agent belongs in a TypeScript product rather than a Python script. Agents, workflows, RAG, evals and deployment come in one package, from people who built Gatsby.
Reach for it when
- Your stack is TypeScript end to end
- You want workflows and evals without assembling them
- You are deploying to serverless or the edge
Look elsewhere when
- Your team is Python
- You want the largest ecosystem, which is still Python
What the lessons will cover
- 01Install and setup
- 02Your first agent
- 03Tools
- 04Workflows
- 05RAG
- 06Memory
- 07Evals
- 08Deploying
Others in infrastructure
Common questions
Is Mastra free to use?
Mastra is open source and free to run yourself. You still pay whichever model provider you point it at, and this tutorial is free with no signup.
Do I need to know Python to use Mastra?
No. Mastra is a TypeScript library, so JavaScript or TypeScript is what you need.
When should I not use Mastra?
Your team is Python. You want the largest ecosystem, which is still Python.
Lessons for Mastra are being written. Meanwhile the LangGraph tutorial covers the same ground: state, tools, loops, memory and human approval. Most of it carries straight over.
Start the LangGraph tutorial →