Mastra is a TypeScript framework for building AI-powered applications and agents that integrates with React, Next.js, and Node.js.
It provides model routing across 40+ providers, autonomous agents, graph-based workflows, human-in-the-loop capabilities, and built-in observability for production deployment. The framework is dual-licensed under Apache 2.0 for core functionality with enterprise features available separately.