mastra-ai/mastra

▲ 26 stars today★ 29,687⑂ 3,123

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

About mastra-ai/mastra

mastra-ai/mastra is an open-source project on GitHub, mainly written in TypeScript. Mastra is the modern TypeScript framework for AI-powered applications and agents. It currently holds 29,687 stars and 3,123 forks with 881 open issues, and was last pushed on 2026-11-20 (repository created 2024-08-06).

Project Overview

Git Homed tracks it on the Today's Trending board, currently at rank #99 with 26 new stars today.

GitHub Repository Details

Repository mastra-ai/mastra · default branch main · size 1945914 KB · watchers 105 · source: GitHub REST API and repository README

README

Mastra

npm version CodeQl GitHub Repo stars Discord Twitter Follow NPM Downloads Static Badge

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:

Get started

The recommended way to get started with Mastra is by running the command below:

npm create mastra@latest

Follow the Installation guide for step-by-step setup with the CLI or a manual install.

If you're new to AI agents, check out our templates, course, and YouTube videos to start building with Mastra today.

Alternative: Use this pre-built prompt to get started

Create a new Mastra project. Mastra is a framework for AI applications and agents on a modern TypeScript stack. Before running the command, ask these questions one at a time and wait for each answer unless it was already provided:

1. Project name? (default: "my-mastra-app") 2. Provider? (required; options: "openai", "anthropic", "google", "xai")

If the provider isn't supported, ask again and list the supported values.

Run: npm create mastra@latest -- --llm

The command creates a default Mastra project, installs Mastra skills for detected coding assistants, and initializes Git when appropriate.

After creation, enter the project directory and start the dev server: npx bgproc start -n -w -- npm run dev

Open Mastra Studio at http://localhost:4111. Studio is the interface for building, testing, and managing agents, workflows, and tools.

Also mention that the Mastra model router provides access to thousands of models: https://mastra.ai/models

Documentation

Visit our official documentation.

Build with AI

Learn how to make your agent a Mastra expert by following the Build with AI guide.

Contributing

Looking to contribute? Pull requests are limited to collaborators only. Therefore you can _best_ help by creating high-quality issues with good reproductions and descriptions. Mastra will then verify your report and prioritize it accordingly.

If you want to run Mastra or its tests locally, refer to the development documentation

Support

We have an open community Discord. Come and say hello and let us know if you have any questions or need any help getting things running.

It's also super helpful if you leave the project a star here, at the top of the page

Licensing

This repository uses a dual-license model:

See LICENSE.md for the full license mapping and ee/LICENSE for the enterprise license terms.

Security

We 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 [email protected] and we will get back to you.

GitHub Stars & Activity

29,687Stars
3,123Forks
881Open issues
TypeScriptLanguage

GitHub Popularity

GitHub stars29,687
Forks3,123
Open issues881
Primary languageTypeScript
LicenseNOASSERTION
Stars gained today26
Created2024-08-06
Last pushed2026-11-20

Trending History

Daily boardrank #99 · ▲ 26 stars

Related GitHub Projects

1

anomalyco / opencode

TypeScript★ 229,075⑂ 31,182▲ 234 stars
→
2

firecrawl / firecrawl

TypeScript★ 209,454⑂ 10,949▲ 991 stars
→
3

earendil-works / pi

TypeScript★ 123,798⑂ 15,995▲ 204 stars
→
4

colbymchenry / codegraph

TypeScript★ 78,658⑂ 5,242▲ 112 stars
→
5

toeverything / AFFiNE

TypeScript★ 78,206⑂ 5,708▲ 584 stars
→
6

Fission-AI / OpenSpec

TypeScript★ 75,690⑂ 5,178▲ 88 stars
→
7

twentyhq / twenty

TypeScript★ 61,453⑂ 10,179▲ 54 stars
→
8

bendlang / bend

TypeScript★ 25,866⑂ 827▲ 33 stars
→

More Trending Repositories