Discover and explore top open-source AI tools and projects—updated daily.
mastra-aiTypeScript framework for AI agent development
Top 2.5% on SourcePulse
Mastra is an opinionated TypeScript framework for building AI applications, offering primitives for agents, workflows, RAG, and evaluations. It targets developers seeking to rapidly develop and deploy AI-powered features, supporting any LLM provider through a unified interface.
How It Works
Mastra leverages the Vercel AI SDK for LLM interoperability, enabling seamless integration with providers like OpenAI, Anthropic, and Google Gemini. Its core components include: Agents that orchestrate LLM actions using tools and workflows; Tools as typed, executable functions with schema validation and integration access; Workflows as durable, graph-based state machines supporting complex logic like loops and error handling; RAG for building knowledge bases via ETL pipelines; and Integrations for auto-generated, type-safe API clients.
Quick Start & Requirements
npx create-mastra@latest.npm run dev.ANTHROPIC_API_KEY or GOOGLE_GENERATIVE_AI_API_KEY may be required.Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
The framework is opinionated, which may require adaptation for highly custom architectures. Contribution guidelines suggest discussing code contributions via issues before submitting pull requests.
4 hours ago
1 day
microsoft
TransformerOptimus