
Mastra is a comprehensive, modern TypeScript framework for building AI-powered applications and agents. From the team behind Gatsby, Mastra provides everything you need to go from idea to production-ready AI workflows.
Key Features:
Whether you're building browser agents, research tools, or data extraction workflows, Mastra provides the TypeScript foundation for production AI.
Web scraping workflow
Mastra workflows define task sequences with explicit steps and input/output schemas. They can coordinate model-assisted extraction around a separately supplied HTTP or browser tool while keeping the overall collection path controlled.
Use this when an application mixes deterministic processing with model-assisted interpretation and needs to control which step receives which data. Explicit step contracts make it easier to isolate a parsing failure from an agent's reasoning output.
Mastra is not a managed scraper or proof of built-in rendering. Provide the acquisition tool, runtime and appropriate credentials separately. Treat collected pages as untrusted inputs, restrict tool actions and validate model-produced fields against the source; workflow completion alone does not establish factual accuracy.
Growing a website? Track its keywords, Google rankings, Search Console insights, and share of voice with bisibility. Free during beta.
Our productSource code
mastra-ai/mastra
Stars
28.8KForks
3KLast commit
2026-10-15License
Apache-2.0 (outside ee/)Language
TypeScriptMetrics recorded 2026-10-16
License source: Repository license file
Mastra is a TypeScript framework for building AI agents and applications. It provides agents, tools, workflows, memory and observability components. You configure the models and integrations used by your application.
Sources (checked ): Mastra documentation
Mastra’s core framework is Apache-2.0 licensed. Enterprise features have a separate source-available license, and the managed platform has a free Starter allowance with paid usage beyond its limits. Model providers and self-hosted infrastructure can also incur costs.
Sources (checked ): Mastra license at verified commit e1478fc (2026-10-01); Mastra Enterprise Edition License v2.0 (effective 2026-09-22), verified commit e1478fc; Mastra pricing
LangChain and Pydantic AI are other frameworks for building applications or agents around language models. Compare supported languages, tool interfaces, workflow control and observability with the needs of your application.
Sources (checked ): Mastra documentation; LangChain documentation; Pydantic AI
Mastra is built around a TypeScript application stack with integrated agent and workflow components. LangChain provides agent abstractions and integrations, with separate language packages. Compare the specific packages, runtime and orchestration features you plan to adopt.
Sources (checked ): Mastra documentation; LangChain documentation
Verified against the mastra-ai/mastra repository and the npm package.
Library or tool · Framework / Self-hosted