create-mastra 0.0.0-share-agent-metadata-with-cloud-20250718123411 → 0.0.0-span-scorring-test-20251124132129
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2143 -0
- package/README.md +11 -39
- package/dist/index.js +902 -543
- package/dist/index.js.map +1 -1
- package/dist/starter-files/tools.ts +2 -2
- package/dist/templates/dev.entry.js +10 -43
- package/package.json +24 -16
- package/dist/starter-files/config.ts +0 -25
- package/dist/starter-files/mastra-pg.docker-compose.yaml +0 -15
package/README.md
CHANGED
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
#
|
|
1
|
+
# create-mastra
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Mastra is a framework for building AI-powered applications and agents with a modern TypeScript stack.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
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.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
`create-mastra` is the **recommended** way to get started with Mastra. This CLI tool enables you to quickly start building a new Mastra application, with everything set up for you.
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
> [!IMPORTANT]
|
|
12
|
+
> Make sure that you have Node.js 20 or later installed on your system.
|
|
12
13
|
|
|
13
14
|
Using npm:
|
|
14
15
|
|
|
15
16
|
```bash
|
|
16
|
-
|
|
17
|
+
npx create-mastra@latest
|
|
17
18
|
```
|
|
18
19
|
|
|
19
20
|
Using yarn:
|
|
20
21
|
|
|
21
22
|
```bash
|
|
22
|
-
yarn create
|
|
23
|
+
yarn dlx create-mastra@latest
|
|
23
24
|
```
|
|
24
25
|
|
|
25
26
|
Using pnpm:
|
|
@@ -28,33 +29,4 @@ Using pnpm:
|
|
|
28
29
|
pnpm create mastra
|
|
29
30
|
```
|
|
30
31
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
- `--default` - Quick start with defaults (src directory, OpenAI, no examples)
|
|
34
|
-
- `-c, --components <components>` - Comma-separated list of components (agents, tools, workflows)
|
|
35
|
-
- `-l, --llm <model-provider>` - Default model provider (openai, anthropic, groq, google, or cerebras)
|
|
36
|
-
- `-e, --example` - Include example code
|
|
37
|
-
|
|
38
|
-
## Examples
|
|
39
|
-
|
|
40
|
-
Create a new project with default settings
|
|
41
|
-
npx create-mastra@latest --default
|
|
42
|
-
Create a project with specific components and LLM provider
|
|
43
|
-
npx create-mastra@latest -c agents,tools -l anthropic
|
|
44
|
-
Create a project with example code
|
|
45
|
-
npx create-mastra@latest --example
|
|
46
|
-
|
|
47
|
-
## What's included?
|
|
48
|
-
|
|
49
|
-
The generated project will have:
|
|
50
|
-
|
|
51
|
-
- A configured Mastra setup in the src directory
|
|
52
|
-
- Selected components (agents, tools, workflows)
|
|
53
|
-
- Environment configuration for your chosen LLM provider
|
|
54
|
-
- TypeScript configuration
|
|
55
|
-
- Example code (if selected)
|
|
56
|
-
|
|
57
|
-
## System Requirements
|
|
58
|
-
|
|
59
|
-
- Node.js 20 or later
|
|
60
|
-
- MacOS, Windows, and Linux are supported
|
|
32
|
+
Learn more about `create-mastra` in the [CLI reference documentation](https://mastra.ai/reference/cli/create-mastra).
|