mastra-ai/mastra
A TypeScript framework for building AI-powered applications and autonomous agents with model routing and workflow orchestration.

Mastra provides a comprehensive TypeScript framework for developing AI applications and autonomous agents. It offers model routing capabilities connecting to over 40 LLM providers through a unified interface, enabling developers to build agents that reason about goals, select and use tools, and iterate until producing final answers. The framework includes workflows for orchestrating multi-step processes, evaluation tooling for measuring agent performance, and integration with React, Next.js, and Node.js for deployment flexibility.