mastra logo

mastra

mastra-ai/mastra

Modern TypeScript framework for AI-powered applications and agents

GraphCanon updated 4d · GitHub synced 4d · 29 views this month

27k stars2.6k forksLast push 4d TypeScript Other

Decision brief

Mastra is a modern TypeScript framework tailored specifically for building AI-powered applications and agents, supporting technologies like chatbots, language models, and TTS.

Good fit when

  • You should use Mastra when you are developing AI-driven applications or bots that require integration with technologies such as text-to-speech (TTS) or complex chatbot functionalities.
  • It is ideal for projects where the team prefers TypeScript due to its strong typing system and large ecosystem, providing an advantage in robustness and maintainability compared to frameworks in other

Avoid when

  • Mastra may not be suitable if your application does not require TypeScript and prefers simpler setup or non-TypeScript environments.
  • Avoid using Mastra if enterprise-level features or a dual-license model do not align with your project’s requirements or budget, especially when cost-free, fully open-source alternatives exist that
Pricing:
freemium - Free for open-source Apache-licensed portions; Mastra Enterprise License subscription required for full feature access.
Requirements:
Project must be developed in TypeScript.; JavaScript and TypeScript ecosystems (Node.js, NextJS) are prerequisites for leveraging Mastra's integrations fully.

Observed Jul 11, 2026 · Source: enrich:decision_facts

Verify the decision

Adoption

Package downloads where a registry match exists. GitHub stars (27,229) are secondary evidence.

npm downloads (30d)
31·npm downloads API·4d

Maintenance and security

Full trust report
Maintenance
Very active (0d since push)
As of 4d
Provenance
Not a fork · Organization account
As of 4d
Security (OSV)
No MCP manifest
As of 1mo

Public GitHub metadata and optional OSV scans. Signals, not a guarantee. Trust methodology.

Install

npm install mastra
npm

How it fits your stack(7)

Typed graph edges - alternatives, integrations, successors, and dependencies. Ranked by relationship type, not raw GitHub stars.

Alternative

Relationship graph

Optional deeper exploration of typed edges and category neighbours.

Similar tools

Same-category neighbours not already linked as typed edges.

Evidence and technical details

Sourced facts, taxonomy, compatibility claims, README excerpt, and machine-readable endpoints.

Overview

Mastra is a comprehensive TypeScript-based framework designed for developing AI-powered applications and agents. It supports the creation of chatbots, incorporates LLM functionalities, includes components for evaluate performance (evals) and Text-to-Speech (TTS), and can integrate with various JavaScript frameworks like ReactJS.

Capability facts

MCP server
No MCP server detected

Source: repo_scan · Aug 16, 2026

Languages
typescript, javascript

Source: github.language+package.json · Aug 16, 2026

Categories

Tags

README

Licensing

This repository uses a dual-license model:

  • Apache License 2.0 — The core framework and the vast majority of this codebase is open source under Apache-2.0.
  • Mastra Enterprise License — Code in any directory named ee/ (e.g., packages/core/src/auth/ee/) is source-available under the Mastra Enterprise License. These features require a valid enterprise license for production use but can be freely used for development and testing.

See LICENSE.md for the full license mapping and ee/LICENSE for the enterprise license terms.

For agents

This page has a .md twin and JSON over the API.

Was this helpful?

Anonymous feedback helps us improve pages and translations.