mastra
by
mastra-ai

Description: Mastra is the modern TypeScript framework for AI-powered applications and agents.

View on GitHub ↗

Summary Information

Updated 16 minutes ago
Added to GitGenius on February 21st, 2025
Created on August 6th, 2024
Open Issues & Pull Requests: 418 (-1)
Number of forks: 2,390
Total Stargazers: 26,011 (+0)
Total Subscribers: 94 (+0)

Issue Activity (beta)

Open issues: 210
New in 7 days: 39
Closed in 7 days: 30
Avg open age: 30 days
Stale 30+ days: 116
Stale 90+ days: 35

Recent activity

Opened in 7 days: 25
Closed in 7 days: 19
Comments in 7 days: 58
Events in 7 days: 338

Top labels

  • bug (2,080)
  • effort:medium (1,438)
  • impact:high (1,391)
  • discord (1,127)
  • trio-tb (874)
  • enhancement (866)
  • trio-tnt (754)
  • Agents (752)

Repository Insights (GitGenius)

Median issue/PR response: 0.0 hours
Mean response time: 2.4 hours
90th percentile: 0.0 hours
Tracked items: 4,598

Most active contributors

Detailed Description

Mastra is a TypeScript framework designed for building AI-powered applications and agents, offering a comprehensive toolkit that bridges the gap between prototype development and production-ready systems. The framework integrates seamlessly with popular frontend and backend technologies including React, Next.js, and Node.js, while also supporting deployment as a standalone server across various environments.

The core functionality centers on several interconnected features. Model routing provides access to over 40 different AI providers through a unified interface, enabling developers to work with models from OpenAI, Anthropic, Gemini, and others without provider-specific implementation details. The agents system allows developers to build autonomous agents that leverage large language models and tools to tackle open-ended tasks, with agents capable of reasoning about goals, selecting appropriate tools, and iterating internally until reaching conclusions. For scenarios requiring more explicit control, the workflow engine uses a graph-based architecture with intuitive syntax for control flow operations including sequential execution via .then(), branching logic via .branch(), and parallel processing via .parallel().

Human-in-the-loop capabilities enable workflows and agents to suspend execution and await user input or approval before resuming, with state persistence through storage systems allowing indefinite pauses and resumption from the exact point of interruption. Context management features provide agents with appropriate information at critical moments through conversation history, data retrieval from APIs and databases, and observational memory that enables coherent agent behavior. The framework supports integration with agentic libraries like Vercel's AI SDK UI and CopilotKit for web-based implementations, and includes Model Context Protocol server authoring capabilities for exposing agents and tools via the MCP interface.

Production readiness is addressed through built-in evaluation systems and observability tools that enable continuous measurement and refinement of agent behavior. The repository demonstrates active maintenance with a median issue and pull request response latency of 0.0 hours and a mean response time of 2.4 hours across 4578 tracked items. The most frequently labeled issues involve bugs (2070 occurrences), medium-effort tasks (1421), and high-impact changes (1378), indicating a focus on quality and significant improvements. Primary contributors daneatmastra, abhiaiyer91, and roaminro have driven substantial development activity, with daneatmastra alone accounting for 19724 tracked events.

The codebase employs a dual-licensing model combining Apache License 2.0 for the core framework with a source-available Mastra Enterprise License for enterprise features located in ee/ directories. This structure allows free development and testing while requiring valid enterprise licenses for production use of premium features. The project maintains active community engagement through Discord, comprehensive documentation, educational templates, and video resources to support developers at various experience levels with AI agent development.

mastra
by
mastra-aimastra-ai/mastra

Repository Details

Fetching additional details & charts...