# Mastra

32 Hacker News commenters recommended Mastra and 3 criticized it, November 2025 to November 2026. It was recommended in 10 of 13 months. It meets the Hacker Approved badge rule.

**Verdict:** Open-source TypeScript framework for building AI agents, praised for workflow primitives and developer experience. Common caveat: its opinionated patterns can slow you down when your project doesn't fit them.

## Why people recommend it

- Solid workflow and agent primitives (5 comments): "Mastra is more integrated with storage powering our studio, evals, memory, workflow suspend/resume etc." ([source](https://news.ycombinator.com/item?id=46699989)) "The workflow and agent composition primitives look well-designed." ([source](https://news.ycombinator.com/item?id=46708234)) "Mastra even has an agent that helps you build other agents" ([source](https://news.ycombinator.com/item?id=49182549))
- TypeScript-first agent framework (4 comments): "We're TypeScript-first, TypeScript-only so a lot of the teams who use us" ([source](https://news.ycombinator.com/item?id=46697421)) "Mastra is the open-source TypeScript framework for building AI agents" ([source](https://news.ycombinator.com/item?id=49543632)) "the open-source TypeScript framework for building AI agents" ([source](https://news.ycombinator.com/item?id=49995549))
- Good developer experience, less boilerplate (3 comments): "Been using Mastra for some side projects for months and it's just phenomenal." ([source](https://news.ycombinator.com/item?id=46697346)) "I'm a fan of the publicity work and general out-of-the-box DX!" ([source](https://news.ycombinator.com/item?id=46698748)) "Mastra is Next.js -- mostly saving you boilerplate." ([source](https://news.ycombinator.com/item?id=46389503))
- Replaces custom agent plumbing (3 comments): "I personally have moved to a pattern where i use mastra-agents in my project to achieve this" ([source](https://news.ycombinator.com/item?id=46402397)) "teams that started rolling their own shift over to Mastra so they can focus on the agent" ([source](https://news.ycombinator.com/item?id=46699134)) "roll our own solution on top of Letta or Mastra" ([source](https://news.ycombinator.com/item?id=47030237))

## Alternatives hackers recommend

- [Claude Agent SDK](https://hackerapproved.com/p/claude-agent-sdk.md): 36 recommend
- [LangChain](https://hackerapproved.com/p/langchain.md): 32 recommend
- [LangGraph](https://hackerapproved.com/p/langgraph.md): 31 recommend
- [DSPy](https://hackerapproved.com/p/dspy.md): 29 recommend
- [Pydantic AI](https://hackerapproved.com/p/pydantic-ai.md): 27 recommend

## Cite as

Hacker Approved, "Mastra", https://hackerapproved.com/p/mastra/ (counts from 1,795,640 Hacker News comments, November 2025 to November 2026).
