# Sam Bhagwat

> Sam Bhagwat is the founder and CEO of Mastra, an open-source TypeScript framework for building AI agents that pulls in millions of monthly downloads. He earlier co-founded Gatsby, the React-based web framework used by hundreds of thousands of developers and later acquired by Netlify. A Stanford economics grad and longtime open-source builder, he wrote 'Modular: The Web's New Architecture' and 'Principles of Building AI Agents,' the latter dubbed by one YC founder 'the most popular book in San Francisco.' Mastra went through Y Combinator's Winter 2025 batch and raised a $22M Series A led by Spark Capital.

- **Role:** Founder & CEO at Mastra
- **Organizations:** Mastra, Gatsby, Netlify, Zenefits, PlanGrid, Y Combinator, Stanford University
- **Nationality:** American
- **Education:** BA, Economics, Stanford University
- **Known for:** Co-founded Gatsby, used by hundreds of thousands of developers, raised ~$50M, reached ~$5M ARR, acquired by Netlify, Founded Mastra, the leading open-source TypeScript agent framework with millions of monthly downloads and 24k+ GitHub stars, Raised a $22M Series A for Mastra led by Spark Capital (total funding ~$35M)

## Career timeline

- **2011** — Graduated from Stanford University with a BA in Economics
- **2012-2014** — Early engineer at PlanGrid (YC W12) and Zenefits (YC W13)
- **2015** — Co-founded Gatsby with Kyle Mathews, building on the open-source React framework
- **2022** — Published 'Modular: The Web's New Architecture'
- **2023** — Gatsby acquired by Netlify
- **2024** — Co-founded Mastra with Abhi Aiyer and Shane Thomas; launched open-source TypeScript agent framework
- **2025** — Mastra in Y Combinator W25; published 'Principles of Building AI Agents'; raised $22M Series A led by Spark Capital

## Achievements

- Co-founded Gatsby, used by hundreds of thousands of developers, raised ~$50M, reached ~$5M ARR, acquired by Netlify
- Founded Mastra, the leading open-source TypeScript agent framework with millions of monthly downloads and 24k+ GitHub stars
- Raised a $22M Series A for Mastra led by Spark Capital (total funding ~$35M)
- Author of 'Principles of Building AI Agents' (2025) and 'Modular: The Web's New Architecture' (2022)
- Graduated through Y Combinator's Winter 2025 batch

## Latest updates

- **2025-05** — Released the 2nd edition of 'Principles of Building AI Agents' (133 pages, code examples and diagrams)
- **2026-04** — Mastra's last reported raise dated April 2026; continued expansion of the team and cloud/observability products

## Links

- Website: https://mastra.ai
- LinkedIn: https://www.linkedin.com/in/sambhagwat/
- Twitter/X: https://x.com/calcsam
- GitHub: https://github.com/calcsam
- YouTube: https://www.youtube.com/watch?v=7hLhhX4wO8o
- Bluesky: https://bsky.app/profile/calcsam.bsky.social

---

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