[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-3672":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":23,"hasPages":23,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":39,"readmeContent":40,"aiSummary":41,"trendingCount":16,"starSnapshotCount":16,"syncStatus":42,"lastSyncTime":43,"discoverSource":44},3672,"mastra","mastra-ai\u002Fmastra","mastra-ai","From the team behind Gatsby, Mastra is a framework for building AI-powered applications and agents with a modern TypeScript stack.","https:\u002F\u002Fmastra.ai",null,"TypeScript",24967,2215,95,191,0,36,202,1179,156,45,"Other",false,"main",[26,27,28,29,30,31,32,33,34,35,36,37,38],"agents","ai","chatbots","evals","javascript","llm","mcp","nextjs","nodejs","reactjs","tts","typescript","workflows","2026-06-12 02:00:52","# Mastra\n\n[![npm version](https:\u002F\u002Fbadge.fury.io\u002Fjs\u002F@mastra%2Fcore.svg)](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@mastra\u002Fcore)\n[![CodeQl](https:\u002F\u002Fgithub.com\u002Fmastra-ai\u002Fmastra\u002Factions\u002Fworkflows\u002Fgithub-code-scanning\u002Fcodeql\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Fmastra-ai\u002Fmastra\u002Factions\u002Fworkflows\u002Fgithub-code-scanning\u002Fcodeql)\n[![GitHub Repo stars](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fstars\u002Fmastra-ai\u002Fmastra)](https:\u002F\u002Fgithub.com\u002Fmastra-ai\u002Fmastra\u002Fstargazers)\n[![Discord](https:\u002F\u002Fimg.shields.io\u002Fdiscord\u002F1309558646228779139?logo=discord&label=Discord&labelColor=white&color=7289DA)](https:\u002F\u002Fdiscord.gg\u002FBTYqqHKUrf)\n[![Twitter Follow](https:\u002F\u002Fimg.shields.io\u002Ftwitter\u002Ffollow\u002Fmastra?style=social)](https:\u002F\u002Fx.com\u002Fmastra)\n[![NPM Downloads](https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fdm\u002F%40mastra%252Fcore)](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@mastra\u002Fcore)\n[![Static Badge](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FY%20Combinator-W25-orange)](https:\u002F\u002Fwww.ycombinator.com\u002Fcompanies?batch=W25)\n\nMastra is a framework for building AI-powered applications and agents with a modern TypeScript stack.\n\nIt 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.\n\n## Why Mastra?\n\nPurpose-built for TypeScript and designed around established AI patterns, Mastra gives you everything you need to build great AI applications out-of-the-box.\n\nSome highlights include:\n\n- [**Model routing**](https:\u002F\u002Fmastra.ai\u002Fmodels) - Connect to 40+ providers through one standard interface. Use models from OpenAI, Anthropic, Gemini, and more.\n\n- [**Agents**](https:\u002F\u002Fmastra.ai\u002Fdocs\u002Fagents\u002Foverview) - 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.\n\n- [**Workflows**](https:\u002F\u002Fmastra.ai\u002Fdocs\u002Fworkflows\u002Foverview) - 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 (`.then()`, `.branch()`, `.parallel()`).\n\n- [**Human-in-the-loop**](https:\u002F\u002Fmastra.ai\u002Fdocs\u002Fworkflows\u002Fsuspend-and-resume) - Suspend an agent or workflow and await user input or approval before resuming. Mastra uses [storage](https:\u002F\u002Fmastra.ai\u002Fdocs\u002Fserver-db\u002Fstorage) to remember execution state, so you can pause indefinitely and resume where you left off.\n\n- **Context management** - Give your agents the right context at the right time. Provide [conversation history](https:\u002F\u002Fmastra.ai\u002Fdocs\u002Fmemory\u002Fconversation-history), [retrieve](https:\u002F\u002Fmastra.ai\u002Fdocs\u002Frag\u002Foverview) data from your sources (APIs, databases, files), and add human-like [working](https:\u002F\u002Fmastra.ai\u002Fdocs\u002Fmemory\u002Fworking-memory) and [semantic](https:\u002F\u002Fmastra.ai\u002Fdocs\u002Fmemory\u002Fsemantic-recall) memory so your agents behave coherently.\n\n- **Integrations** - Bundle agents and workflows into existing React, Next.js, or Node.js apps, or ship them as standalone endpoints. When building UIs, integrate with agentic libraries like Vercel's AI SDK UI and CopilotKit to bring your AI assistant to life on the web.\n\n- [**MCP servers**](https:\u002F\u002Fmastra.ai\u002Fdocs\u002Ftools-mcp\u002Fmcp-overview) - Author Model Context Protocol servers, exposing agents, tools, and other structured resources via the MCP interface. These can then be accessed by any system or agent that supports the protocol.\n\n- **Production essentials** - Shipping reliable agents takes ongoing insight, evaluation, and iteration. With built-in [evals](https:\u002F\u002Fmastra.ai\u002Fdocs\u002Fevals\u002Foverview) and [observability](https:\u002F\u002Fmastra.ai\u002Fdocs\u002Fobservability\u002Foverview), Mastra gives you the tools to observe, measure, and refine continuously.\n\n## Get started\n\nThe **recommended** way to get started with Mastra is by running the command below:\n\n```shell\nnpm create mastra@latest\n```\n\nFollow the [Installation guide](https:\u002F\u002Fmastra.ai\u002Fdocs\u002Fgetting-started\u002Finstallation) for step-by-step setup with the CLI or a manual install.\n\nIf you're new to AI agents, check out our [templates](https:\u002F\u002Fmastra.ai\u002Fdocs\u002Fgetting-started\u002Ftemplates), [course](https:\u002F\u002Fmastra.ai\u002Fcourse), and [YouTube videos](https:\u002F\u002Fyoutube.com\u002F@mastra-ai) to start building with Mastra today.\n\n## Documentation\n\nVisit our [official documentation](https:\u002F\u002Fmastra.ai\u002Fdocs).\n\n## Build with AI\n\nLearn how to make your agent a Mastra expert by following the [Build with AI guide](https:\u002F\u002Fmastra.ai\u002Fdocs\u002Fgetting-started\u002Fbuild-with-ai).\n\n## Contributing\n\nLooking to contribute? All types of help are appreciated, from coding to testing and feature specification. Read [CONTRIBUTING.md](.\u002FCONTRIBUTING.md) for more details on how to get involved.\n\nIf you are a developer and would like to contribute with code, please open an issue to discuss before opening a Pull Request.\n\nInformation about the project setup can be found in the [development documentation](.\u002FDEVELOPMENT.md)\n\n## Support\n\nWe have an [open community Discord](https:\u002F\u002Fdiscord.gg\u002FBTYqqHKUrf). Come and say hello and let us know if you have any questions or need any help getting things running.\n\nIt's also super helpful if you leave the project a star here, at the [top of the page](https:\u002F\u002Fgithub.com\u002Fmastra-ai\u002Fmastra)\n\n## Licensing\n\nThis repository uses a dual-license model:\n\n- **Apache License 2.0** — The core framework and the vast majority of this codebase is open source under Apache-2.0.\n- **Mastra Enterprise License** — Code in any directory named `ee\u002F` (e.g., `packages\u002Fcore\u002Fsrc\u002Fauth\u002Fee\u002F`) is source-available under the Mastra Enterprise License. These features require a valid enterprise license for production use but can be freely used for development and testing.\n\nSee [LICENSE.md](.\u002FLICENSE.md) for the full license mapping and [ee\u002FLICENSE](.\u002Fee\u002FLICENSE) for the enterprise license terms.\n\n## Security\n\nWe are committed to maintaining the security of this repo and of Mastra as a whole. If you discover a security finding we ask you to please responsibly disclose this to us at [security@mastra.ai](mailto:security@mastra.ai) and we will get back to you.\n","Mastra 是一个用于构建AI驱动的应用程序和代理的框架，基于现代TypeScript技术栈。它集成了模型路由、自主代理、工作流引擎等核心功能，支持40多种AI模型提供商的一站式接入，并且能够与React、Next.js、Node.js等前端后端框架无缝对接。此外，Mastra还提供了上下文管理和人类参与循环的功能，使得开发者可以轻松地为应用添加对话历史记录、数据检索以及类似人类的记忆机制。该框架适用于需要快速原型设计到产品级部署的各种AI应用场景，尤其是那些要求高度自定义逻辑处理和复杂多步骤流程管理的情况。",2,"2026-06-11 02:55:24","top_language"]