# Get started
Build AI agents your users actually depend on. Mastra is a TypeScript framework that gives you everything you need to prototype fast and ship with confidence. Create your first agent with a single command and start building.
## Quickstart
Run this command to create a new project:
**npm**:
```bash
npm create mastra@latest
```
**pnpm**:
```bash
pnpm create mastra
```
**Yarn**:
```bash
yarn create mastra
```
**Bun**:
```bash
bunx create-mastra
```
You can open [Studio](https://mastra.ai/docs/studio/overview) immediately, which is an interactive UI for your Mastra project. See the [quickstart guide](https://mastra.ai/guides/getting-started/quickstart) for a full walkthrough.
## Integrate with your framework
Add Mastra to an existing project, or create a new app with your preferred framework:
- [Next.js](https://mastra.ai/guides/getting-started/next-js)
- [React](https://mastra.ai/guides/getting-started/vite-react)
- [Astro](https://mastra.ai/guides/getting-started/astro)
- [Express](https://mastra.ai/guides/getting-started/express)
- [SvelteKit](https://mastra.ai/guides/getting-started/sveltekit)
- [Hono](https://mastra.ai/guides/getting-started/hono)
For other frameworks, see the [framework integration guides](https://mastra.ai/guides/getting-started/next-js).
## What you can build
Here are some of the ways you can use Mastra:
**Embed agents in your product**
Add AI capabilities to your platform so your users can build or interact with agents.
Used by [Replit](https://mastra.ai/blog/replitagent3), [Fireworks](https://mastra.ai/blog/fireworks-xml-prompting), [Medusa](https://mastra.ai/blog/medusa-ecommerce)
**Customer-facing assistants**
Build agents that handle inquiries, schedule appointments, send reminders, and answer questions via chat, WhatsApp, or voice.
Used by [Vetnio](https://mastra.ai/blog/vetnio), [Lua](https://mastra.ai/blog/lua-scaling)
Templates: [Docs Chatbot](https://mastra.ai/templates/docs-chatbot), [Slack Agent](https://mastra.ai/templates/slack-agent)
**Internal copilots**
Help employees work faster with AI that understands your domain—HR queries, clinical documentation, sales prep, or document generation.
Used by [Factorial](https://mastra.ai/blog/factorial-case-study), [Counsel Health](https://mastra.ai/blog/counsel-health), [Cedar](https://mastra.ai/blog/cedar-case-study), [SoftBank](https://mastra.ai/blog/softbank-productivity-mastra-2025-08-20)
Templates: [Chat with PDF](https://mastra.ai/templates/chat-with-pdf), [Google Sheet Analysis](https://mastra.ai/templates/google-sheets-analysis)
**Data analysis agents**
Let users query databases and dashboards in natural language. Connect to your data sources and return answers, charts, or reports.
Used by [Index](https://mastra.ai/blog/index-case-study), [PLAID Japan](https://mastra.ai/blog/plaid-jpn-gcp-agents)
Templates: [Chat with Database](https://mastra.ai/templates/text-to-sql), [CSV to Questions](https://mastra.ai/templates/csv-to-questions)
**Content automation**
Generate, transform, and manage structured content at scale—whether for a CMS, knowledge base, or documentation system.
Used by [Sanity](https://mastra.ai/blog/sanity)
Templates: [Chat with YouTube](https://mastra.ai/templates/chat-with-youtube), [Flash Cards from PDF](https://mastra.ai/templates/flash-cards-from-pdf)
**DevOps & engineering automation**
Automate deployments, debug production issues, manage infrastructure, and handle on-call workflows.
Used by [StarSling](https://mastra.ai/blog/starsling)
Templates: [GitHub PR Code Review](https://mastra.ai/templates/github-pr-code-review-agent), [Browser Agent](https://mastra.ai/templates/browsing-agent)
**Sales & GTM workflows**
Turn customer conversations into structured tasks, generate investment memos, or automate outreach sequences.
Used by [Kestral](https://mastra.ai/blog/kestral), [Orange Collective](https://mastra.ai/blog/orange-collective-vc-operating-system), [WorkOS](https://mastra.ai/blog/workos-teaching-mastra)
Templates: [Customer Feedback Summarization](https://mastra.ai/templates/customer-feedback-summarization)
Browse [templates](https://mastra.ai/templates) for working examples.
## Not ready to build yet?
Watch this quick introduction:
[YouTube video player](https://www.youtube-nocookie.com/embed/1qnmnRICX50)