LangGraph vs Mastra
LangGraph (LangChain) and Mastra (Mastra) side by side on public data, as of Nov 20, 2026.
LangGraph has 5.4x the weekly package downloads of Mastra (20.1M against 3.7M). LangGraph has 1.5x the GitHub stars of Mastra (45.1K against 29.6K). Over the last 30 days downloads moved +29% for LangGraph and +50% for Mastra. LangGraph shipped 12 stable releases in the past 90 days. Mastra shipped 24 stable releases in the past 90 days.
Which should you choose?
Choose LangGraph if
- you prefer the more widely used tool, with more docs and answers around (Gid Score 75 against 63)
Choose Mastra if
- you want to switch between model providers (12 documented against 1)
- you want the one gaining users faster (downloads up 50% in 30 days, +15% in the last 7)
- you want frequent updates (24 stable releases in 90 days against 12)
Built from documented features, official prices, status pages and usage data on this page; it does not judge output quality.
Side-by-side numbers
| Metric | LangGraph | Mastra |
|---|---|---|
| Gid Score | 75 | 63 |
| Usage data as of | Nov 19 | Nov 19 |
| Rank by Gid Score | #2 | #5 |
| Downloads, last 7 days | 20.1M | 3.7M |
| Downloads, 7-day change | up 5.5% | up 14.9% |
| Downloads, 30-day change | up 29.2% | up 49.9% |
| VS Code installs | — | — |
| Marketplace rating | — | — |
| GitHub stars | 45.1K | 29.6K |
| Homebrew installs, 30 days | — | — |
| Hacker News mentions, 30 days | 65 | 18 |
| Latest stable release | 1.2.23 · yesterday | 1.84.0 · 2d ago |
| Stable releases, 90 days | 12 | 24 |
| Terminal-Bench (best run) | — | — |
| Price | Free (OSS) | Free (OSS) |
| License | MIT | Apache-2.0 (enterprise features under a separate licence) |
| First released | January 2024 | October 2024 |
| Interfaces | Python library, JavaScript library | TypeScript library |
| Models | — | — |
A dash means there is no public data for that metric as of Nov 20, 2026.
Trends
LangGraph
A low-level orchestration framework for building stateful agents as graphs, with durable execution, persistence and human-in-the-loop steps. Available for Python and JavaScript.
Pricing: LangGraph is open source and free to use; you pay only for the models and infrastructure it runs on.
Latest release 1.2.23:
- release(langgraph): 1.2.23
- release(prebuilt): 1.1.3
- fix(langgraph,prebuilt): give Send-dispatched tool calls the same state as an edge
- chore(deps): bump opentelemetry-api from 1.45.1 to 1.45.2 in /libs/langgraph
Mastra
A TypeScript framework for building agents and AI workflows, with memory, evals, retrieval and observability built in.
Pricing: Mastra is open source and free to use; you pay only for the models and infrastructure it runs on.
Latest release 1.84.0:
- Knowledge alpha scope matching changed: $param now matches exactly one segment; raw : is no longer allowed inside a scope segment, requiring canonical encoding via encodeKnowledgeScopeId /…
- @mastra/factory: newestOpenPullRequestNumber is no longer exported from @mastra/factory/boards; use workingPullRequest(item) + pullRequestSourceNumber.
- @mastra/playground-ui: ListSearch and SearchFieldBlock are removed; migrate to SearchInput. Also removed SectionCard and CardHeading in favor of settings components.
- @mastra/factory: MastraFactory no longer accepts intake: { evaluator } (set via env/project config instead); passing it now throws at startup.
LangGraph vs Mastra: common questions
Which is more popular, LangGraph or Mastra?
LangGraph has a Gid Score of 75 against 63 for Mastra. The score combines package downloads, editor installs, GitHub activity and attention, updated daily.