Skip to main content

Agent Framework

Mastra

Mastra is a TypeScript framework for agents, typed workflows, memory, and evals, Apache 2.0 outside its ee/ directories. Mastra Platform hosts and traces them: Starter is free with monthly allowances, Teams is US$250 a month, and Enterprise is custom.

The 30-Second Take

Pick Mastra if your TypeScript team wants agents, typed workflows, memory and evals in one framework.

It is Apache 2.0 outside its ee/ directories, and Mastra Platform hosts and traces agents from a free Starter tier. Brex runs about half of its agent layer on it, while Vasco left for the Claude Agent SDK after six weeks.

Best fit
TypeScript product teams building agents with workflows, memory, and evals into their own Node.js apps.
Main constraint
Builders report memory and recovery defects, silent step limits, and build or bundle regressions after upgrades.
First move
Pin @mastra packages, raise maxSteps on purpose, and force one crash mid-run to see what recovery does.

Why

Watch the defects: builders praise the developer experience and report memory, recovery and build problems after upgrades. A single npm account published 141 malicious @mastra packages in June 2026, by Socket's count, so pin every package.

Practitioner sentiment, teams and leaders−36 Negative

25 practitioners, 86 sources reviewed, Updated Nov 1, 2026How this is measured

Read the GILD Review
Save a product your organization uses.Keep up with Mastra without adding it to your stack.Visit Website
Operating stack
AI Application Platform

Comparisons

How does Mastra compare with the alternatives?

  1. Mastra vs AI SDK

    • Agent Frameworks

    Replit's Agent 3 generates Mastra agents on durable workflows; openstatus runs its production Slack agent on the AI SDK alone. Pick Mastra for workflows, memory, evals and optional hosting in one TypeScript framework, and the AI SDK for model calls, tool loops and chat UI inside your own app.

  2. Mastra vs LangGraph

    • Agent Frameworks

    GitLab, Grab and Qodo run LangGraph agents in production, yeos.ai removed it, and Brex runs about half of its agent layer on Mastra. Pick Mastra for TypeScript agents with memory, evals and hosting bundled, and LangGraph for an explicit checkpointed graph with interrupts in Python or TypeScript.

Operator Insights

What are teams learning from building on Mastra and running it in production?

Buying and deployment

What a team building on it should verify before production traffic grows.

Sourced from Mastra documentation

How you buy it

Free, Apache 2.0

Platform Starter is US$0 a month, Teams US$250 a month, and Enterprise is custom-priced.

Source 1, Mastra, Mastra pricing: Mastra pricing

Details

The Mastra framework is free to self-host under Apache 2.0. Mastra Platform Starter costs US$0 a month, Teams costs US$250 per month, and Enterprise is custom-priced. Self-hosted Enterprise licenses the enterprise features for one flat annual fee with no per-trace or per-seat metering.

Cost drivers

100K events on Starter

Usage beyond the included amounts bills per unit, such as US$10 per 100K events on Starter.

Source 1, Mastra, Mastra pricing: Mastra pricing

Details

Mastra Platform meters observability events, CPU hours, data egress, and memory tokens each month. Starter includes 100K events, then US$10 per 100K, and 24 CPU hours, then US$0.35 per hour. Teams includes 1M events, then US$8 per 100K, and 250 CPU hours, then US$0.25 per hour. Usage beyond the included amounts bills at those rates, an always-on server costs US$100 per project, and gateway tokens bill at market rate plus 5.5%.

Where it runs

us and eu regions

Mastra Platform runs on Railway compute, and a region is fixed when the environment is created.

Source 1, Mastra, Mastra pricing: Mastra pricingSource 2, mastra.ai, Mastra Platform regions: Mastra Platform regionsSource 5, Mastra, Mastra docs: Models: Mastra docs: Models

Details

The framework builds and hosts agents anywhere you run it. Mastra Platform runs on Railway compute in two residency zones, us and eu, and an environment's region is fixed when it is created. Self-hosted Enterprise keeps traces, prompts, and outputs inside your VPC. With dynamic model selection, each customer of a multi-tenant application can bring their own API keys and model preferences.

What to verify

Telemetry on by default

Set MASTRA_TELEMETRY_DISABLED=1 to opt out. RBAC and audit logs are Enterprise only.

Source 3, Mastra, Mastra CLI reference: telemetry: Mastra CLI reference: telemetrySource 1, Mastra, Mastra pricing: Mastra pricing

Details

Mastra collects telemetry by default, including a token-usage event per provider and model every 15 minutes, and MASTRA_TELEMETRY_DISABLED=1 opts out. SSO and SOC 2 docs start on Teams, data retention is 15 days on Starter and 6 months on Teams, and RBAC and audit logs are Enterprise only.

Signals

What is the current evidence saying about Mastra?

Brex, Sanity, Brainforge and Postiz run agents on Mastra, Vasco left it, and builders on Hacker News, Reddit and GitHub praise its TypeScript experience while filing memory and recovery defects. Each finding links to its public source.

Whose sources count

Practitioner sentiment, teams and leaders

−36 Negative net

of 25 sources that take a side, each author counted once. Small sample.

How this figure is made

Current sentiment

Positive, mixed and negative sources

Team accounts lean negative, with 13 negative, 8 mixed and 4 positive among 25 counted, because most are bug reports from company engineers. Brex's CTO reports that about half of its agent-layer applications run on Mastra. Company engineers also report durable runs that failed to recover and the June 2026 npm compromise reaching a team's CI.

Build one pilot agent to measure the glue code and debugging time the framework adds.

Evidence field. All 86 sources, one mark each.

Arrange by

Each mark is one source: positive, mixed, negative, no opinion stated, or documentation (not counted).

By sentiment, Teams and technical leaders. Every source GILD read, grouped as the field draws it.
GroupSourcesPositiveMixedNegativeNo opinion stated and not counted in the scoreDocumentation, checked and not counted
Positive440000
Mixed808000
Negative13001300
Not counted100010
Documentation14000014
Outside this group4614141800
Every source GILD read, by the quarter it was published, as the field's time axis counts it. Documentation is dated by the day it was checked.
QuarterSources
Q1 202512
Q2 20252
Q3 20255
Q4 20254
Q1 202615
Q2 202610
Q3 202618
Q4 20266
Documentation, checked14

By sentiment

14 documentation pages check facts and are not counted; 46 sit outside this group.

Hover a mark for a quick look, click it or press Enter to open its source.Tap a mark to open its source, then step to its neighbors with Previous and Next.

What practitioners praise

Each mark is a source on it; filled marks praise it.

  1. Agents in Real WorkAll 10 sources on it praise it

Most common concerns

Top concern of 2. Each mark is a source on it; filled marks raise it.

  1. Memory, Recovery & Loop DefectsAll 8 sources on it raise it as a concern
All 86 sources behind these findings
  1. Mastra model routerMastra (Official Mastra documentation, pricing and license pages), Product documentation, checked Oct 28, 2026
  2. Agents: generate() referenceMastra (Official Mastra documentation, pricing and license pages), Product documentation, checked Oct 28, 2026
  3. Workflows overviewMastra (Official Mastra documentation, pricing and license pages), Product documentation, checked Oct 28, 2026
  4. Workflow runnersMastra (Official Mastra documentation, pricing and license pages), Product documentation, checked Oct 28, 2026
  5. Memory overviewMastra (Official Mastra documentation, pricing and license pages), Product documentation, checked Oct 28, 2026
  6. Observability overviewMastra (Official Mastra documentation, pricing and license pages), Product documentation, checked Oct 28, 2026
  7. Deployment overviewMastra (Official Mastra documentation, pricing and license pages), Product documentation, checked Oct 28, 2026
  8. Server overviewMastra (Official Mastra documentation, pricing and license pages), Product documentation, checked Oct 28, 2026
  9. Mastra Platform serverMastra (Official Mastra documentation, pricing and license pages), Product documentation, checked Oct 28, 2026
  10. Mastra pricingMastra (Official Mastra documentation, pricing and license pages), Product documentation, checked Oct 28, 2026
  11. CLI reference: telemetryMastra (Official Mastra documentation, pricing and license pages), Product documentation, checked Oct 28, 2026
  12. Mastra Enterprise Edition LicenseMastra (Official Mastra documentation, pricing and license pages), Product documentation, checked Oct 28, 2026
  13. Mastra releases on GitHubMastra (Official Mastra documentation, pricing and license pages), Product documentation, checked Oct 28, 2026
  14. @mastra/core telemetry source (posthog.ts)Mastra (Official Mastra documentation, pricing and license pages), Product documentation, checked Oct 28, 2026
  15. mastra build needs ~13× more memory since @mastra/deployer 1.79.0: typescriptSourcesResolver in option extractionTomas Varga (Sudolabs), GitHub user filing an issue (self-described: mastra build on a larger app with integrations), GitHub issue, published Oct 27, 2026
  16. I gave up naming my projects. My agents do it now.daniel, developer writing on dev.to (self-described: Six-agent naming app on Gemma 4), Personal blog post, dev.to, published Oct 23, 2026
  17. "Hi @s": How we built our company agent harnessEven Westvang, Rostislav Melkumyan, and Knut Melvaer, Sanity (self-described: Sanity's Content Agent and its company agent harness), Company engineering blog, Sanity Engineering, published Oct 20, 2026
  18. Using Mastra Agents With a Custom OpenAI-Compatible API: the url Model Config, the Silent 5-Step Limit and Two Retry Layers That MultiplyAman Kumar, developer building the APIClaw gateway, writing on dev.to (self-described: Mastra agents against a local OpenAI-compatible test server), Personal blog post, dev.to, published Oct 18, 2026
  19. refactor(admin-portal): research agents on the AI SDK; remove Mastra (paulclarke.au pull request 49)pabloplico, maintainer of the paulclarke.au site (self-described: Three research agents in an admin portal), GitHub pull request, published Oct 16, 2026
  20. Drop @mastra/core: port coach agent/LLM calls to AI SDK (StreamDeckHabitTracker issue 98)Shai Perednik, maintainer of StreamDeckHabitTracker (self-described: Coach agent in a personal habit tracker), GitHub issue, published Oct 13, 2026
  21. Building a portfolio agent that can't make things upowen adira, developer writing on dev.to (self-described: Portfolio question-answering agent on Railway), Personal blog post, dev.to, published Sep 30, 2026
  22. Comment on: Strands Harnessdzonga, Hacker News commenter (self-described: Evaluating Strands and Mastra for TypeScript agents), Hacker News comment, published Sep 23, 2026
  23. How we migrated to Langfuse v4 ahead of the cutoverUttam Kumaran, Brainforge (self-described: Brainforge's Mastra agent traces moving to Langfuse v4), Company engineering blog, Brainforge Blog, published Sep 18, 2026
  24. Durable agents never run output processors on the Inngest engine (finish side effects skipped in 1.8.5, nested step in >=1.8.6)Greg (gregorskii), GitHub user filing an issue (self-described: Durable agents on the Inngest engine), GitHub issue, published Sep 13, 2026
  25. [BUG] Bedrock prompt caching silently skipped for Claude Opus 5Sai Srinivas Alahari (Sri01728), GitHub user filing an issue (self-described: Long agentic threads on Claude Opus 5 through Amazon Bedrock with Mastra's code SDK), GitHub issue, published Sep 3, 2026
  26. Mastra Platform: dashboard env-var update left previous server instance running 3+ days, still serving traffic and firing scheduled workflows with stale envMehul Kasliwal, GitHub user filing an issue (self-described: Scheduled runs on hosted Mastra Platform), GitHub issue, published Aug 31, 2026
  27. [BUG] EventedAgent recover() crashes after process restart when a nested durable LLM step is active (1.62+)OKeii (Apu.tech), GitHub user filing an issue (self-described: Durable EventedAgent runs across a process restart), GitHub issue, published Aug 30, 2026
  28. Drop or patch the AI SDK v5 pin of @ai-sdk/provider-utils@3.0.30 (CVE-2026-8769)Diego Cesar Lerma Torres (Neuroglia Solutions), GitHub user filing an issue (self-described: Production dependency tree with @mastra/core 1.63.2), GitHub issue, published Aug 29, 2026
  29. [BUG] approveToolCall() rejects a genuinely-suspended run when the snapshot is large (2s validator deadline + wrong workflowName)Devang Padhiyar (Simplified), GitHub user filing an issue (self-described: Tool approval on suspended agent runs), GitHub issue, published Aug 26, 2026
  30. Comment on: Mastra AI vs LangGraph/LangChain, What's the way forward?Zerxide, r/AI_Agents (self-described: Long-running TypeScript document-analysis workflows with human approval), Reddit comment, r/AI_Agents, published Aug 26, 2026
  31. [BUG] Memory silently falls back to the default 1536-dim vector index when the embedder's dimension probe failsS Banerjee, GitHub user filing an issue (self-described: Semantic recall with a non-default embedding model), GitHub issue, published Aug 23, 2026
  32. Observational Memory: sync observation failure blocks the user's turn for ~4 min of non-configurable retries, then aborts itLu, GitHub user filing an issue (self-described: Observational Memory with a failing observer model), GitHub issue, published Aug 19, 2026
  33. We Built an On-Call Agent in Mastra: Where It Won and Where It Would NotDevOps Daily, engineering publication on dev.to (self-described: On-call agent with rollback tools), Personal blog post, dev.to, published Aug 12, 2026
  34. [BUG] CachingPubSub mirrors multi-MB localOnly workflow events into shared Redis, uncapped RPUSH, TTL-less counter, and clearTopic never removes themGreg McKelvey (phc-health), GitHub user filing an issue (self-described: Redis-backed deployment of durable agents), GitHub issue, published Aug 3, 2026
  35. Cut over conversation generation to Mastra and remove obsolete LangChain orchestration (tweedy issue 15)Barry Earsman, maintainer of tweedy (self-described: Conversation generation moving off LangChain orchestration), GitHub issue, published Jul 27, 2026
  36. Four Agent Frameworks in Sixteen MonthsSebastien Castiel, Staff Software Developer at Vasco (self-described: Vasco's product agent across four frameworks in sixteen months), Company engineering blog, Vasco Engineering, published Jul 24, 2026
  37. Add CLAUDE.md/README docs and replace Mastra agent with Hermes Agent integration (Mentra-AI-Legacy-Hermes pull request 1)Philippe Lewicki (AfterNow), contributor to Mentra-AI-Legacy-Hermes (self-described: Conversational agent with hand-built tools), GitHub pull request, published Jul 15, 2026
  38. fix(mcp): serve streamable HTTP statelessly (Postiz commit e11477ee)Gilad Resisi, Postiz engineer committing to gitroomhq/postiz-app (self-described: Postiz's MCP service, built on @mastra/mcp, serving agent connectors in production), GitHub commit, published Jul 9, 2026
  39. Kinde Is Missing from Mastra's Auth Lineup, So I Built the ProviderShola Jegede, developer writing on dev.to (self-described: Adding Kinde authentication to a Mastra server), Personal blog post, dev.to, published Jun 21, 2026
  40. Security: @mastra/core@1.42.1 (+memory/loggers/deployer/client-js) publish malicious easy-day-js typosquat with install-time script, from a non-maintainer npm accountJaeHwan Kim, GitHub user filing an issue (self-described: Dependency bot updating @mastra packages during the June 2026 compromise), GitHub issue, published Jun 17, 2026
  41. Mastra vs AI SDK: I Built Production Apps With BothKristian, developer and technology video creator (self-described: Production apps on Mastra and the AI SDK), YouTube video, published Jun 17, 2026
  42. My first production agent was spaghetti because one layer did three jobsMirza Iqbal, Mastra Agent Ambassador, writing on dev.to (self-described: A production agent rebuilt as reasoning, IO and orchestration layers), Personal blog post, dev.to, published Jun 12, 2026
  43. 5 walls multi-agent frameworks hit: receipts from Mastra's year of .network() to Supervisor migrationJack Chen, developer of open-multi-agent, writing on dev.to (self-described: An audit of 32 Mastra GitHub issues on multi-agent work, May 2025 to May 2026), Personal blog post, dev.to, published May 21, 2026
  44. Mastra AI 1.0: The TypeScript Agent Framework Developers Are Actually ShippingJangwook Kim, developer writing on dev.to (self-described: A guide to Mastra 1.8.1 against LangChain), Personal blog post, dev.to, published May 9, 2026
  45. Comment on: Statecharts: hierarchical state machinesdavemo (David Mosher), Hacker News commenter (self-described: Voice app for the banking sector on XState and Mastra), Hacker News comment, published Apr 27, 2026
  46. [BUG] Cross-provider tool_use IDs leak into subsequent requests: Anthropic srvtoolu_* sent to OpenAI Responses API causes 404 "Item not found"Sergey Andriyanov (Regul), GitHub user filing an issue (self-described: Switching providers inside one memory thread), GitHub issue, published Apr 24, 2026
  47. ObservationalMemoryProcessor.processInputStep blocks every agentic loop step with DB reads and token counting even when far below thresholdsLeng, GitHub user filing an issue (self-described: Observational Memory traced in Langfuse), GitHub issue, published Apr 23, 2026
  48. Comment on: LangChain or Mastra for a faster TypeScript based AI platform?aussie_182, r/LangChain (self-described: Compared LangChain JS and Mastra), Reddit comment, r/LangChain, published Apr 22, 2026
  49. Comment on: LangChain or Mastra for a faster TypeScript based AI platform?rothnic, r/LangChain (self-described: Six months later, building production custom agents), Reddit comment, r/LangChain, published Mar 19, 2026
  50. Comment on: LangChain or Mastra for a faster TypeScript based AI platform?TheBlackSunsh1ne, r/LangChain (self-described: Running Mastra in production), Reddit comment, r/LangChain, published Mar 19, 2026
  51. Comment on: A GitHub Issue Title Compromised 4k Developer MachinesSytten, Hacker News commenter working at Caido (self-described: GitHub issue-triage action built on Mastra with a scoped tool set), Hacker News comment, published Mar 5, 2026
  52. Building an RLM with Mastra: Introducing mastra-rlm-kitAlvaro Fragoso, developer writing on dev.to (self-described: Open-source Recursive Language Model kit for Mastra), Personal blog post, dev.to, published Feb 16, 2026
  53. Comment on: Should I start with langgraph or mastra if I want to build real AI agents?Master_Page_116, r/AI_Agents (self-described: TypeScript project choosing between LangGraph and Mastra), Reddit comment, r/AI_Agents, published Feb 3, 2026
  54. Comment on: Show HN, Mastra 1.0, open-source JavaScript agent framework from the Gatsby devsdataviz1000, Hacker News commenter (self-described: Three months with Mastra workflows that branch on rules), Hacker News comment, published Jan 21, 2026
  55. Comment on: Show HN, Mastra 1.0, open-source JavaScript agent framework from the Gatsby devsavaer, Hacker News commenter and Mastra user (self-described: Happy Mastra user commenting on its marketing), Hacker News comment, published Jan 21, 2026
  56. Comment on: Show HN, Mastra 1.0, open-source JavaScript agent framework from the Gatsby devsI_am_tiberius, Hacker News commenter (self-described: Looking for platform prices at the 1.0 launch), Hacker News comment, published Jan 21, 2026
  57. Comment on: Show HN, Mastra 1.0, open-source JavaScript agent framework from the Gatsby devsscirob, Hacker News commenter on a team running Mastra (self-described: A team system built on Mastra, rebuilt in LangGraph for comparison), Hacker News comment, published Jan 21, 2026
  58. Comment on: Show HN, Mastra 1.0, open-source JavaScript agent framework from the Gatsby devspancomplex, Hacker News commenter on a team with an all-TypeScript stack (self-described: All-TypeScript product stack), Hacker News comment, published Jan 20, 2026
  59. Comment on: Show HN, Mastra 1.0, open-source JavaScript agent framework from the Gatsby devsmrcwinn, Hacker News commenter (self-described: Weighing Mastra against the model vendors' own agent SDKs), Hacker News comment, published Jan 20, 2026
  60. Comment on: Show HN, Mastra 1.0, open-source JavaScript agent framework from the Gatsby devsesperent, Hacker News commenter building with Mastra (self-described: A couple of weeks building on Mastra and the AI SDK), Hacker News comment, published Jan 20, 2026
  61. Comment on: Show HN, Mastra 1.0, open-source JavaScript agent framework from the Gatsby devssolarkraft, Hacker News commenter (self-described: Asking whether large agent harnesses run on Mastra), Hacker News comment, published Jan 20, 2026
  62. Full Story of Brex's AI Hail MaryJames Reggio, CTO of Brex, interviewed on Latent Space (self-described: Brex's agent-layer applications), Podcast episode write-up, Latent Space, published Jan 17, 2026
  63. Why I Love Mastra: Building Production AI Agents That Actually WorkPrakhar, developer writing on his own blog (self-described: Production planning agent with 11 tools, memory, and RAG), Personal blog post, published Jan 3, 2026
  64. Resolving "This workflow run was not suspended" in Nested Mastra WorkflowsAhmad Abdulaziz, developer writing on dev.to (self-described: Nested workflows that suspend for input), Personal blog post, dev.to, published Dec 31, 2025
  65. Comment on: Agent design is still hardmoinism, Hacker News commenter comparing TypeScript agent frameworks (self-described: Choosing between TypeScript agent SDKs), Hacker News comment, published Nov 22, 2025
  66. [BUG] Mastra with ai-sdk v5 may cause duplicate assistant messagesBo Kou (Alipay), GitHub user filing an issue (self-described: AI SDK v5 useChat calling Mastra's API), GitHub issue, published Oct 28, 2025
  67. [BUG] Memory incompatibility with GPT-5 mini reasoning models causes "required reasoning item" errorsAman Rawat (Fastlaneai), GitHub user filing an issue (self-described: Mastra agents with tools and memory on GPT-5 mini), GitHub issue, published Oct 19, 2025
  68. Comment on: LangChain or Mastra for a faster TypeScript based AI platform?rothnic, r/LangChain (self-described: Evaluating Mastra and LangChain with LangGraph side by side), Reddit comment, r/LangChain, published Sep 18, 2025
  69. [BUG] Vercel Deploy Failure: Error: A Serverless Function has exceeded the unzipped maximum size of 250 MB.Ni Ngo, GitHub user filing an issue (self-described: Mastra app deployed to Vercel), GitHub issue, published Sep 3, 2025
  70. [BUG] Agent will make repetitive tool callsclairecfu, GitHub user filing an issue (self-described: Agent with mutating tools), GitHub issue, published Aug 19, 2025
  71. [BUG] Memory Leak in Mastra Workflow After Multiple RequestsLeo (Outlit), GitHub user filing an issue (self-described: A workflow passed a deal context of about 20,000 tokens, stored in PostgresStore), GitHub issue, published Jul 25, 2025
  72. [BUG] Assistant toolcall messages can lead to duplicate responses and continuous chat loops, causing infinite tool callsHongcai Deng, GitHub user filing an issue (self-described: Chat agent mixing server tools and client tools), GitHub issue, published Jul 9, 2025
  73. [BUG] Inngest with Mastra not working in productionSam Silva, GitHub user filing an issue (self-described: A Vercel API project calling a Mastra and Inngest project), GitHub issue, published May 29, 2025
  74. LLMObs: Instrumentation for mastra (dd-trace-js feature request)Kosuke Oya, GitHub user filing a feature request with Datadog (self-described: Mastra agents running in production), GitHub issue, published Apr 27, 2025
  75. Reimplementing Mastra Workflows: Lessons LearnedIan Macartney, engineer at Convex (self-described: A week reimplementing Mastra workflows on Convex), Company engineering blog, Convex Stack, published Mar 28, 2025
  76. [BUG] Bundle size regression (+17mb) after update is blocking cloudflare workers deploymentsMarcos Candeia, GitHub user filing an issue (self-described: Agents deployed to Cloudflare Workers), GitHub issue, published Mar 28, 2025
  77. Comment on: Show HN, Mastra, Open-source JS agent framework, by the developers of Gatsbytough, Hacker News commenter (self-described: Running Mastra against local model servers), Hacker News comment, published Feb 22, 2025
  78. mastra dev in TypeScript monorepo doesn't correctly handle dependenciesRyan Kennedy, GitHub user filing an issue (self-described: Mastra agent importing TypeScript tools from other monorepo packages), GitHub issue, published Feb 21, 2025
  79. Comment on: Show HN, Mastra, Open-source JS agent framework, by the developers of Gatsbyepolanski, Hacker News commenter (self-described: Weighing the team's Gatsby history), Hacker News comment, published Feb 19, 2025
  80. Comment on: Show HN, Mastra, Open-source JS agent framework, by the developers of Gatsbyfuddle, Hacker News commenter (self-described: Reading the license Mastra launched with), Hacker News comment, published Feb 19, 2025
  81. Comment on: Show HN, Mastra, Open-source JS agent framework, by the developers of Gatsbyjoshstrange, Hacker News commenter who builds MCP tools (self-described: Deciding whether to move MCP tools into Mastra), Hacker News comment, published Feb 19, 2025
  82. Comment on: Show HN, Mastra, Open-source JS agent framework, by the developers of Gatsbymplewis, Hacker News commenter (self-described: Weighing the team's Gatsby history), Hacker News comment, published Feb 19, 2025
  83. Comment on: Show HN, Mastra, Open-source JS agent framework, by the developers of Gatsbyalanwells, Hacker News commenter who compared several frameworks (self-described: Choosing a TypeScript agent framework after trying several), Hacker News comment, published Feb 19, 2025
  84. Comment on: Show HN, Mastra, Open-source JS agent framework, by the developers of Gatsbyyovboy, Hacker News commenter (self-described: Moved from LangChain to Mastra), Hacker News comment, published Feb 19, 2025
  85. Comment on: Show HN, Mastra, Open-source JS agent framework, by the developers of Gatsby_pdp_, Hacker News commenter (self-described: Reading the launch examples), Hacker News comment, published Feb 19, 2025
  86. Comment on: Show HN, Mastra, Open-source JS agent framework, by the developers of Gatsbycpursley, Hacker News commenter (self-described: Replying to a comment on agent frameworks), Hacker News comment, published Feb 19, 2025

Feb 2025 to Oct 2026.

72 sources from practitioners, by month and sentiment.

The full readExplore all Mastra Signals3 praise themes, 5 concerns, 3 points of agreement and 1 disagreement across all three groups, with all 86 sources open to inspect.

Where It Fits

Where does Mastra belong in the stack?

Mastra is Core across Build and supports Model, Data, Evaluate, and Operate.

Business area
Product & Engineering
Function
Software Development
Operating stack
AI Application Platform
Primary role
TypeScript Agent Framework
Mastra beside the rest of its stackThe Stack Field, every product on every layer
FootprintMastra across the AI Application Platform stack. Bar height is its role on each layer.
  1. Model

    1. Model APIs: Touches

      Model APIs, touches. Agents name a model as a provider/model string, such as openai/gpt-6.1-sol, and Mastra reads each provider's API key from the environment; model access stays with those platforms.

    2. Model gateway: Supports

      Model gateway, supports. The model router lists 8,187 models from 221 providers, falls back to another model on a 500 error, rate limit, or timeout, and works through gateways such as OpenRouter and Vercel; spend limits across teams stay with a dedicated gateway.

  2. Build

    1. Orchestration: Core

      Orchestration, core. This is Mastra's primary role: agents with tools and memory, typed workflows built with createWorkflow() that suspend and resume, and supervisor agents that delegate to subagents, in TypeScript on Node.js 22.13 or later.

    2. Tool use: Supports

      Tool use, supports. Agents call typed tools and MCP servers through MCPClient, and MCPServer exposes Mastra tools and agents to other MCP clients; the systems those tools reach stay with the team.

  3. Data

    1. Retrieval: Supports

      Retrieval, supports. Observational Memory, working memory, and semantic recall keep conversation context, and the RAG utilities chunk documents, embed them, and query vector stores such as PgVector; indexing company data at scale stays with a retrieval product.

  4. Evaluate

    1. Evaluation: Supports

      Evaluation, supports. Built-in and custom scorers, including multi-turn evals, grade agent and workflow output; datasets, experiments, and human review queues stay with an evaluation tool.

  5. Operate

    1. Observability: Supports

      Observability, supports. Mastra traces agent and workflow runs and exports them to Langfuse, Datadog, Arize, or any OpenTelemetry platform, and Mastra Platform stores observability events; long-term analysis stays with an observability product.

    2. Cloud deployment: Supports

      Cloud deployment, supports. Apps deploy to any Node.js environment, as a standalone Hono server, through deployers for Vercel, Netlify, and Cloudflare, or to Mastra Platform in us or eu regions; capacity planning stays with the team or the host.

    3. Guardrails: Supports

      Guardrails, supports. Mastra built-in processors add security controls to agents. Input processors detect prompt injection, while output processors moderate and block harmful responses before delivery.

Market mapThe layers Mastra covers, and who else owns each one.

  1. Orchestration & agent frameworks

    CoreBuild

  2. Model gateways & routing

    SupportsModel

  3. Tool use & integrations

    SupportsBuild

  4. Retrieval & grounding

    SupportsData

  5. Evaluation & testing

    SupportsEvaluate

4 more layers on the full map. Core, Supports and Touches describe coverage. They say nothing about quality.

More on Mastra

  1. GILD ReviewGILD's evaluation, with the buying facts
  2. Research1 piece
  3. Guides1 guide
  4. Operator Insights12 operator accounts
  5. Where It FitsOn the AI Application Platform stack
  6. Related Products9 products