Mastra is an open-source TypeScript framework for building AI agent applications. It is developed by a company of the same name founded by the team behind the static site generator Gatsby, and bundles agents, workflows, memory, RAG, and evals into a single framework.
It provides an abstraction over multiple model providers, so models can be swapped by changing configuration. It also includes processors that inspect messages before they reach the main model and classifier features built on decision models. It is used in Node.js environments and with web frameworks such as Next.js.