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.
25 practitioners, 86 sources reviewed, Updated Nov 1, 2026How this is measured
- Operating stack
- AI Application Platform
Comparisons
How does Mastra compare with the alternatives?
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.
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?
Workday security teamBuilders of an autonomous triage systemWorkday
An autonomous agentic triage system run by Workday's security team.
Mastra customer story, published Read the write-up (opens Mastra customer story in a new tab)
Observation
Workday's security team replaced Bedrock Agents with Mastra for its agentic triage system, removing 3,000 lines of code, Mastra's customer story says.
- Takeaway
- Ask for the before and after code and storage bills when a vendor story reports a migration, and test the move on one workflow first.
- What happened
- Mastra's customer story says Workday's security team moved its triage system from Bedrock Agents to Mastra as the orchestration layer in 31 days, removed 3,000 lines of code, and cut vector-storage costs by an estimated 98%.
“Workday's security team replaced Bedrock Agents with Mastra as its orchestration layer, removing 3,000 lines of code and cutting vector-storage costs by an estimated 98%.”
Mastra customer story, on Workday - Vendor customer story (Mastra customer page)
- Team metrics reported
Deployment details
An autonomous agentic triage system run by Workday's security team.
- Vendor customer story (Mastra customer page)
- Team metrics reported
- Team
- Workday security team
- Duration
- 31-day migration
- Workload
- Agentic security triage
- Measurement
- 3,000 lines removed; vector-storage cost down an estimated 98%
In SignalsNot counted. Mastra published this story, so it counts toward no figure.
Socket Research TeamSupply-chain security researchersSocket
Mastra's @mastra npm packages, published until then only by the project's CI.
Socket blog, published Read the write-up (opens Socket blog in a new tab)
Observation
A single npm account published malicious versions of 141 @mastra packages on June 17, 2026, and Socket advises treating every host that installed one as compromised.
- Takeaway
- Pin every @mastra package from a lockfile and review dependency bot updates, because a compromised release reaches CI within minutes.
- What happened
- A single human npm account published malicious versions of 141 @mastra packages between about 01:15 and 02:36 UTC on Jun 17, 2026 (Socket, Jun 17, 2026). Each added one dependency, easy-day-js, a typosquat of dayjs whose install hook runs an obfuscated payload during npm install.
“If you installed any of the versions above, treat the host or CI runner that ran the install as compromised.”
Socket Research Team - Public engineering write-up (Socket threat research blog)
- Package counts reported
Deployment details
Mastra's @mastra npm packages, published until then only by the project's CI.
- Public engineering write-up (Socket threat research blog)
- Package counts reported
- Team
- Every team that installed an affected @mastra version
- Duration
- About 81 minutes of malicious publishing, Jun 17, 2026 UTC
- Workload
- npm installs of @mastra packages in development and CI
- Product version
- Malicious patch releases of @mastra packages
- Measurement
- 141 packages, by Socket's count
In SignalsNot counted. A security vendor's incident analysis, not an account of running Mastra; the team whose dependency bot pulled the versions counts as its own record.
Buying and deployment
What a team building on it should verify before production traffic grows.
Sourced from Mastra documentation
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.
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 madeCurrent 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).
| Group | Sources | Positive | Mixed | Negative | No opinion stated and not counted in the score | Documentation, checked and not counted |
|---|---|---|---|---|---|---|
| Positive | 4 | 4 | 0 | 0 | 0 | 0 |
| Mixed | 8 | 0 | 8 | 0 | 0 | 0 |
| Negative | 13 | 0 | 0 | 13 | 0 | 0 |
| Not counted | 1 | 0 | 0 | 0 | 1 | 0 |
| Documentation | 14 | 0 | 0 | 0 | 0 | 14 |
| Outside this group | 46 | 14 | 14 | 18 | 0 | 0 |
| Quarter | Sources |
|---|---|
| Q1 2025 | 12 |
| Q2 2025 | 2 |
| Q3 2025 | 5 |
| Q4 2025 | 4 |
| Q1 2026 | 15 |
| Q2 2026 | 10 |
| Q3 2026 | 18 |
| Q4 2026 | 6 |
| Documentation, checked | 14 |
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.
Most common concerns
Top concern of 2. Each mark is a source on it; filled marks raise it.
All 86 sources behind these findings
- Mastra model routerMastra (Official Mastra documentation, pricing and license pages), Product documentation, checked Oct 28, 2026
- Agents: generate() referenceMastra (Official Mastra documentation, pricing and license pages), Product documentation, checked Oct 28, 2026
- Workflows overviewMastra (Official Mastra documentation, pricing and license pages), Product documentation, checked Oct 28, 2026
- Workflow runnersMastra (Official Mastra documentation, pricing and license pages), Product documentation, checked Oct 28, 2026
- Memory overviewMastra (Official Mastra documentation, pricing and license pages), Product documentation, checked Oct 28, 2026
- Observability overviewMastra (Official Mastra documentation, pricing and license pages), Product documentation, checked Oct 28, 2026
- Deployment overviewMastra (Official Mastra documentation, pricing and license pages), Product documentation, checked Oct 28, 2026
- Server overviewMastra (Official Mastra documentation, pricing and license pages), Product documentation, checked Oct 28, 2026
- Mastra Platform serverMastra (Official Mastra documentation, pricing and license pages), Product documentation, checked Oct 28, 2026
- Mastra pricingMastra (Official Mastra documentation, pricing and license pages), Product documentation, checked Oct 28, 2026
- CLI reference: telemetryMastra (Official Mastra documentation, pricing and license pages), Product documentation, checked Oct 28, 2026
- Mastra Enterprise Edition LicenseMastra (Official Mastra documentation, pricing and license pages), Product documentation, checked Oct 28, 2026
- Mastra releases on GitHubMastra (Official Mastra documentation, pricing and license pages), Product documentation, checked Oct 28, 2026
- @mastra/core telemetry source (posthog.ts)Mastra (Official Mastra documentation, pricing and license pages), Product documentation, checked Oct 28, 2026
- 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
- 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
- "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
- 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
- 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
- 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
- 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
- Comment on: Strands Harnessdzonga, Hacker News commenter (self-described: Evaluating Strands and Mastra for TypeScript agents), Hacker News comment, published Sep 23, 2026
- 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
- 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
- [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
- 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
- [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
- 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
- [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
- 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
- [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
- 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
- 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
- [BUG] CachingPubSub mirrors multi-MB
localOnlyworkflow 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 - 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
- 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
- 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
- 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
- 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
- Security: @mastra/core@1.42.1 (+memory/loggers/deployer/client-js) publish malicious
easy-day-jstyposquat 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 - 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
- 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
- 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
- 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
- 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
- [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 - 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- [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
- [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
- 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
- [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
- [BUG] Agent will make repetitive tool callsclairecfu, GitHub user filing an issue (self-described: Agent with mutating tools), GitHub issue, published Aug 19, 2025
- [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
- [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
- [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
- 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
- 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
- [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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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.
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
Model
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.
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.
Build
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.
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.
Data
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.
Evaluate
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.
Operate
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.
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.
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.
Orchestration & agent frameworks
Model gateways & routing
- LiteLLM
- OpenRouter
- Portkey
- Vercel AI Gateway
Tool use & integrations
Retrieval & grounding
Evaluation & testing
4 more layers on the full map. Core, Supports and Touches describe coverage. They say nothing about quality.

