@crossdelta/platform-sdk 0.4.1 → 0.4.3
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 +26 -24
- package/bin/cli.js +69 -69
- package/bin/templates/workspace/.github/actions/resolve-scope-tags/index.js +7 -9
- package/bin/templates/workspace/.github/workflows/build-and-deploy.yml.hbs +1 -0
- package/bin/templates/workspace/services/nats/README.md +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -40,14 +40,14 @@ Building microservice platforms is hard. You start with great intentions, but co
|
|
|
40
40
|
- **Environment hell** — `.env` files manually maintained, ports collide, services don't talk
|
|
41
41
|
- **Slow onboarding** — new developers spend days setting up the platform
|
|
42
42
|
|
|
43
|
-
**`pf`
|
|
43
|
+
**`pf` is an opinionated CLI for platform engineering.** It helps you:
|
|
44
44
|
|
|
45
|
-
-
|
|
46
|
-
-
|
|
47
|
-
- Auto-
|
|
48
|
-
-
|
|
45
|
+
- Scaffold monorepos with consistent structure and tooling
|
|
46
|
+
- Generate microservices (manually or AI-assisted) with shared conventions
|
|
47
|
+
- Auto-configure infrastructure, environment variables, and port assignments
|
|
48
|
+
- Run all services locally with a single command
|
|
49
49
|
|
|
50
|
-
Built for teams using **Turborepo + Pulumi + NATS + Bun
|
|
50
|
+
Built for teams using **Turborepo + Pulumi + NATS + Bun**.
|
|
51
51
|
|
|
52
52
|
<br />
|
|
53
53
|
|
|
@@ -59,16 +59,16 @@ Built for teams using **Turborepo + Pulumi + NATS + Bun** who want to move fast
|
|
|
59
59
|
|
|
60
60
|
- **Opinionated CLI** for event-driven microservice platforms
|
|
61
61
|
- **Turborepo scaffolder** with Pulumi IaC and NATS messaging built-in
|
|
62
|
-
- **AI-
|
|
63
|
-
- **Unified dev workflow** — one command to
|
|
62
|
+
- **AI-assisted code generator** that creates service boilerplate from descriptions
|
|
63
|
+
- **Unified dev workflow** — one command to run all services (`bun dev`)
|
|
64
64
|
- **DigitalOcean-first** deployment target (App Platform + DOKS)
|
|
65
65
|
|
|
66
66
|
### ❌ `pf` is not:
|
|
67
67
|
|
|
68
|
-
- **
|
|
69
|
-
- **
|
|
70
|
-
- **
|
|
71
|
-
- **
|
|
68
|
+
- **Generic microservice generator** — makes architectural choices for you
|
|
69
|
+
- **Cloud-agnostic** (yet) — DigitalOcean first, AWS/GCP planned
|
|
70
|
+
- **Runtime manager** — scaffolds code, you deploy with Pulumi
|
|
71
|
+
- **Kubernetes replacement** — generates K8s configs via Pulumi
|
|
72
72
|
|
|
73
73
|
<br />
|
|
74
74
|
|
|
@@ -233,12 +233,12 @@ You're building a new product from scratch and want to establish a solid foundat
|
|
|
233
233
|
|
|
234
234
|
```bash
|
|
235
235
|
# Step 1: Scaffold the workspace
|
|
236
|
-
bunx @crossdelta/platform-sdk new workspace
|
|
237
|
-
--github-owner
|
|
236
|
+
bunx @crossdelta/platform-sdk new workspace my-platform-platform \
|
|
237
|
+
--github-owner my-platform \
|
|
238
238
|
--pulumi-stack dev \
|
|
239
239
|
-y
|
|
240
240
|
|
|
241
|
-
cd
|
|
241
|
+
cd my-platform-platform
|
|
242
242
|
|
|
243
243
|
# Step 2: Configure infrastructure (optional)
|
|
244
244
|
# Edit infra/config.ts to customize:
|
|
@@ -283,30 +283,32 @@ pf new hono-micro services/payments -y
|
|
|
283
283
|
bun dev
|
|
284
284
|
```
|
|
285
285
|
|
|
286
|
-
**Option B: AI-powered generation (intelligent
|
|
286
|
+
**Option B: AI-powered generation (intelligent scaffolding)**
|
|
287
287
|
|
|
288
288
|
```bash
|
|
289
289
|
# First time: configure AI provider
|
|
290
290
|
pf setup --ai
|
|
291
291
|
|
|
292
|
-
# Generate
|
|
292
|
+
# Generate service boilerplate with AI
|
|
293
293
|
pf new hono-micro services/payments --ai \
|
|
294
294
|
-d "Stripe payment processing: handle checkout.session.completed webhooks, \
|
|
295
295
|
publish payment.succeeded events, update order status in database"
|
|
296
296
|
|
|
297
297
|
# AI generates:
|
|
298
|
-
# ✅
|
|
299
|
-
# ✅ Event
|
|
300
|
-
# ✅ Event
|
|
301
|
-
# ✅ Use
|
|
302
|
-
# ✅ Test
|
|
298
|
+
# ✅ Service structure with Stripe SDK integration
|
|
299
|
+
# ✅ Event handler stubs for incoming webhooks
|
|
300
|
+
# ✅ Event publisher functions for payment lifecycle
|
|
301
|
+
# ✅ Use case templates with validation logic
|
|
302
|
+
# ✅ Test file boilerplate
|
|
303
303
|
# ✅ Environment variable documentation
|
|
304
|
-
# ✅
|
|
304
|
+
# ✅ Basic README with usage examples
|
|
305
305
|
```
|
|
306
306
|
|
|
307
307
|
**When to use which:**
|
|
308
308
|
- **Manual scaffolding:** You know exactly what you're building, want full control
|
|
309
|
-
- **AI generation:**
|
|
309
|
+
- **AI generation:** Quick prototyping, exploring new integrations, generating boilerplate faster
|
|
310
|
+
|
|
311
|
+
**Note:** AI-generated code is a starting point, not production-ready. Always review and refine.
|
|
310
312
|
|
|
311
313
|
---
|
|
312
314
|
|