mastra-ai/mastra

▲ 28 stars today★ 29,567⑂ 3,111

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,567 stars and 3,111 forks with 826 open issues, and was last pushed on 2026-11-17 (repository created 2024-08-06).

Project Overview

AI Homed tracks it on the Today's Trending board, currently at rank #53 with 28 new stars today.

GitHub Repository Details

Repository mastra-ai/mastra · default branch main · size 1905712 KB · watchers 102 · 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 security@mastra.ai and we will get back to you.

GitHub Stars & Activity

29,567Stars
3,111Forks
826Open issues
TypeScriptLanguage

GitHub Popularity

GitHub stars29,567
Forks3,111
Open issues826
Primary languageTypeScript
LicenseNOASSERTION
Stars gained today28
Created2024-08-06
Last pushed2026-11-17

Trending History

Daily boardrank #53 · ▲ 28 stars

Related AI Projects

1

anomalyco / opencode

TypeScript★ 228,782⑂ 31,108▲ 256 stars
→
2

firecrawl / firecrawl

TypeScript★ 207,735⑂ 10,859▲ 920 stars
→
3

earendil-works / pi

TypeScript★ 123,506⑂ 15,955▲ 200 stars
→
4

colbymchenry / codegraph

TypeScript★ 78,502⑂ 5,227▲ 121 stars
→
5

Fission-AI / OpenSpec

TypeScript★ 75,560⑂ 5,164▲ 105 stars
→
6

twentyhq / twenty

TypeScript★ 61,374⑂ 10,155▲ 50 stars
→
7

appwrite / appwrite

TypeScript★ 58,542⑂ 5,916▲ 77 stars
→
8

bendlang / bend

TypeScript★ 25,815⑂ 827▲ 50 stars
→

More AI Rankings