Mastra is an open-source TypeScript framework for building AI applications and agents. It provides primitives for workflows, agents, knowledge retrieval, and integration with popular AI services. Designed with a developer-first experience for teams building production AI.