🧩 Framework & Thư viện•Mã nguồn mở•Đang hoạt động

Mastra

TypeScript framework cho AI agents từ đội Gatsby, hỗ trợ 40+ LLM providers, workflows và MCP servers

#mastra
Danh mục
🧩 Framework & Thư viện
Giá
Mã nguồn mở
GitHub Stars
⭐ 28,508
Ngôn ngữ
TypeScript
License
NOASSERTION
Ngày thêm
2026-03-28
Tóm tắt từ README GitHub
Mastra Mastra is a framework for building AI-powered applications and agents with a modern TypeScript stack. It includes everything you need to go from early prototypes to production-ready applications. Mastra integrates with frontend and backend frameworks like React, Next.js, and Node, or you can deploy it anywhere as a standalone server. It's the easiest way to build, tune, and scale reliable AI products. Why Mastra? Purpose-built for TypeScript and designed around established AI patterns, Mastra gives you everything you need to build great AI applications out-of-the-box. Some highlights include: - Model routing : Connect to 40+ providers through one standard interface. Use models from OpenAI, Anthropic, Gemini, and more. - Agents : Build autonomous agents that use LLMs and tools to solve open-ended tasks. Agents reason about goals, decide which tools to use, and iterate internally until the model emits a final answer or an optional stopping condition is met. - Workflows : When you need explicit control over execution, use Mastra's graph-based workflow engine to orchestrate complex multi-step processes. Mastra workflows use an intuitive syntax for control flow ( , , ).
Xem thêm từ README.md

Đánh giá chi tiết

Tổng quan

Mastra là TypeScript framework để build AI-powered applications và agents. Từ đội ngũ đứng sau Gatsby, được Y Combinator W25 chọn. Thiết kế xoay quanh các AI patterns đã được kiểm chứng, cung cấp đầy đủ công cụ từ prototype đến production.

Tính năng chính

  • Model routing: kết nối 40+ providers (OpenAI, Anthropic, Gemini) qua 1 interface
  • Agents: autonomous agents sử dụng LLM + tools, tự reasoning đến khi có final answer
  • Graph-based workflows: .then(), .branch(), .parallel() cho control flow rõ ràng
  • Human-in-the-loop: suspend agent/workflow chờ user input, resume đúng chỗ
  • Context management: conversation history, RAG, working memory, semantic recall
  • MCP servers: expose agents và tools qua Model Context Protocol
  • Evals và observability tích hợp cho production monitoring

Stack kỹ thuật

TypeScript/Node.js. Tích hợp React, Next.js. Deploy standalone hoặc embed vào app có sẵn. Dual license: Apache-2.0 core + Enterprise license cho ee/ features.

Điểm mạnh

  • Purpose-built cho TypeScript ecosystem, không cần chuyển sang Python
  • Workflow engine trực quan với syntax JavaScript quen thuộc
  • Tích hợp Vercel AI SDK UI và CopilotKit cho frontend
  • CLI scaffolding: npm create mastra@latest

Hạn chế

  • Ecosystem trẻ hơn so với LangChain/LlamaIndex (Python-based)
  • Enterprise features cần license riêng
  • Documentation đang phát triển, community nhỏ hơn đối thủ

Phù hợp khi nào

TypeScript/JavaScript developers cần framework build AI agents với workflow phức tạp, human-in-the-loop, và production observability.

Mastra | Atlas for AI