Mastra is the modern TypeScript framework for AI-powered applications and agents.
# Mastra
[](https://www.npmjs.com/package/@mastra/core)
[](https://github.com/mastra-ai/mastra/actions/workflows/github-code-scanning/codeql)
[](https://github.com/mastra-ai/mastra/stargazers)
[](https://discord.gg/mastra-ai)
[](https://x.com/mastra)
[](https://www.npmjs.com/package/@mastra/core)
[](https://www.ycombinator.com/companies?batch=W25)
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:
.then(), .branch(), .parallel()).## Get started
The recommended way to get started with Mastra is by running the command below:
npm create mastra@latest
Follow the [Installation guide](https://mastra.ai/guides/getting-started/quickstart) for step-by-step setup with the CLI or a manual install.
If you're new to AI agents, check out our [templates](https://mastra.ai/docs/getting-started/templates), [course](https://mastra.ai/course), and [YouTube videos](https://youtube.com/@mastra-ai) 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 <project-name> -- --llm <provider>` 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 <project-name> -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](https://mastra.ai/docs).
## Build with AI