Skip to content
Agents tracked: 492 Releases (7d): 545 Agent status: 1 with issuesSince last limit reset: Claude 9d · Codex 7d For AI agents: Markdown Updated Nov 20, 2026

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 LangGraphMastra
Gid Score7563
Usage data as ofNov 19Nov 19
Rank by Gid Score#2#5
Downloads, last 7 days20.1M3.7M
Downloads, 7-day changeup 5.5%up 14.9%
Downloads, 30-day changeup 29.2%up 49.9%
VS Code installs——
Marketplace rating——
GitHub stars45.1K29.6K
Homebrew installs, 30 days——
Hacker News mentions, 30 days6518
Latest stable release1.2.23 · yesterday1.84.0 · 2d ago
Stable releases, 90 days1224
Terminal-Bench (best run)——
PriceFree (OSS)Free (OSS)
LicenseMITApache-2.0 (enterprise features under a separate licence)
First releasedJanuary 2024October 2024
InterfacesPython library, JavaScript libraryTypeScript library
Models——

A dash means there is no public data for that metric as of Nov 20, 2026.

Trends

Downloads per daynpm + PyPI, 7-day average
LangGraphMastra
GitHub starsrunning total
LangGraphMastra
Hacker News mentionsrolling 7-day total
LangGraphMastra

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

Full LangGraph profile

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.

Full Mastra profile

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.