Mastra

Mastra is the leading open-source TypeScript framework for building production-ready AI agents, founded by Sam Bhagwat, Shane Thomas, and Abhi Aiyer — the team previously behind Gatsby, the widely-used React web framework. The platform provides a complete set of AI primitives, including workflows for complex operations, autonomous agents, retrieval-augmented generation (RAG) for knowledge integration, and evaluation tools for quality control. Mastra is modular and interoperable, supporting over 40 LLM providers and giving developers a structured, type-safe approach to building scalable agent applications. Backed by a $35M in total funding (including a $22M Series A led by Spark Capital), the company is based in San Francisco. Mastra is recognized by the MACH Alliance as a leading agent framework and orchestration platform.