This is an early release preview. You may encounter bugs.
Mastra logo
Unclaimed

Framework coding memory qa

Mastra

TypeScript framework for AI agents and apps, with model routing, graph-based workflows, memory, and built-in evals

A+ 92/100 GitHub score ? This grade is derived from GitHub signals, not user votes. Open for the full breakdown.
100% recommend · 1 rater

01 / About

What Mastra is.

Mastra is a TypeScript framework for building AI applications and agents. It covers the path from prototype to production and fits into React, Next.js, and Node projects, or runs anywhere as a standalone server, with agents and workflows either bundled into an existing app or shipped as separate endpoints.

Agents reason about a goal, choose tools, and iterate until the model produces a final answer or an optional stopping condition is reached. When you want explicit control instead, a graph-based workflow engine orchestrates multi-step processes with a chained syntax for control flow: .then(), .branch(), and .parallel(). Either can be suspended to wait for user input or approval, with execution state held in storage so a run pauses indefinitely and resumes where it stopped.

Model routing reaches more than 40 providers through one interface, including OpenAI, Anthropic, and Gemini. Context handling combines conversation history, retrieval from APIs, databases, and files, and an observational memory layer for behaviour that stays coherent across turns. Mastra can also author Model Context Protocol servers that expose its agents, tools, and resources to any MCP client.

Built-in evals and observability cover the measurement side, and the CLI scaffolds a project and starts a local studio for building and testing agents, workflows, and tools. The core framework is Apache-2.0, while code under ee/ directories is source-available and needs an enterprise licence for production use.

Features

  • Model routing: one interface over 40+ providers, including OpenAI, Anthropic, and Gemini
  • Agents: goal-driven loops that select tools and iterate until a final answer or stop condition
  • Workflows: a graph engine with .then(), .branch(), and .parallel() for explicit multi-step control
  • Human-in-the-loop: suspend an agent or workflow for input or approval and resume from stored state
  • Context management: conversation history, retrieval from external sources, and observational memory
  • Framework integration: embed in React, Next.js, or Node apps, or deploy as a standalone server
  • UI libraries: works with agentic UI libraries such as AI SDK UI and CopilotKit
  • MCP servers: expose agents, tools, and resources over the Model Context Protocol
  • Evals and observability: built-in evaluation and tracing for iterating on agent behaviour
  • Local studio: a development interface for building, testing, and managing agents, workflows, and tools

02 / Discussion CREDIBILITY-GATED

Discussion

Reading is open to everyone. Posting and voting need a verified identity or a GitHub grade of B or higher.

  • No discussions yet.

03 / Build

Build with Mastra.

Browse the catalogue for frameworks, tools, and harnesses, each scored on real GitHub credibility.

Get Mastra →

Browse the catalogue