Mastra is a TypeScript-first framework for building AI-powered applications and agents, designed to take projects from prototype to production on a modern JavaScript/TypeScript stack. It integrates cleanly with React, Next.js, and Node-based backends, but can also run as a standalone server, giving teams flexibility in how they deploy their AI logic. At its core, Mastra provides abstractions for agents, workflows, tools, memory, retrieval, and model routing, so developers can focus on specifying behavior rather than wiring infrastructure from scratch. Model routing lets you connect to dozens of providers (OpenAI, Anthropic, Gemini, and others) through a single standardized interface, while agents orchestrate LLM calls and tools to solve open-ended tasks with internal reasoning loops. When explicit control is needed, Mastra’s workflow engine uses a graph-style API (.then(), .branch(), .parallel()) to orchestrate multi-step processes.

Features

  • TypeScript-native framework for agents, workflows, tools, and memory in one cohesive stack
  • Model routing layer that connects to 40+ LLM providers through a unified interface
  • Graph-based workflow engine for complex multi-step processes with branching and parallelism
  • Human-in-the-loop support that pauses agents or workflows and resumes them with persisted state
  • Built-in context and memory management, including retrieval from APIs, databases, and files
  • Production-focused capabilities like observability, evaluations, and MCP server authoring for IDE and tool integration

Project Samples

Project Activity

See All Activity >

Categories

Text to Speech

License

MIT License

Follow Mastra

Mastra Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Mastra!

Additional Project Details

Programming Language

TypeScript

Related Categories

TypeScript Text to Speech Software

Registered

16 hours ago