create-loadout 1.0.1 → 1.0.4
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/README.md +76 -9
- package/dist/claude-md.js +504 -333
- package/dist/cli.js +14 -81
- package/dist/create-next.js +1 -1
- package/dist/engine.d.ts +9 -0
- package/dist/engine.js +84 -0
- package/dist/env.js +12 -25
- package/dist/generate-readme.js +123 -120
- package/dist/index.js +156 -1
- package/dist/integrations/index.d.ts +1 -0
- package/dist/integrations/index.js +1 -1
- package/dist/integrations/stripe.js +0 -14
- package/dist/mcp-server.d.ts +2 -0
- package/dist/mcp-server.js +165 -0
- package/dist/metadata.d.ts +18 -0
- package/dist/metadata.js +28 -0
- package/dist/prompts.js +3 -6
- package/dist/templates/firecrawl.js +1 -1
- package/dist/templates/neon-drizzle.js +329 -327
- package/dist/templates/stripe.d.ts +0 -3
- package/dist/templates/stripe.js +0 -130
- package/dist/validate.d.ts +14 -0
- package/dist/validate.js +66 -0
- package/package.json +10 -5
package/README.md
CHANGED
|
@@ -80,7 +80,7 @@ your-app/
|
|
|
80
80
|
| 🔥 | **Firecrawl** | Web scraping service |
|
|
81
81
|
| ⏰ | **Inngest** | Background jobs |
|
|
82
82
|
| 📁 | **UploadThing** | File uploads |
|
|
83
|
-
| 💳 | **Stripe** |
|
|
83
|
+
| 💳 | **Stripe** | Payment service with checkout + billing |
|
|
84
84
|
| 📊 | **PostHog** | Product analytics |
|
|
85
85
|
| 🐛 | **Sentry** | Error tracking |
|
|
86
86
|
|
|
@@ -90,27 +90,94 @@ your-app/
|
|
|
90
90
|
|
|
91
91
|
## How It Works
|
|
92
92
|
|
|
93
|
-
###
|
|
93
|
+
### Interactive Mode
|
|
94
94
|
|
|
95
95
|
```bash
|
|
96
96
|
npx create-loadout
|
|
97
97
|
```
|
|
98
98
|
|
|
99
|
-
|
|
99
|
+
Answer the prompts — project name, integrations, AI provider — and you're done.
|
|
100
100
|
|
|
101
|
-
-
|
|
102
|
-
- Which integrations you need
|
|
103
|
-
- AI provider (if using AI SDK)
|
|
101
|
+
### Non-Interactive Mode
|
|
104
102
|
|
|
105
|
-
|
|
103
|
+
Skip the prompts entirely with CLI flags:
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
npx create-loadout my-app --clerk --neon-drizzle --stripe
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
All available flags:
|
|
110
|
+
|
|
111
|
+
```
|
|
112
|
+
--clerk Clerk authentication
|
|
113
|
+
--neon-drizzle Neon + Drizzle database
|
|
114
|
+
--ai-sdk Vercel AI SDK
|
|
115
|
+
--ai-provider <p> AI provider (openai, anthropic, google)
|
|
116
|
+
--resend Resend email
|
|
117
|
+
--postmark Postmark email
|
|
118
|
+
--firecrawl Firecrawl web scraping
|
|
119
|
+
--inngest Inngest background jobs
|
|
120
|
+
--uploadthing UploadThing file uploads
|
|
121
|
+
--stripe Stripe payments
|
|
122
|
+
--posthog PostHog analytics
|
|
123
|
+
--sentry Sentry error tracking
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
Add integrations to an existing project:
|
|
127
|
+
|
|
128
|
+
```bash
|
|
129
|
+
npx create-loadout --add --posthog --sentry
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
Use a config file:
|
|
133
|
+
|
|
134
|
+
```bash
|
|
135
|
+
npx create-loadout --config loadout.json
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
```json
|
|
139
|
+
{
|
|
140
|
+
"name": "my-app",
|
|
141
|
+
"integrations": ["clerk", "neon-drizzle", "stripe"],
|
|
142
|
+
"aiProvider": "anthropic"
|
|
143
|
+
}
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
List all integrations as JSON:
|
|
147
|
+
|
|
148
|
+
```bash
|
|
149
|
+
npx create-loadout --list
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
### Start Building
|
|
106
153
|
|
|
107
154
|
```bash
|
|
108
155
|
cd your-app
|
|
109
|
-
npm install
|
|
110
156
|
npm run dev
|
|
111
157
|
```
|
|
112
158
|
|
|
113
|
-
|
|
159
|
+
Fill in `.env.local` and you're live.
|
|
160
|
+
|
|
161
|
+
---
|
|
162
|
+
|
|
163
|
+
## MCP Server for Claude Code
|
|
164
|
+
|
|
165
|
+
Loadout ships an MCP server so Claude Code agents can scaffold and extend projects programmatically.
|
|
166
|
+
|
|
167
|
+
### Register
|
|
168
|
+
|
|
169
|
+
```bash
|
|
170
|
+
claude mcp add create-loadout -- npx -y -p create-loadout create-loadout-mcp
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
### Available Tools
|
|
174
|
+
|
|
175
|
+
| Tool | Description |
|
|
176
|
+
|------|-------------|
|
|
177
|
+
| `list_integrations` | List all integrations with metadata, env vars, and constraints |
|
|
178
|
+
| `create_project` | Scaffold a new Next.js project with selected integrations |
|
|
179
|
+
| `add_integrations` | Add integrations to an existing project |
|
|
180
|
+
| `detect_project` | Check if a directory is a Next.js project, list installed/available integrations |
|
|
114
181
|
|
|
115
182
|
---
|
|
116
183
|
|