{"schemaVersion":1,"id":"mastra","name":"Mastra","locale":"en","canonicalUrl":"https://base.akulich.dev/en/library/mastra/","officialUrl":"https://github.com/mastra-ai/mastra","isCatalog":false,"description":"A TypeScript framework for AI agents, workflows, and retrieval with model integrations: it helps build an AI application backend in a single stack.","tasks":["Build an application's TypeScript agent workflow","Connect retrieval/state to the backend and inspect the execution trace"],"categoryIds":["ai","backend"],"subcategoryIds":["ai.orchestration","backend.api"],"tags":["Mastra","ml","Development"],"aliases":["mastra-ai/mastra","mastra-ai","mastra","mastra-agent-framework"],"platforms":[],"stack":[],"compatibility":null,"pricing":"freemium","freeUsage":"Core Apache-2.0 packages for your own agent application.","paidUsage":"EE modules, managed services, and selected model APIs are paid for separately.","license":"Code outside ee/ is Apache-2.0; ee/ uses the Mastra Enterprise Edition License. Development/Testing is permitted in an environment without user data, customer data, or business operations; redistribution is not permitted. Production requires a current written agreement and a valid scoped License Key.","selectionGuide":{"purpose":"Build an application's TypeScript agent workflow","chooseWhen":["Build an application's TypeScript agent workflow","Connect retrieval/state to the backend and inspect the execution trace"],"considerInstead":[],"requirements":["Configured storage is required to preserve workflow state."],"limitations":["Costs and limits of free use: EE modules, managed services, and selected model APIs are paid for separately.","Terms of use: Code outside ee/ is Apache-2.0; ee/ uses the Mastra Enterprise Edition License. Development/Testing is permitted in an environment without user data, customer data, or business operations; redistribution is not permitted. Production requires a current written agreement and a valid scoped License Key.","The EE Development and Testing grant excludes processing data of end users/customers/business operations and does not permit redistribution. Production requires both a written Agreement and a valid scoped License Key."],"faq":[{"question":"What can you use for free in Mastra?","answer":"Core Apache-2.0 packages for your own agent application."},{"question":"What additional costs might arise with Mastra?","answer":"EE modules, managed services, and selected model APIs are paid for separately."},{"question":"What terms of use matter for Mastra?","answer":"Code outside ee/ is Apache-2.0; ee/ uses the Mastra Enterprise Edition License. Development/Testing is permitted in an environment without user data, customer data, or business operations; redistribution is not permitted. Production requires a current written agreement and a valid scoped License Key."},{"question":"How do you get started with Mastra?","answer":"Define agent tools, the model provider, and workflow stages. Connect retrieval/state to the backend and inspect the execution trace. Connect the workflow to the application and make errors observable."},{"question":"When should I choose a Mastra workflow over an independently acting agent?","answer":"Agents decide which tools to call; graph workflows explicitly define order through .then(), .branch(), and .parallel(). Workflows can suspend/resume, and storage retains execution state. Mastra connects to React/Next.js/Node.js applications or runs as a standalone server; model routing and MCP separate orchestration from a specific provider."}],"related":[],"sources":["https://github.com/mastra-ai/mastra","https://raw.githubusercontent.com/mastra-ai/mastra/HEAD/README.md","https://raw.githubusercontent.com/mastra-ai/mastra/HEAD/LICENSE.md","https://www.open-source-tools.com/","https://raw.githubusercontent.com/mastra-ai/mastra/HEAD/ee/LICENSE"]},"selectionCheckedAt":null,"applicationGuide":{"goal":"Build an application's TypeScript agent workflow.","inputs":["Test documents or tasks, and a quality criterion.","Models, a runtime, and a computing budget."],"steps":["Define agent tools, the model provider, and workflow stages.","Connect retrieval/state to the backend and inspect the execution trace.","Connect the workflow to the application and make errors observable."],"checks":["Check the result against reference examples and invalid inputs.","Inference costs, model rights, and data handling have been established."]},"sources":["https://github.com/mastra-ai/mastra","https://raw.githubusercontent.com/mastra-ai/mastra/HEAD/README.md","https://raw.githubusercontent.com/mastra-ai/mastra/HEAD/LICENSE.md","https://www.open-source-tools.com/","https://raw.githubusercontent.com/mastra-ai/mastra/HEAD/ee/LICENSE"],"checkedAt":"2026-10-06","reviewScope":"The purpose, current repository license, and separate terms for code, services, and models have been reviewed. The product was not run, and no security audit was performed.","relatedIds":[],"dataVersion":"cbbe7123b47a5ae80983","type":"AI / ML development tool","kind":"tool","pricingNote":"Core Apache-2.0 packages for your own agent application. EE modules, managed services, and selected model APIs are paid for separately.","notes":null,"labeledSources":[{"url":"https://github.com/mastra-ai/mastra","label":"Official source"},{"url":"https://raw.githubusercontent.com/mastra-ai/mastra/HEAD/README.md","label":"Official source"},{"url":"https://raw.githubusercontent.com/mastra-ai/mastra/HEAD/LICENSE.md","label":"License"},{"url":"https://www.open-source-tools.com/","label":"Catalog / discovery source"},{"url":"https://raw.githubusercontent.com/mastra-ai/mastra/HEAD/ee/LICENSE","label":"Official source"}],"licenseGuides":[{"id":"apache-2","title":"Apache 2.0 — permissive license with patent terms","scope":"Mastra code outside ee/; dependencies retain their own terms.","summary":"You can use and modify the code in commercial and closed-source projects. When distributing it, retain the license and relevant notices, identify modified files, and include NOTICE if provided. Authors grant a limited patent license for their contributions; it does not grant permission to use trademarks.","url":"https://www.apache.org/licenses/LICENSE-2.0"},{"id":"proprietary","title":"Proprietary terms — the vendor determines your rights","scope":"Mastra Enterprise Features/ee/: a limited Dev/Test grant; Production requires an Agreement and a valid License Key.","summary":"Use of the software or service is governed by its Terms/EULA and the chosen plan. Free access does not automatically grant rights to modify and distribute source code, resell assets, or use outputs commercially. The specific product's terms define permitted use, export, and commercial rights.","url":null}],"entryIds":[],"composition":null}