@getstrata/starter 1.0.0 → 1.0.2

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 CHANGED
@@ -1,25 +1,43 @@
1
- # create-strata
1
+ # @getstrata/starter
2
2
 
3
- Interactive starter for [Strata](https://github.com/EyK-26/strata). The wizard always asks each layer. In a terminal, lists use ↑/↓ and Enter (or a number). Extras (MFA, email verification, SCIM, metrics) are toggled one by one. SQLite APIs and Postgres HTML apps use the same generator.
3
+ The `create-strata` generator for [Strata](https://github.com/EyK-26/strata). Requires Bun (tested on 1.4.x).
4
+
5
+ Prefer the short form, which resolves the [`create-strata`](https://www.npmjs.com/package/create-strata) package:
6
+
7
+ ```bash
8
+ bunx create-strata my-app
9
+ ```
10
+
11
+ This package ships the same generator at the same version and also works directly:
12
+
13
+ ```bash
14
+ bunx @getstrata/starter my-app
15
+ ```
4
16
 
5
17
  ## Usage
6
18
 
7
19
  ```bash
8
20
  bunx create-strata my-app
9
21
  bunx create-strata my-app --yes
10
- bunx create-strata html --frontend server-htmx --database postgres --auth cookie --cache redis --queue redis --docker --yes
22
+ bunx create-strata /tmp/my-app --yes --frontend server-htmx --database postgres --auth cookie --docker
11
23
  ```
12
24
 
13
- Layer flags: `--frontend`, `--database`, `--auth`, `--tenancy`, `--cache`, `--queue`, `--mail`, `--spa-prefix`, plus extras (`--mfa`, `--scim`, `--metrics`, ...).
25
+ A directory path works as well as a bare name; the last path segment becomes the project name.
26
+
27
+ The wizard asks for each layer. In a terminal, lists use up/down and Enter, or a number key. Extras are toggled one at a time, and only the ones that apply to your auth choice are offered. Passing an inapplicable extra as a flag prints a warning and leaves it off, so `--auth headers --mfa` will not write `FEATURE_MFA=true` into an app with no MFA code.
28
+
29
+ Layer flags: `--frontend`, `--database`, `--auth`, `--tenancy`, `--cache`, `--queue`, `--mail`, `--spa-prefix`, plus extras (`--mfa`, `--email-verification`, `--scim`, `--metrics`) and their `--no-` forms.
14
30
 
15
- Pick **one** database engine. Docker Compose is optional and only includes services for the tools you selected (`--docker`, `--no-docker`, `--docker-services=postgres,redis`). `--docker` with Postgres or MySQL also writes Adminer.
31
+ Pick one database engine. Docker Compose is optional (`--docker`, `--no-docker`, `--docker-services=postgres,redis`) and only includes services for the tools you selected. `--docker` with Postgres or MySQL also writes Adminer on port 8080.
16
32
 
17
33
  ## What you get
18
34
 
19
- A Bun + TypeScript app on `@getstrata/core` and `@getstrata/bootstrap` that boots. Cookie apps include a restyleable welcome page, `/login`, `/register`, and password reset. Token apps include `POST /api/v1/auth/login` and register/reset. Tenancy is `none`, `column` (any engine), or `rls` (Postgres). Choices are stored in `strata.layers.json`.
35
+ A Bun and TypeScript app on `@getstrata/core` and `@getstrata/bootstrap` that boots, migrates, and passes `bun run check`. Cookie apps include a restyleable welcome page, `/login`, `/register`, and password reset. Token apps include `POST /api/v1/auth/login` plus register and reset. Tenancy is `none`, `column` (any engine), or `rls` (Postgres only; other engines fall back to `column`). Choices are recorded in `strata.layers.json`.
20
36
 
21
- In-repo examples (`apps/hiroapp-hobby`, `apps/hiroapp-team`, `apps/hiroapp`) are generated from this same script. See [docs/STARTER.md](../../docs/STARTER.md).
37
+ The `strata` binary installs into the app rather than globally, so use the generated `bun run` scripts.
22
38
 
23
- ## Publish
39
+ ## Docs
24
40
 
25
- Released from the strata monorepo on npm as `@getstrata/starter`.
41
+ - [Getting started](https://github.com/EyK-26/strata/blob/main/docs/GETTING-STARTED.md)
42
+ - [Starter and layers](https://github.com/EyK-26/strata/blob/main/docs/STARTER.md)
43
+ - [Building apps](https://github.com/EyK-26/strata/blob/main/docs/BUILDING-APPS.md)