@stratum-hq/create 0.2.3 → 0.3.0

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 ADDED
@@ -0,0 +1,13 @@
1
+ # @stratum-hq/create
2
+
3
+ ## 0.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Security hardening release plus ecosystem polish: NestJS ALS context-leak fix, SSRF-safe webhook validation, production JWT/HKDF enforcement, fail-closed ORM adapters, SHA-pinned CI (#84); `create --preset` architecture with ORM-aware generators and Stack Wizard (#85); scaffolded projects now target Next 15 / React 19 / NestJS 11; MIT LICENSE and READMEs shipped in every package; dependency security bumps across the workspace.
8
+
9
+ ## 0.2.3
10
+
11
+ ### Patch Changes
12
+
13
+ - Security hardening: fix NestJS tenant context leak, SSRF bypass in webhook delivery, RLS session scoping, fail-closed DB adapters, JWT secret hardening, tenant endpoint scoping, Knex INSERT injection, GitHub Actions pinning
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Christian Crank
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,52 @@
1
+ # @stratum-hq/create
2
+
3
+ Scaffold a complete [Stratum](https://github.com/stratum-hq/Stratum) multi-tenancy project with one command — package.json, Docker Compose, environment files, and framework-specific starter code.
4
+
5
+ ## Usage
6
+
7
+ ```bash
8
+ npx @stratum-hq/create my-app
9
+ ```
10
+
11
+ This creates a `my-app/` directory containing:
12
+
13
+ - `package.json` with `@stratum-hq/lib`, `pg`, and your chosen framework
14
+ - `docker-compose.yml` with PostgreSQL 16 and the `ltree` + `uuid-ossp` extensions pre-loaded
15
+ - `.env.example` with `DATABASE_URL` and other defaults
16
+ - A starter server wired up with Stratum middleware
17
+ - `README.md` with getting-started instructions
18
+
19
+ ## Options
20
+
21
+ ```bash
22
+ npx @stratum-hq/create my-app [options]
23
+
24
+ --template <name> express (default), fastify, or nextjs
25
+ --skip-install skip npm install after scaffolding
26
+ --force overwrite an existing directory
27
+ ```
28
+
29
+ ## Templates
30
+
31
+ - **express** (default) — Express server with Stratum middleware, tenant-aware routes, and TypeScript config.
32
+ - **fastify** — Fastify server with the Stratum plugin registered.
33
+ - **nextjs** — Next.js project with edge middleware for tenant resolution and server-side helpers.
34
+
35
+ ## After Scaffolding
36
+
37
+ ```bash
38
+ cd my-app
39
+ docker compose up -d # start PostgreSQL
40
+ npm run dev # run the app
41
+ ```
42
+
43
+ The generated project uses `autoMigrate: true`, so Stratum creates its tables automatically on first run — no separate migration step.
44
+
45
+ ## Links
46
+
47
+ - Documentation: https://docs.stratum-hq.org/packages/create/
48
+ - GitHub: https://github.com/stratum-hq/Stratum
49
+
50
+ ## License
51
+
52
+ MIT © Christian Crank