The JavaScript developer's toolbox is a crowded place. Yet Mastra, an open-source framework for building AI agents, just convinced Spark Capital to write a $22 million check. The Series A, closed in 2025, brings the company's total disclosed funding to $35 million [Mastra Blog, Series A]. It is a bet that the team behind the Gatsby static-site generator can carve out a new, lucrative category in the TypeScript ecosystem.
For a company founded in 2024, the velocity is notable. The framework claims millions of monthly downloads and saw its GitHub stars jump from 1,500 to 7,500 in a single week last February [Generative, Inc., 2026]. The wedge is straightforward: give product engineers building with TypeScript a unified, production-grade toolkit for multi-step AI workflows, RAG, and observability, all on top of the popular Vercel AI SDK [Perplexity Sonar Pro Brief].
A bet on the TypeScript developer
Mastra is not trying to invent a new programming paradigm. Its core proposition is alignment with an existing one. The framework is distributed as npm packages, and its documentation is aimed squarely at developers already comfortable with modern JavaScript stacks [Perplexity Sonar Pro Brief]. The pitch is one of familiarity and reduced friction.
- Unified API. It provides a single interface to over 4,200 models from 121 different providers [Mastra Docs, Models].
- Strongly typed tools. Developers define agent tools using Zod schemas [Perplexity Sonar Pro Brief].
- First-class MCP support. It bakes in support for Model Context Protocol servers [Perplexity Sonar Pro Brief].
The commercial playbook is classic open-source: give away the core framework under an Apache 2.0 license to drive adoption, then sell a managed platform for deployment, monitoring, and scaling [Mastra, Pricing].
The Gatsby pedigree
The founding team is Mastra's most tangible asset. CEO Sam Bhagwat was the co-founder and Chief Strategy Officer of Gatsby, the React-based static site generator that reached hundreds of thousands of developers before its acquisition by Netlify [Mastra, About]. Co-founder Kyle Mathews was Gatsby's founder and former CEO [Perplexity Sonar Pro Brief]. This is a group that has built and scaled a developer tool before.
| Founder | Role | Prior Key Affiliation |
|---|---|---|
| Sam Bhagwat | Co-founder & CEO | Co-founder & CSO, Gatsby |
| Kyle Mathews | Co-founder | Founder & former CEO, Gatsby |
| Shane Thomas | Co-founder & CPO | Product & Engineering, Netlify & Gatsby |
| Abhi Aiyer | Co-founder & CTO | N/A |
The competitive landscape
Mastra enters a field with established incumbents. LangChain and its LangGraph library are the default for many Python-centric AI builders. Mastra's answer is to cede the Python battlefield and own TypeScript. By building directly on the Vercel AI SDK, it leverages an existing, growing ecosystem. The framework's workflow engine is designed to feel native to JavaScript developers [Speakeasy, retrieved 2026].
Where the wheels could come off
The risk for Mastra is twofold. First, the market for agent frameworks is still being defined. Second, its success is tightly coupled to the Vercel AI SDK. Should Vercel decide to build or buy a competing agent framework, Mastra's strategic position would weaken considerably.
The next twelve months
The fresh $22 million gives Mastra runway to scale its team and platform. The key milestones will be converting open-source users into paying platform customers and landing named enterprise deployments. Spark Capital's lead on the Series A is a signal of institutional confidence. The round also included continued participation from Y Combinator and angels like Paul Graham, Darian Shirazi, and Balaji Srinivasan [Mastra Blog, Series A].