# Mastra

> Mastra is an open-source TypeScript framework for building production-ready AI agents, workflows, and retrieval-augmented generation pipelines. Built by the team behind Gatsby, it gives developers agents, durable workflows, memory, RAG, tool calling, evals, and observability in one stack - so JavaScript and TypeScript engineers can move from prototype to production without leaving their language. Mastra is developed by Kepler Software, a San Francisco startup, and reached 25,000+ GitHub stars and 300,000+ weekly npm downloads with adoption at companies like Brex, Sanity, Replit, and PayPal.

- **Founded:** 2024
- **Headquarters:** San Francisco, United States
- **Founders:** Sam Bhagwat (Co-founder & CEO), Abhi Aiyer (Co-founder & CTO), Shane Thomas (Co-founder & Chief Product Officer)
- **Team size:** ~34-48 employees, fully remote
- **Products:** Mastra Framework (open source), Workflows, Memory, RAG pipelines, Evals & Observability
- **Notable:** Reached 25,000+ GitHub stars within roughly 15 months of launch, 300,000+ weekly npm downloads by the Mastra 1.0 release in January 2026, Raised $35M total ($13M seed + $22M Series A) from Spark Capital, YC, Gradient and 120+ angels

## Products & services

- **Mastra Framework (open source)** — TypeScript framework for building stateful AI agents that reason, decide and act using any LLM, with agents, durable graph-based workflows, memory, RAG, and tool calling.
- **Workflows** — Durable, graph-based workflows supporting loops, branching, error handling, and waiting for human input to orchestrate long-running multi-step operations declaratively.
- **Memory** — Conversation history plus working and semantic memory and data retrieval from APIs, databases and files so agents stay coherent across turns.
- **RAG pipelines** — Retrieval-augmented generation with vector store integration and semantic recall for grounding agent answers in external knowledge bases.
- **Evals & Observability** — Built-in evals, performance metrics, tracing of agent and workflow steps, and OpenTelemetry traces with integrations to Langfuse, Braintrust, Arize and LangSmith.
- **Mastra Cloud / Studio** — Optional hosted platform with a Studio for testing agents and workflows, AI-focused observability dashboards, and deployment integrations.

## Achievements

- Reached 25,000+ GitHub stars within roughly 15 months of launch
- 300,000+ weekly npm downloads by the Mastra 1.0 release in January 2026
- Raised $35M total ($13M seed + $22M Series A) from Spark Capital, YC, Gradient and 120+ angels
- Production adoption at Brex, Sanity, Replit, PayPal and Marsh McLennan
- Founding team previously built Gatsby (acquired by Netlify)

## Latest updates

- **2026-04** — Closed $22M Series A led by Spark Capital, bringing total funding to $35M; Mastra Platform launched.
- **2026-01** — Released Mastra 1.0, crossing 300,000+ weekly npm downloads.
- **2025-10** — Announced $13M seed round from YC, Gradient, Paul Graham, Guillermo Rauch, Balaji and 120+ angels.

## Links

- Website: https://mastra.ai
- LinkedIn: https://www.linkedin.com/company/mastra-ai
- Twitter/X: https://x.com/mastra_ai
- GitHub: https://github.com/mastra-ai/mastra
- YouTube: https://www.youtube.com/channel/UCTYjNDUYsrt7DrwU11fdyhQ

---

Profile page: https://yespress.io/mastra
Published by YesPress — https://yespress.io
Last updated: 2026-06-13
