@getstrata/starter
v0.1.4
Published
Scaffold a new Strata app — bun create strata
Readme
create-strata
Scaffold a new Strata application.
Usage
bunx @getstrata/starter my-app
# or after install: bunx create-strata my-appWhat you get
- Bun + TypeScript app using
@getstrata/coreand@getstrata/bootstrap - Postgres via Docker Compose (no WorkHub
tenanttable; setTENANCY_DRIVER=none) - Eta templates, simple router, health check
strata migrate/strata migrate:freshandstrata devvia@getstrata/cli
Environment
Copy .env.example to .env. The scaffold is an API app without a tenant table:
| Variable | Local default | Notes |
|----------|---------------|--------|
| TENANCY_DRIVER | none | Skip Postgres RLS / tenant lookups |
| FRONTEND_MODE | api | Use server-htmx only if you add cookie sessions |
| SESSION_SECRET | unset | Required in production when FRONTEND_MODE=server-htmx |
| TRUST_FORWARDED_FOR | unset | Set true only behind a trusted reverse proxy |
| METRICS_TOKEN | unset | Required in production to expose GET /metrics |
| FEATURE_PUBLIC_READS | unset | Set false in production |
createAppContext() does not call assertProductionSecrets(). That helper is WorkHub-oriented (API tokens, Stripe, SCIM). Starter apps do not call it; add it if you enable those features.
Publish
Released from the strata monorepo on npm as @getstrata/starter.
