CEO
Sam Bhagwat is the founder and CEO of Mastra. He co-founded Gatsby, which was used by hundreds of thousands of developers. A Stanford graduate and veteran of web development, he authored 'Principles of Building AI Agents' (2025).
49 blog posts
APIs are locked, server adapters are the new default, and we've shipped thread cloning, composite storage, AI SDK v6 support, and more.
Factorial built One, an AI agent that helps HR managers and employees get answers from company data—all while maintaining strict permission controls and preventing hallucinations.
We have a new UI dojo. It's a collection of working examples showing Mastra agents integrated with the most popular AI UI frameworks. Try it out at ui-dojo.mastra.ai.
We're excited to announce the launch of our new logo and brand for Mastra. We believe developers deserve beautiful tools that match the sophistication and dynamism of the systems they're building.
We're excited to announce the release of our new book: Patterns for Building AI Agents. This book helps you take your agents from prototype to production.
Mastra v1 is now in beta, marking the production-ready release of the leading TypeScript framework for AI agents, trusted by top global companies.
We've renamed Playground to Studio and it's now shareable with your team.
Mastra workflows now support suspend and resume in Playground. You can also use the new resumeStream API to close streams on suspend and resume them later.
Workflow state lets you share values across steps without threading them through every `inputSchema` and `outputSchema`.
Mastra secures $13m from a coalition of legendary investors to fuel AI agent development and production.
Learn how to migrate from Mastra’s VNext streaming methods to the new standard APIs, with details on renaming, compatibility, and key differences between AI SDK v4 and v5.
Model fallbacks ensure your application stays online by automatically switching to backup models when your primary provider fails.
Mastra introduces AI Tracing: filter out noise and use multiple observability platforms.
We're making our new streaming architecture the default experience starting from `@mastra/core v0.19.0.`
Learn how to build interactive, real-time agentic apps using CopilotKit as a frontend for Mastra agents.
Introducing output processors: the gatekeepers that sit between your language model's response and your users.
Cloneable scorers let you copy, customize, and extend Mastra’s evals into your project.
Mastra now controls the agent loop and tool calling with increased orchestration capabilities—while maintaining backward compatibility with AI SDK v4 and v5.
How WorkOS went from discovering Mastra on GitHub to using it in production and teaching it to hundreds of engineers at AI conferences.
Mastra is now licensed under Apache 2.0, making it easier for everyone to use, modify, and contribute.
How PLAID Japan migrated from GUI-based AI tools to Mastra for better collaboration and productivity for their engineering team building on Google Cloud.
Why Fireworks AI decided to ship AIML, a prompt-based agent framework, using Mastra.
A deep dive into building MastraManus, an AI research assistant powered by Mastra's vNext workflows.
We're excited to announce the release of v2 of Principles of Building AI Agents.
How Lua switched from custom agent infrastructure to Mastra Cloud for rapid deployment of 100+ business partners across African markets.
How MedusaJS used Mastra Cloud to prototype and deploy agent architectures for automated e-commerce feature generation.
Deploy Mastra anywhere
Learn about effective AI prompting techniques, including types of prompts, handling their output, and evals.
How we vibecoded Flash Genius, an instant flashcard generator, in 1 hour
Mastra's dynamic agents provide a powerful way to handle context in AI applications, without exposing sensitive information to the LLM or relying on globals.
A dive into four leading open-source JS AI libraries: Vercel AI SDK for model routing, Mastra for agents and workflows, Langfuse for observability, and Stagehand for web automation.
When choosing a JavaScript agent framework, consider the needs of your project and the team's expertise. Mastra and LangGraph.js are two leading options.
Mastra's MCP Registry Registry simplifies the process of finding MCP registries.
Mastra MCP documentation server, AgentNetwork updates, and more
Major workflow enhancements, new Mastra Voice features, and more
Mastra founder Sam Bhagwat is excited to announce the release of our new book: Principles of Building AI agents. This book is a guide for developers who want to rapidly build AI applications.
How we used Mastra and Gemini Flash 2.0 to build a natural language interface for code repositories
Mastra moving into beta
How we use LLMs at Mastra to design clean, intuitive APIs by improving naming, structure, and developer workflow.
Major updates including AI SDK integration, optimized bundle size through subpath imports, and enhanced storage layer with tracing capabilities
New Memory API, speech providers, vector store integrations, and core improvements
A demo using Mastra to show how multiple AI agents can work together to plan travel itineraries.
New `mastra build` command, evals in dev playground, new model support, and an abstracted deployer package
Use Mastra's TTS system with OpenAI's speech models to create text-to-speech applications, covering voice selection, audio generation, streaming capabilities
Mastra's changelog for Jan 10th, 2025 through Jan 17th, 2025
A technical guide showing how to build a NotebookLM clone that transforms documents into AI-generated podcasts using Mastra's agent orchestration, Pgvector vector storage, and LlamaIndex for content processing.
Mastra's changelog for Dec 27th 2024 through Jan 10th, 2025
The next generation of AI products will be built with Apis written in Typescript
What's changed in AI engineering over the last two years: models, agents, knowledge, tracing, evals