Open-source TypeScript AI framework for building production agents, multi-step workflows, and AI-powered apps with built-in observability and memory.
Mastra is an open-source TypeScript framework for building AI agents and applications, created by the team that built Gatsby. It provides typed agents with instructions, models, tools, and runtime behavior in one place; graph-based workflows with .then()/.branch()/.parallel() syntax; durable memory with semantic recall; and built-in tracing, evaluation, and dataset tools. Mastra connects to 90+ model providers through one API and deploys to Vercel, Netlify, Cloudflare, or any Node.js environment. Mastra is a product of Mastra.
For people
For agents