AI Potluck
Product / UX / Orchestration & agents

Mastra

Mastra

TypeScript-native framework for building AI agents and agentic applications. Covers agents with tools and instructions, graph-based workflows with explicit control flow, conversation memory with semantic recall, model routing across 90+ providers, and built-in evals, tracing and human-in-the-loop. Runs on Node.js, integrates with React and Next.js, or deploys as a standalone server. The framework is Apache-2.0; enterprise auth code under `ee/` directories carries a separate source-available license, and the hosted Mastra Platform is commercial - open-core in the same shape as LangGraph and LlamaIndex. Notable as the most-used TypeScript agent framework in a category whose open frameworks are otherwise almost entirely Python.

Apache-2.0 framework by Kepler Software, Inc., trading as Mastra. LICENSE.md splits the repo - everything outside `ee/` directories is Apache-2.0 (Copyright 2025 Kepler Software, Inc.), while `ee/` paths such as packages/core/src/auth/ee/ fall under the Mastra Enterprise License. GitHub's classifier reports NOASSERTION because of that preamble, so the license was read from the LICENSE.md body and confirmed against npm package metadata (both @mastra/core and mastra declare Apache-2.0). Verified live 2026-07-29; @mastra/core at v1.54.0.

Openness

4 high confidence
4.0
license
Apache-2.0(OSI, everything outside `ee/`)
source
public
core-gated
gated

Open-core in the LangGraph/LlamaIndex shape rather than the n8n one - the framework itself is a real OSI license, not fair-code. LICENSE.md scopes the commercial carve-out narrowly to `ee/` auth directories, so the agent, workflow, memory and eval surfaces a user actually builds on are Apache-2.0. Not 5 because the enterprise auth code is source-available and the managed platform is closed.

  • https://github.com/mastra-ai/mastra/blob/main/LICENSE.md recorded 2026-07-30

    LICENSE.md: "All content that resides under any directory named 'ee/' within this repository" - listing packages/core/src/auth/ee/ and packages/server/src/server/auth/ee/ - "is licensed under the license defined in ee/LICENSE", while everything "not mentioned" in those directories or restrictions "is available under the 'Apache License 2.0'". This preamble ahead of the Apache text is why GitHub's classifier reports NOASSERTION for the repo.

  • https://registry.npmjs.org/@mastra/core recorded 2026-07-30

    Registry metadata declares `license: Apache-2.0`, latest 1.55.0 (was 1.54.0 on 2026-07-29), confirming the framework ships to consumers under the OSI license rather than only being licensed that way in-repo. Cited previously as the npmjs.com package page, which answers 403 to any non-browser fetch behind a Cloudflare interstitial; the registry endpoint serves the same fact and can actually be re-checked.

  • https://mastra.ai/ recorded 2026-07-30

    Site FAQ states "Mastra's core framework is open source under the Apache 2.0 license. Enterprise features are source-available under the Mastra Enterprise License", and describes Mastra Cloud as the hosted commercial tier you can "deploy the same app to" after running it locally - so the published framework is what self-hosts.

Adoption

4 high confidence
4.0

@mastra/core at 4,931,561 downloads in the last month, which places it in the 1-10M band. Deliberately NOT summed with the `mastra` package (2,151,411/mo): npm counts increment for transitively fetched dependencies, and `mastra` pulls @mastra/core through @mastra/deployer, so adding them double-counts the same installs. @mastra/core is the package everything resolves to and is the better single proxy. The band is the same either way. Raw download volume includes CI and mirror traffic, so this is install volume rather than a user count.

Capability

4 medium confidence
4.0

Feature coverage comparable to LangChain and Pydantic-AI (both 4) - agents with tools, graph workflows with explicit control flow, memory with semantic recall, model routing across 90+ providers, evals, tracing and human-in-the-loop. Not 5 like LangGraph or LlamaIndex, which have deeper ecosystems and longer track records. Confidence is medium rather than high because no first-party SWE-bench or GAIA result exists for the framework itself, so this is a feature-matrix judgment rather than a measurement.

  • https://mastra.ai/ recorded 2026-07-29

    documents agents, graph-based workflows with control flow, memory with semantic recall, model routing across 90+ providers, built-in evals and tracing, and human-in-the-loop

Verified 2026-07-30