Sam Bhagwat
Founder/CEO · Mastra
Location
San Francisco, United States
Sam Bhagwat and Mastra: a TypeScript framework for building AI agents
Sam Bhagwat is the founder and CEO of Mastra in San Francisco. Bhagwat spent about eight years as co-founder of Gatsby.js, an open-source React website framework that scaled to $5 million in annual recurring revenue before being sold to Netlify, and was one of the first 20 engineers at both Zenefits and Plangrid; Bhagwat studied at Stanford, class of 2011.
Is this your profile?
Claim it
to manage what it says.
The Mastra story
Mastra is an open-source TypeScript framework for building AI agents and AI-powered applications, built by the team behind Gatsby. It provides agents, workflows, memory, workspaces and observability so developers can move from idea to production, covering the hard parts of building with AI such as workflows that loop in a human, giving an agent memory, choosing which tool to call, and keeping output quality high.
Mastra integrates with frontend and backend frameworks such as React, Next.js and Node, can be deployed on any cloud or run as a standalone server, and its model routing connects to more than 90 providers through one standard interface, including OpenAI and Anthropic.
Mastra is based in San Francisco and went through Y Combinator's Winter 2025 batch.