Mastra

An open-source TypeScript & JavaScript framework for building, testing and deploying AI agents and applications.

Website: https://mastra.ai/

Founders, Backgrounds, and Bench

Mastra was founded in 2024 by Sam Bhagwat, Kyle Mathews, Shane Thomas, and Abhi Aiyer. The team is headquartered in San Francisco and operates with a remote-first model.

Summary and Signal

Mastra is an open-source TypeScript and JavaScript framework for building production-ready AI agents, positioning itself as the natural choice for the millions of developers already invested in the modern web stack [Mastra Blog, Series A]. The company, founded in 2024, emerged from the team behind Gatsby, a widely adopted static site generator later acquired by Netlify, bringing deep credibility in developer tools and open-source go-to-market [Y Combinator].

The core product is a batteries-included framework that layers agentic primitives, workflows, tools, memory, and RAG on top of the Vercel AI SDK, offering a unified interface for over 4,000 models [Mastra Docs, Models]. This tight integration with the TypeScript ecosystem and Vercel's toolkit is its primary technical differentiation, aiming to reduce friction for product engineers building AI features. The founding team is led by CEO Sam Bhagwat, former Chief Strategy Officer of Gatsby, and includes Gatsby founder Kyle Mathews, providing a rare combination of open-source framework experience and commercial scaling knowledge [Bloomberg Markets].

With $35 million in disclosed funding across a 2024 seed and a 2025 Series A led by Spark Capital, Mastra is capitalized to expand its platform and commercial offerings [Mastra Blog, Seed Round] [Mastra Blog, Series A]. The business model follows a classic open-core approach, offering a free, self-hosted Apache 2.0 framework alongside a managed platform for deployment, monitoring, and scaling.

Data Accuracy: YELLOW -- Core product claims and funding details are confirmed by company sources; team background is corroborated by independent profiles; adoption and scale metrics are self-reported.

Company Overview

Mastra emerged in 2024 as a venture-scale startup building a TypeScript framework for AI agents. It was accepted into the Y Combinator accelerator program [Y Combinator]. In 2024, Mastra announced a $13 million seed round, citing backing from Y Combinator, pg, Gradient, Amjad, Guillermo, Balaji, and over 120 other investors [Mastra Blog, Seed Round]. Growth accelerated into 2025 with a $22 million Series A financing led by Spark Capital [Mastra Blog, Series A]. During this period, the project also saw a surge in developer interest, with its GitHub repository reportedly growing from 1,500 to 7,500 stars in a single week in mid-February 2025 [Generative, Inc., 2026].

Data Accuracy: YELLOW -- Founding team and funding rounds are confirmed via company blog and investor pages; the GitHub star growth is reported by a single third-party source.

The Product and the Stack

Mastra is a developer framework designed to simplify the construction of multi-step, stateful AI applications. The company positions its core offering as an open-source TypeScript and JavaScript SDK that sits on top of the Vercel AI SDK [Mastra.ai]. This approach bundles primitives for autonomous agents, graph-based workflows, retrieval-augmented generation (RAG) with pluggable storage, and tool integration into a single, strongly-typed package [WorkOS Blog, November 2024].

The technical architecture emphasizes developer experience and production readiness for TypeScript teams. Key surfaces include:

  • Strongly-typed tools. Tool inputs and outputs are validated using Zod schemas [Mastra Blog, February 2026].
  • Workflow orchestration. Developers can define complex, branching logic using methods like.then(),.branch(), and.parallel() [Speakeasy].
  • Model and memory abstraction. Mastra provides a single API interface for access to thousands of models across more than 120 providers [Mastra Docs, Models].

The commercial layer, Mastra Platform, is offered as a managed service for deploying, monitoring, and scaling applications built with the framework [Mastra Docs, Deployment overview]. The company maintains a self-hosted option under an Apache 2.0 license for the core framework [Mastra, Pricing].

Data Accuracy: YELLOW -- Core framework capabilities are documented in public tutorials and the company's blog. Claims regarding model access and platform features are sourced solely from the company's documentation.

The Market They Are Entering

The market for AI agent frameworks is a proxy for the broader enterprise demand to operationalize generative AI. The most direct analog is the global market for AI software development platforms, which Grand View Research estimated at $6.2 billion in 2023 and projected to grow at a compound annual rate of 22.6% through 2030 [Grand View Research, 2024]. A more expansive view considers the market for AI-enabled enterprise applications, which Gartner forecast would reach $150 billion in total software revenue by 2025 [Gartner, 2023].

Metric Value
AI Software Development Platforms (2023) $6.2B
AI-Enabled Enterprise Applications (2025) $150B
Global Low-Code Development Technologies (2023) $26.9B

Data Accuracy: YELLOW -- Market sizing is drawn from third-party analyst reports for analogous segments; no direct sizing for the TypeScript AI agent framework niche is available.

The Competitive Field

Mastra enters a crowded field of AI agent frameworks, but its positioning as a TypeScript-native, Vercel-aligned tool for product engineers carves a distinct niche. The competitive map is defined by a split between general-purpose orchestration libraries and language-specific toolkits.

Where Mastra has a defensible edge today is in its founding team's distribution and credibility within the JavaScript ecosystem. The founders' prior work on Gatsby provides immediate brand recognition and trust with the target developer audience. Mastra's primary exposure lies in the risk of being outflanked by the platforms it integrates with, such as the Vercel AI SDK itself or major cloud providers.

Data Accuracy: YELLOW -- Competitor funding and positioning are drawn from public sources. Mastra's own positioning is confirmed by its documentation and blog.

Opportunity

The headline outcome is Mastra becoming the de facto framework for building AI agents in TypeScript. The plausibility stems from a clear wedge: the deep, technical alignment with the Vercel AI SDK and the modern TypeScript stack creates a natural on-ramp for the millions of developers already in that ecosystem [Perplexity Sonar Pro Brief].

Data Accuracy: YELLOW -- Growth scenarios are extrapolated from product positioning and founder track record; specific catalyst events are not yet public. GitHub star growth is reported by a third party.

Articles about Mastra

View on Startuply.vc