create-fs-app 3.0.0 → 3.1.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/README.md CHANGED
@@ -1,14 +1,19 @@
1
1
  <div align="center">
2
- <img src="./assets/logo-no-bg.png" alt="create-fs-app" width="500"/>
2
+ <img src="https://raw.githubusercontent.com/Om-jannu/create-fs-app/master/assets/banner.png" alt="create-fs-app: the triangle logo, the wordmark and the tagline &quot;Stop configuring. Start building.&quot;, beside a hatched column of the five project layers" width="1200"/>
3
3
 
4
4
  **Stop configuring. Start building.**
5
5
 
6
- Production-ready full-stack monorepo in 60 seconds.
6
+ A frontend, a backend and a database, wired together from one command.
7
7
 
8
8
  [![npm version](https://img.shields.io/npm/v/create-fs-app.svg)](https://www.npmjs.com/package/create-fs-app)
9
9
  [![npm downloads](https://img.shields.io/npm/dm/create-fs-app.svg)](https://www.npmjs.com/package/create-fs-app)
10
10
  [![License: ISC](https://img.shields.io/npm/l/create-fs-app.svg)](https://opensource.org/licenses/ISC)
11
- [![Node.js ≥20.19](https://img.shields.io/badge/node-%3E%3D20.19-brightgreen)](https://nodejs.org)
11
+ [![Node.js ^20.19 || ^22.12 || >=24](https://img.shields.io/badge/node-%5E20.19%20%7C%7C%20%5E22.12%20%7C%7C%20%3E%3D24-brightgreen)](https://nodejs.org)
12
+
13
+ <img src="https://raw.githubusercontent.com/Om-jannu/create-fs-app/master/assets/command-run.png" alt="create-fs-app in a terminal: the success screen with the project ready, the layer log of apps and packages with versions and ports, and the next steps" width="800"/>
14
+
15
+ <!-- Maintainer: to play the video inline on GitHub, edit README.md on github.com, drag assets/create-fs-app.mp4 into the editor and replace the link below with the user-attachments URL that GitHub inserts. -->
16
+ ▶ [Watch the launch video (36 s)](https://github.com/Om-jannu/create-fs-app/blob/master/assets/create-fs-app.mp4)
12
17
  </div>
13
18
 
14
19
  ---
@@ -55,6 +60,8 @@ npx create-fs-app@latest my-app --preset saas-starter
55
60
 
56
61
  Use `npx create-fs-app@latest` to always get the newest CLI; it does not check for updates itself.
57
62
 
63
+ > **Windows:** the commands in this README are written for a POSIX shell (bash, zsh, Git Bash, WSL). In PowerShell, put each command on one line (or end a line with a backtick instead of `\`) and use `curl.exe` instead of `curl`.
64
+
58
65
  ---
59
66
 
60
67
  ## Interactive Wizard
@@ -80,11 +87,11 @@ Each choice has a short hint next to it. Stack hints come from the template regi
80
87
 
81
88
  The wizard ends with a **Review** step: the layer log of the project (each app and package, its framework version and port) plus your extras, auth and install choice. Then pick **Create project**, **Change an answer** (choose the answer to change; later stack answers that no longer fit are asked again) or **Cancel**. Ctrl+C prints `Cancelled` and exits without writing anything.
82
89
 
83
- ```
84
- demo Turborepo · npm · node ≥20.19
90
+ ```text
91
+ demo Turborepo · npm · node ^20.19.0 || ^22.12.0 || >=24.0.0
85
92
  ├─ apps/frontend Next.js 16 :3000 App Router · Tailwind CSS 4
86
93
  ├─ packages/* eslint-config · typescript-config
87
- ├─ apps/backend NestJS 11 :3001 REST · Swagger /api
94
+ ├─ apps/backend NestJS 12 :3001 Swagger · rate limit
88
95
  ├─ apps/backend/prisma Prisma 7 schema · migrations
89
96
  └─ database PostgreSQL 16 :5432 docker compose
90
97
  ```
@@ -138,7 +145,7 @@ You do not need to pass a field that has only one possible value: `--frontend vu
138
145
  - **With `--yes`:** missing values get defaults (Next.js, NestJS, PostgreSQL, Prisma when available, otherwise the first value that fits).
139
146
  - **Without a terminal (CI, scripts, piped input) and without `--yes`:** the CLI exits with code 1, lists the missing flags and their values, and suggests the `--yes` defaults:
140
147
 
141
- ```
148
+ ```text
142
149
  ✗ Missing required options: --backend, --database, --orm
143
150
  No terminal to ask in.
144
151
  --backend nest.js, express, hono, fastify
@@ -149,7 +156,7 @@ You do not need to pass a field that has only one possible value: `--frontend vu
149
156
 
150
157
  - **A value without a template** exits with code 1 and names the values that fit:
151
158
 
152
- ```
159
+ ```text
153
160
  ✗ No template for Vue + NestJS
154
161
  Vue works with: express
155
162
  Try: --backend express
@@ -161,25 +168,27 @@ The CLI never prompts when stdin or stdout is not a terminal, or when the `CI` e
161
168
 
162
169
  ## Official Templates
163
170
 
164
- Official templates live in [`templates/`](./templates) of this repository and are built in CI on Node 20, 22 and 24. Every template is a Turborepo with `apps/frontend`, `apps/backend` and shared `packages/{eslint-config,typescript-config}`, written in strict TypeScript with Tailwind CSS v4.
171
+ Official templates live in [`templates/`](https://github.com/Om-jannu/create-fs-app/tree/master/templates) of this repository and are built and tested in CI on Node 20, 22 and 24. Every template is a Turborepo with `apps/frontend`, `apps/backend` and shared `packages/{eslint-config,typescript-config}`, written in strict TypeScript with Tailwind CSS v4.
165
172
 
166
173
  | Template | Stack |
167
174
  |----------|-------|
168
- | `turborepo-nextjs-nestjs-postgresql-prisma` | Next.js 16 + NestJS 11 + PostgreSQL 16 + Prisma 7 |
169
- | `turborepo-nextjs-nestjs-mongodb-mongoose` | Next.js 16 + NestJS 11 + MongoDB 7 + Mongoose 8 |
170
- | `turborepo-nextjs-express-postgresql-prisma` | Next.js 16 + Express 4 + PostgreSQL 16 + Prisma 7 |
171
- | `turborepo-nextjs-express-mongodb-mongoose` | Next.js 16 + Express 4 + MongoDB 7 + Mongoose 8 |
172
- | `turborepo-nextjs-express-sqlite-drizzle` | Next.js 16 + Express 4 + SQLite (libSQL) + Drizzle (no Docker or database setup) |
175
+ | `turborepo-nextjs-nestjs-postgresql-prisma` | Next.js 16 + NestJS 12 + PostgreSQL 16 + Prisma 7 |
176
+ | `turborepo-nextjs-nestjs-mongodb-mongoose` | Next.js 16 + NestJS 12 + MongoDB 7 + Mongoose 9 |
177
+ | `turborepo-nextjs-express-postgresql-prisma` | Next.js 16 + Express 5 + PostgreSQL 16 + Prisma 7 |
178
+ | `turborepo-nextjs-express-mongodb-mongoose` | Next.js 16 + Express 5 + MongoDB 7 + Mongoose 9 |
179
+ | `turborepo-nextjs-express-sqlite-drizzle` | Next.js 16 + Express 5 + SQLite (libSQL) + Drizzle (no Docker or database setup) |
173
180
  | `turborepo-nextjs-hono-postgresql-drizzle` | Next.js 16 + Hono 4 + PostgreSQL 16 + Drizzle |
174
181
  | `turborepo-nextjs-fastify-postgresql-prisma` | Next.js 16 + Fastify 5 + PostgreSQL 16 + Prisma 7 |
175
- | `turborepo-react-nestjs-postgresql-prisma` | React 19 (Vite) + NestJS 11 + PostgreSQL 16 + Prisma 7 |
176
- | `turborepo-react-nestjs-mongodb-mongoose` | React 19 (Vite) + NestJS 11 + MongoDB 7 + Mongoose 8 |
177
- | `turborepo-react-express-postgresql-prisma` | React 19 (Vite) + Express 4 + PostgreSQL 16 + Prisma 7 |
178
- | `turborepo-react-express-mongodb-mongoose` | React 19 (Vite) + Express 4 + MongoDB 7 + Mongoose 8 |
179
- | `turborepo-vue-express-postgresql-prisma` | Vue 3 (Vite) + Express 4 + PostgreSQL 16 + Prisma 7 |
182
+ | `turborepo-react-nestjs-postgresql-prisma` | React 19 (Vite) + NestJS 12 + PostgreSQL 16 + Prisma 7 |
183
+ | `turborepo-react-nestjs-mongodb-mongoose` | React 19 (Vite) + NestJS 12 + MongoDB 7 + Mongoose 9 |
184
+ | `turborepo-react-express-postgresql-prisma` | React 19 (Vite) + Express 5 + PostgreSQL 16 + Prisma 7 |
185
+ | `turborepo-react-express-mongodb-mongoose` | React 19 (Vite) + Express 5 + MongoDB 7 + Mongoose 9 |
186
+ | `turborepo-vue-express-postgresql-prisma` | Vue 3 (Vite) + Express 5 + PostgreSQL 16 + Prisma 7 |
180
187
 
181
188
  PostgreSQL and MongoDB templates include a `docker-compose.yml` for the database and a Dockerfile for each app (`apps/frontend`, `apps/backend`) that builds from the project root after you install dependencies (the image installs from your npm, pnpm or yarn lockfile). The SQLite template stores data in `apps/backend/dev.db` and applies its migrations on startup, so `npm run dev` works right away.
182
189
 
190
+ Every generated project includes Vitest tests for the frontend and the backend that need no running database; run them with `npm run test` (Turborepo runs `test` in each app).
191
+
183
192
  ```bash
184
193
  npx create-fs-app@latest list # all official templates
185
194
  npx create-fs-app@latest list prisma # keyword search
@@ -221,7 +230,7 @@ npx create-fs-app@latest list --contributed # shows UUID and contr
221
230
  npx create-fs-app@latest my-app --template <uuid> # scaffold one
222
231
  ```
223
232
 
224
- To add a template, see [templates/CONTRIBUTING.md](./templates/CONTRIBUTING.md).
233
+ To add a template, see [templates/CONTRIBUTING.md](https://github.com/Om-jannu/create-fs-app/blob/master/templates/CONTRIBUTING.md).
225
234
 
226
235
  ### Any GitHub repository
227
236
 
@@ -232,13 +241,13 @@ npx create-fs-app@latest my-app --template-url https://github.com/owner/repo/tre
232
241
 
233
242
  The CLI downloads the repository as a tarball (no git needed). A URL without `/tree/<branch>` uses the repository's default branch. For custom templates the CLI only sets the root package name and `packageManager`, replaces `{{PROJECT_NAME}}`, applies the pnpm workspace settings for `--package-manager pnpm`, and adds CI with `--ci`. `--auth jwt`, `--no-eslint`, `--no-prettier` and `--no-docker` are not applied to custom templates (the CLI warns).
234
243
 
235
- > create-fs-app 2.x reads its templates from the old `create-fs-app-templates` repository. 3.x reads them from [`templates/`](./templates) of this repository.
244
+ > create-fs-app 2.x reads its templates from the old `create-fs-app-templates` repository. 3.x reads them from [`templates/`](https://github.com/Om-jannu/create-fs-app/tree/master/templates) of this repository.
236
245
 
237
246
  ---
238
247
 
239
248
  ## All CLI Options
240
249
 
241
- ```
250
+ ```text
242
251
  npx create-fs-app@latest [name] [options]
243
252
 
244
253
  Template source
@@ -278,7 +287,7 @@ Behavior
278
287
 
279
288
  When one of its checks fails (an unavailable option, an invalid name, a missing template, a failed download), the CLI prints what failed, why, and what to try, and exits with code 1 (set `DEBUG=1` for the stack trace):
280
289
 
281
- ```
290
+ ```text
282
291
  ✗ --auth jwt is not available for hono
283
292
  JWT auth works with: nest.js, express
284
293
  Try: --auth none
@@ -363,7 +372,7 @@ npx create-fs-app@latest preset delete <name>
363
372
  npx create-fs-app@latest health
364
373
  ```
365
374
 
366
- Required: **Node.js ≥ 20.19** and **npm**. Optional: **git** (only needed for `git init`), **Docker** (binary and daemon), **pnpm**, **yarn**. Exits with code 1 only when a required tool is missing.
375
+ Required: **Node.js 20.19+, 22.12+ or 24+** and **npm**. Optional: **git** (only needed for `git init`), **Docker** (binary and daemon), **pnpm**, **yarn**. Exits with code 1 only when a required tool is missing.
367
376
 
368
377
  ### `cache <subcommand>`
369
378
 
@@ -415,7 +424,7 @@ create-fs-app my-app \
415
424
 
416
425
  | Tool | Version |
417
426
  |------|---------|
418
- | Node.js | **20.19.0** or newer |
427
+ | Node.js | **20.19+**, **22.12+** or **24+** (Node.js 21 and 23 are not supported) |
419
428
  | npm, pnpm or yarn | npm comes with Node.js |
420
429
  | git | optional, only for `git init` in the new project |
421
430
  | Docker | optional, runs the database of the generated project and builds its app images |
@@ -424,21 +433,21 @@ create-fs-app my-app \
424
433
 
425
434
  ## Contributing
426
435
 
427
- See **[CONTRIBUTING.md](./CONTRIBUTING.md)** for:
436
+ See **[CONTRIBUTING.md](https://github.com/Om-jannu/create-fs-app/blob/master/CONTRIBUTING.md)** for:
428
437
 
429
438
  - Reporting bugs and requesting features
430
439
  - Development environment setup, tests and the template e2e script
431
440
  - Pull request process and code standards
432
441
  - How to add a template
433
442
 
434
- Please also read our **[Code of Conduct](./CODE_OF_CONDUCT.md)**.
443
+ Please also read our **[Code of Conduct](https://github.com/Om-jannu/create-fs-app/blob/master/CODE_OF_CONDUCT.md)**.
435
444
 
436
- Found a security issue? See **[SECURITY.md](./SECURITY.md)** and please don't open a public issue for vulnerabilities.
445
+ Found a security issue? See **[SECURITY.md](https://github.com/Om-jannu/create-fs-app/blob/master/SECURITY.md)** and please don't open a public issue for vulnerabilities.
437
446
 
438
- See **[CHANGELOG.md](./CHANGELOG.md)** for release history.
447
+ See **[CHANGELOG.md](https://github.com/Om-jannu/create-fs-app/blob/master/CHANGELOG.md)** for release history.
439
448
 
440
449
  ---
441
450
 
442
451
  ## License
443
452
 
444
- ISC © [Om-jannu](https://github.com/Om-jannu) — see **[LICENSE](./LICENSE)**.
453
+ ISC © [Om-jannu](https://github.com/Om-jannu) — see **[LICENSE](https://github.com/Om-jannu/create-fs-app/blob/master/LICENSE)**.
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * The layer log: where each layer of a template lives and what it runs.
3
3
  *
4
- * <title> <monorepo> · <pm> · node ≥<node>
4
+ * <title> <monorepo> · <pm> · node ≥<node> (facts on a second line if too wide)
5
5
  * ├─ <frontend path> <name> <version> :<port> <notes · …>
6
6
  * ├─ packages/* <notes · …>
7
7
  * ├─ <backend path> <name> <version> :<port> <notes · …>
@@ -76,9 +76,13 @@ export function renderLayerLog(input, theme, width = 80) {
76
76
  template.node ? `node ${nodeRange(template.node, glyphs.ge)}` : undefined,
77
77
  ].filter((v) => Boolean(v));
78
78
  const headerPlain = ` ${input.title}${facts.length ? ` ${facts.join(sep)}` : ''}`;
79
+ // Too wide for one line (long title or Node range): the facts go on their own line
79
80
  const header = visibleWidth(headerPlain) <= width
80
81
  ? ` ${theme.bold(input.title)}${facts.length ? ` ${theme.dim(facts.join(sep))}` : ''}`
81
- : ` ${theme.bold(truncate(input.title, Math.max(1, width - 2), glyphs.ellipsis))}`;
82
+ : [
83
+ ` ${theme.bold(truncate(input.title, Math.max(1, width - 2), glyphs.ellipsis))}`,
84
+ ...(facts.length ? [` ${theme.dim(truncate(facts.join(sep), Math.max(1, width - 2), glyphs.ellipsis))}`] : []),
85
+ ].join('\n');
82
86
  const rows = layerRows(template, { docker: input.docker, auth: input.auth });
83
87
  const columns = rows.filter(r => !r.span);
84
88
  const pathWidth = Math.max(...rows.map(r => visibleWidth(r.path)));
@@ -271,7 +271,7 @@ const loginLimiter = rateLimit({
271
271
  message: { message: 'Too many login attempts, please try again later.' },
272
272
  });
273
273
 
274
- // Express 4 does not catch rejected promises: pass errors to the error handler
274
+ // Pass errors to the error handler (app.use(errorHandler) in src/app.ts)
275
275
  authRouter.post('/login', loginLimiter, async (req, res, next) => {
276
276
  try {
277
277
  const { email, password } = LoginSchema.parse(req.body);
@@ -306,7 +306,7 @@ function planFor(backend) {
306
306
  ...SHARED_FILES,
307
307
  },
308
308
  // The official templates already have @nestjs/throttler; the login route's @Throttle needs it
309
- dependencies: { '@nestjs/jwt': '^11.0.2', '@nestjs/throttler': '^6.8.0' },
309
+ dependencies: { '@nestjs/jwt': '^12.0.5', '@nestjs/throttler': '^6.8.0' },
310
310
  devDependencies: {},
311
311
  };
312
312
  }
@@ -42,15 +42,19 @@ export function displayHealthCheckResults(result) {
42
42
  }
43
43
  }
44
44
  // ── Individual checks ─────────────────────────────────────────────────────────
45
+ /** Same rule as the guard in src/index.ts and engines.node: ^20.19.0 || ^22.12.0 || >=24.0.0. */
46
+ export function isSupportedNode(version) {
47
+ const [major = 0, minor = 0] = version.replace(/^v/, '').split('.').map(Number);
48
+ return (major === 20 && minor >= 19) || (major === 22 && minor >= 12) || major >= 24;
49
+ }
45
50
  /** The Node.js running the CLI is the one that matters. */
46
51
  async function checkNode() {
47
52
  const raw = process.version; // e.g. "v20.19.0"
48
- const [major = 0, minor = 0] = raw.slice(1).split('.').map(Number);
49
- const ok = major > 20 || (major === 20 && minor >= 19);
53
+ const ok = isSupportedNode(raw);
50
54
  return {
51
55
  name: 'Node.js',
52
56
  passed: ok,
53
- message: `${raw} detected${ok ? '' : ' (v20.19+ required)'}`,
57
+ message: `${raw} detected${ok ? '' : ' (v20.19+, v22.12+ or v24+ required)'}`,
54
58
  suggestion: ok ? undefined : 'Download from https://nodejs.org (LTS recommended)',
55
59
  };
56
60
  }
@@ -6,11 +6,12 @@
6
6
  "official": {
7
7
  "turborepo-nextjs-nestjs-postgresql-prisma": {
8
8
  "id": "e5f7cc74-816b-4b24-819b-b7478a917ac1",
9
- "description": "Next.js 16 App Router + NestJS 11 REST API + PostgreSQL 16 + Prisma 7",
9
+ "description": "Next.js 16 App Router + NestJS 12 REST API + PostgreSQL 16 + Prisma 7",
10
10
  "features": [
11
11
  "Turborepo monorepo",
12
12
  "Next.js 16 (App Router, Tailwind CSS v4)",
13
- "NestJS 11 — modular, decorators, DI",
13
+ "NestJS 12 — modular, decorators, DI",
14
+ "Rate limiting per client IP (@nestjs/throttler)",
14
15
  "Swagger / OpenAPI docs at /api",
15
16
  "Prisma 7 ORM + migrations",
16
17
  "PostgreSQL 16 via Docker Compose",
@@ -29,7 +30,7 @@
29
30
  "docker": true,
30
31
  "turbopack": true
31
32
  },
32
- "node": ">=20.19.0",
33
+ "node": "^20.19.0 || ^22.12.0 || >=24.0.0",
33
34
  "layers": {
34
35
  "frontend": {
35
36
  "path": "apps/frontend",
@@ -53,11 +54,11 @@
53
54
  "path": "apps/backend",
54
55
  "name": "NestJS",
55
56
  "package": "@nestjs/core",
56
- "version": "11",
57
+ "version": "12",
57
58
  "port": 3001,
58
59
  "notes": [
59
- "REST",
60
- "Swagger /api"
60
+ "Swagger",
61
+ "rate limit"
61
62
  ]
62
63
  },
63
64
  "orm": {
@@ -79,11 +80,12 @@
79
80
  },
80
81
  "turborepo-nextjs-express-postgresql-prisma": {
81
82
  "id": "76af68d4-de73-4859-bc6a-2023a0850f17",
82
- "description": "Next.js 16 App Router + Express 4 REST API + PostgreSQL 16 + Prisma 7",
83
+ "description": "Next.js 16 App Router + Express 5 REST API + PostgreSQL 16 + Prisma 7",
83
84
  "features": [
84
85
  "Turborepo monorepo",
85
86
  "Next.js 16 (App Router, Tailwind CSS v4)",
86
- "Express 4 — lightweight, flexible",
87
+ "Express 5 — lightweight, flexible",
88
+ "Rate limiting per client IP (express-rate-limit)",
87
89
  "Zod request validation",
88
90
  "Prisma 7 ORM + migrations",
89
91
  "PostgreSQL 16 via Docker Compose",
@@ -102,7 +104,7 @@
102
104
  "docker": true,
103
105
  "turbopack": true
104
106
  },
105
- "node": ">=20.19.0",
107
+ "node": "^20.19.0 || ^22.12.0 || >=24.0.0",
106
108
  "layers": {
107
109
  "frontend": {
108
110
  "path": "apps/frontend",
@@ -126,11 +128,11 @@
126
128
  "path": "apps/backend",
127
129
  "name": "Express",
128
130
  "package": "express",
129
- "version": "4",
131
+ "version": "5",
130
132
  "port": 3001,
131
133
  "notes": [
132
- "REST",
133
- "Zod validation"
134
+ "Zod",
135
+ "rate limit"
134
136
  ]
135
137
  },
136
138
  "orm": {
@@ -152,14 +154,15 @@
152
154
  },
153
155
  "turborepo-react-express-mongodb-mongoose": {
154
156
  "id": "42df82b4-6bba-45ee-85c4-92786438cc12",
155
- "description": "React 19 (Vite) SPA + Express 4 REST API + MongoDB 7 + Mongoose 8",
157
+ "description": "React 19 (Vite) SPA + Express 5 REST API + MongoDB 7 + Mongoose 9",
156
158
  "features": [
157
159
  "Turborepo monorepo",
158
160
  "React 19 + Vite — fast HMR, SPA",
159
161
  "Tailwind CSS v4 via Vite plugin",
160
- "Express 4 — lightweight, flexible",
162
+ "Express 5 — lightweight, flexible",
163
+ "Rate limiting per client IP (express-rate-limit)",
161
164
  "Zod request validation",
162
- "Mongoose 8 ODM + schema models",
165
+ "Mongoose 9 ODM + schema models",
163
166
  "MongoDB 7 via Docker Compose",
164
167
  "TypeScript strict — ESLint + Prettier"
165
168
  ],
@@ -176,7 +179,7 @@
176
179
  "docker": true,
177
180
  "turbopack": false
178
181
  },
179
- "node": ">=20.19.0",
182
+ "node": "^20.19.0 || ^22.12.0 || >=24.0.0",
180
183
  "layers": {
181
184
  "frontend": {
182
185
  "path": "apps/frontend",
@@ -200,18 +203,18 @@
200
203
  "path": "apps/backend",
201
204
  "name": "Express",
202
205
  "package": "express",
203
- "version": "4",
206
+ "version": "5",
204
207
  "port": 3001,
205
208
  "notes": [
206
- "REST",
207
- "Zod validation"
209
+ "Zod",
210
+ "rate limit"
208
211
  ]
209
212
  },
210
213
  "orm": {
211
214
  "path": "apps/backend/src/models",
212
215
  "name": "Mongoose",
213
216
  "package": "mongoose",
214
- "version": "8",
217
+ "version": "9",
215
218
  "notes": [
216
219
  "schemas",
217
220
  "timestamps"
@@ -226,13 +229,14 @@
226
229
  },
227
230
  "turborepo-nextjs-express-mongodb-mongoose": {
228
231
  "id": "869feb63-68b9-491f-9811-c9f2294549e9",
229
- "description": "Next.js 16 App Router + Express 4 REST API + MongoDB 7 + Mongoose 8",
232
+ "description": "Next.js 16 App Router + Express 5 REST API + MongoDB 7 + Mongoose 9",
230
233
  "features": [
231
234
  "Turborepo monorepo",
232
235
  "Next.js 16 (App Router, Tailwind CSS v4)",
233
- "Express 4 — lightweight, flexible",
236
+ "Express 5 — lightweight, flexible",
237
+ "Rate limiting per client IP (express-rate-limit)",
234
238
  "Zod request validation",
235
- "Mongoose 8 ODM + schema models",
239
+ "Mongoose 9 ODM + schema models",
236
240
  "MongoDB 7 via Docker Compose",
237
241
  "TypeScript strict — ESLint + Prettier"
238
242
  ],
@@ -249,7 +253,7 @@
249
253
  "docker": true,
250
254
  "turbopack": true
251
255
  },
252
- "node": ">=20.19.0",
256
+ "node": "^20.19.0 || ^22.12.0 || >=24.0.0",
253
257
  "layers": {
254
258
  "frontend": {
255
259
  "path": "apps/frontend",
@@ -273,18 +277,18 @@
273
277
  "path": "apps/backend",
274
278
  "name": "Express",
275
279
  "package": "express",
276
- "version": "4",
280
+ "version": "5",
277
281
  "port": 3001,
278
282
  "notes": [
279
- "REST",
280
- "Zod validation"
283
+ "Zod",
284
+ "rate limit"
281
285
  ]
282
286
  },
283
287
  "orm": {
284
288
  "path": "apps/backend/src/models",
285
289
  "name": "Mongoose",
286
290
  "package": "mongoose",
287
- "version": "8",
291
+ "version": "9",
288
292
  "notes": [
289
293
  "schemas",
290
294
  "timestamps"
@@ -299,11 +303,12 @@
299
303
  },
300
304
  "turborepo-nextjs-nestjs-mongodb-mongoose": {
301
305
  "id": "5c739c25-6249-4415-808b-2dc305b8cc3a",
302
- "description": "Next.js 16 App Router + NestJS 11 REST API + MongoDB 7 + Mongoose 8",
306
+ "description": "Next.js 16 App Router + NestJS 12 REST API + MongoDB 7 + Mongoose 9",
303
307
  "features": [
304
308
  "Turborepo monorepo",
305
309
  "Next.js 16 (App Router, Tailwind CSS v4)",
306
- "NestJS 11 — modular, decorators, DI",
310
+ "NestJS 12 — modular, decorators, DI",
311
+ "Rate limiting per client IP (@nestjs/throttler)",
307
312
  "Swagger / OpenAPI docs at /api",
308
313
  "@nestjs/mongoose — schema decorators",
309
314
  "MongoDB 7 via Docker Compose",
@@ -322,7 +327,7 @@
322
327
  "docker": true,
323
328
  "turbopack": true
324
329
  },
325
- "node": ">=20.19.0",
330
+ "node": "^20.19.0 || ^22.12.0 || >=24.0.0",
326
331
  "layers": {
327
332
  "frontend": {
328
333
  "path": "apps/frontend",
@@ -346,18 +351,18 @@
346
351
  "path": "apps/backend",
347
352
  "name": "NestJS",
348
353
  "package": "@nestjs/core",
349
- "version": "11",
354
+ "version": "12",
350
355
  "port": 3001,
351
356
  "notes": [
352
- "REST",
353
- "Swagger /api"
357
+ "Swagger",
358
+ "rate limit"
354
359
  ]
355
360
  },
356
361
  "orm": {
357
362
  "path": "apps/backend/src/users/schemas",
358
363
  "name": "Mongoose",
359
364
  "package": "mongoose",
360
- "version": "8",
365
+ "version": "9",
361
366
  "notes": [
362
367
  "schemas",
363
368
  "timestamps"
@@ -372,12 +377,13 @@
372
377
  },
373
378
  "turborepo-react-nestjs-postgresql-prisma": {
374
379
  "id": "8cba60d4-463a-45ef-9bb0-acb0676e04a2",
375
- "description": "React 19 (Vite) SPA + NestJS 11 REST API + PostgreSQL 16 + Prisma 7",
380
+ "description": "React 19 (Vite) SPA + NestJS 12 REST API + PostgreSQL 16 + Prisma 7",
376
381
  "features": [
377
382
  "Turborepo monorepo",
378
383
  "React 19 + Vite — fast HMR, SPA",
379
384
  "Tailwind CSS v4 via Vite plugin",
380
- "NestJS 11 — modular, decorators, DI",
385
+ "NestJS 12 — modular, decorators, DI",
386
+ "Rate limiting per client IP (@nestjs/throttler)",
381
387
  "Swagger / OpenAPI docs at /api",
382
388
  "Prisma 7 ORM + migrations",
383
389
  "PostgreSQL 16 via Docker Compose",
@@ -396,7 +402,7 @@
396
402
  "docker": true,
397
403
  "turbopack": false
398
404
  },
399
- "node": ">=20.19.0",
405
+ "node": "^20.19.0 || ^22.12.0 || >=24.0.0",
400
406
  "layers": {
401
407
  "frontend": {
402
408
  "path": "apps/frontend",
@@ -420,11 +426,11 @@
420
426
  "path": "apps/backend",
421
427
  "name": "NestJS",
422
428
  "package": "@nestjs/core",
423
- "version": "11",
429
+ "version": "12",
424
430
  "port": 3001,
425
431
  "notes": [
426
- "REST",
427
- "Swagger /api"
432
+ "Swagger",
433
+ "rate limit"
428
434
  ]
429
435
  },
430
436
  "orm": {
@@ -446,12 +452,13 @@
446
452
  },
447
453
  "turborepo-react-express-postgresql-prisma": {
448
454
  "id": "8aab7d8e-b969-4c88-87ee-48fd343d0af3",
449
- "description": "React 19 (Vite) SPA + Express 4 REST API + PostgreSQL 16 + Prisma 7",
455
+ "description": "React 19 (Vite) SPA + Express 5 REST API + PostgreSQL 16 + Prisma 7",
450
456
  "features": [
451
457
  "Turborepo monorepo",
452
458
  "React 19 + Vite — fast HMR, SPA",
453
459
  "Tailwind CSS v4 via Vite plugin",
454
- "Express 4 — lightweight, flexible",
460
+ "Express 5 — lightweight, flexible",
461
+ "Rate limiting per client IP (express-rate-limit)",
455
462
  "Zod request validation",
456
463
  "Prisma 7 ORM + migrations",
457
464
  "PostgreSQL 16 via Docker Compose",
@@ -470,7 +477,7 @@
470
477
  "docker": true,
471
478
  "turbopack": false
472
479
  },
473
- "node": ">=20.19.0",
480
+ "node": "^20.19.0 || ^22.12.0 || >=24.0.0",
474
481
  "layers": {
475
482
  "frontend": {
476
483
  "path": "apps/frontend",
@@ -494,11 +501,11 @@
494
501
  "path": "apps/backend",
495
502
  "name": "Express",
496
503
  "package": "express",
497
- "version": "4",
504
+ "version": "5",
498
505
  "port": 3001,
499
506
  "notes": [
500
- "REST",
501
- "Zod validation"
507
+ "Zod",
508
+ "rate limit"
502
509
  ]
503
510
  },
504
511
  "orm": {
@@ -520,12 +527,13 @@
520
527
  },
521
528
  "turborepo-react-nestjs-mongodb-mongoose": {
522
529
  "id": "70ea0b03-bfec-45cf-a99b-a284368d9660",
523
- "description": "React 19 (Vite) SPA + NestJS 11 REST API + MongoDB 7 + Mongoose 8",
530
+ "description": "React 19 (Vite) SPA + NestJS 12 REST API + MongoDB 7 + Mongoose 9",
524
531
  "features": [
525
532
  "Turborepo monorepo",
526
533
  "React 19 + Vite — fast HMR, SPA",
527
534
  "Tailwind CSS v4 via Vite plugin",
528
- "NestJS 11 — modular, decorators, DI",
535
+ "NestJS 12 — modular, decorators, DI",
536
+ "Rate limiting per client IP (@nestjs/throttler)",
529
537
  "Swagger / OpenAPI docs at /api",
530
538
  "@nestjs/mongoose — schema decorators",
531
539
  "MongoDB 7 via Docker Compose",
@@ -544,7 +552,7 @@
544
552
  "docker": true,
545
553
  "turbopack": false
546
554
  },
547
- "node": ">=20.19.0",
555
+ "node": "^20.19.0 || ^22.12.0 || >=24.0.0",
548
556
  "layers": {
549
557
  "frontend": {
550
558
  "path": "apps/frontend",
@@ -568,18 +576,18 @@
568
576
  "path": "apps/backend",
569
577
  "name": "NestJS",
570
578
  "package": "@nestjs/core",
571
- "version": "11",
579
+ "version": "12",
572
580
  "port": 3001,
573
581
  "notes": [
574
- "REST",
575
- "Swagger /api"
582
+ "Swagger",
583
+ "rate limit"
576
584
  ]
577
585
  },
578
586
  "orm": {
579
587
  "path": "apps/backend/src/users/schemas",
580
588
  "name": "Mongoose",
581
589
  "package": "mongoose",
582
- "version": "8",
590
+ "version": "9",
583
591
  "notes": [
584
592
  "schemas",
585
593
  "timestamps"
@@ -599,6 +607,7 @@
599
607
  "Turborepo monorepo",
600
608
  "Next.js 16 (App Router, Tailwind CSS v4)",
601
609
  "Hono 4 on Node.js — small, fast, Web-standard API",
610
+ "Rate limiting per client IP (hono-rate-limiter)",
602
611
  "Zod request validation",
603
612
  "Drizzle ORM + drizzle-kit migrations",
604
613
  "PostgreSQL 16 via Docker Compose",
@@ -617,7 +626,7 @@
617
626
  "docker": true,
618
627
  "turbopack": true
619
628
  },
620
- "node": ">=20.19.0",
629
+ "node": "^20.19.0 || ^22.12.0 || >=24.0.0",
621
630
  "layers": {
622
631
  "frontend": {
623
632
  "path": "apps/frontend",
@@ -644,8 +653,8 @@
644
653
  "version": "4",
645
654
  "port": 3001,
646
655
  "notes": [
647
- "REST",
648
- "Zod validation"
656
+ "Zod",
657
+ "rate limit"
649
658
  ]
650
659
  },
651
660
  "orm": {
@@ -672,6 +681,7 @@
672
681
  "Turborepo monorepo",
673
682
  "Next.js 16 (App Router, Tailwind CSS v4)",
674
683
  "Fastify 5 — fast, low overhead",
684
+ "Rate limiting per client IP (@fastify/rate-limit)",
675
685
  "Zod request validation",
676
686
  "Prisma 7 ORM + migrations",
677
687
  "PostgreSQL 16 via Docker Compose",
@@ -690,7 +700,7 @@
690
700
  "docker": true,
691
701
  "turbopack": true
692
702
  },
693
- "node": ">=20.19.0",
703
+ "node": "^20.19.0 || ^22.12.0 || >=24.0.0",
694
704
  "layers": {
695
705
  "frontend": {
696
706
  "path": "apps/frontend",
@@ -717,8 +727,8 @@
717
727
  "version": "5",
718
728
  "port": 3001,
719
729
  "notes": [
720
- "REST",
721
- "Zod validation"
730
+ "Zod",
731
+ "rate limit"
722
732
  ]
723
733
  },
724
734
  "orm": {
@@ -740,12 +750,13 @@
740
750
  },
741
751
  "turborepo-vue-express-postgresql-prisma": {
742
752
  "id": "93df5f16-f00a-466b-8eef-1cf2982f4ba3",
743
- "description": "Vue 3 (Vite) SPA + Express 4 REST API + PostgreSQL 16 + Prisma 7",
753
+ "description": "Vue 3 (Vite) SPA + Express 5 REST API + PostgreSQL 16 + Prisma 7",
744
754
  "features": [
745
755
  "Turborepo monorepo",
746
756
  "Vue 3 + Vite — fast HMR, SPA",
747
757
  "Tailwind CSS v4 via Vite plugin",
748
- "Express 4 — lightweight, flexible",
758
+ "Express 5 — lightweight, flexible",
759
+ "Rate limiting per client IP (express-rate-limit)",
749
760
  "Zod request validation",
750
761
  "Prisma 7 ORM + migrations",
751
762
  "PostgreSQL 16 via Docker Compose",
@@ -764,7 +775,7 @@
764
775
  "docker": true,
765
776
  "turbopack": false
766
777
  },
767
- "node": ">=20.19.0",
778
+ "node": "^20.19.0 || ^22.12.0 || >=24.0.0",
768
779
  "layers": {
769
780
  "frontend": {
770
781
  "path": "apps/frontend",
@@ -788,11 +799,11 @@
788
799
  "path": "apps/backend",
789
800
  "name": "Express",
790
801
  "package": "express",
791
- "version": "4",
802
+ "version": "5",
792
803
  "port": 3001,
793
804
  "notes": [
794
- "REST",
795
- "Zod validation"
805
+ "Zod",
806
+ "rate limit"
796
807
  ]
797
808
  },
798
809
  "orm": {
@@ -814,11 +825,12 @@
814
825
  },
815
826
  "turborepo-nextjs-express-sqlite-drizzle": {
816
827
  "id": "11576280-d4ff-487a-93a3-56ab3d8695df",
817
- "description": "Next.js 16 App Router + Express 4 REST API + SQLite (libSQL) + Drizzle ORM",
828
+ "description": "Next.js 16 App Router + Express 5 REST API + SQLite (libSQL) + Drizzle ORM",
818
829
  "features": [
819
830
  "Turborepo monorepo",
820
831
  "Next.js 16 (App Router, Tailwind CSS v4)",
821
- "Express 4 — lightweight, flexible",
832
+ "Express 5 — lightweight, flexible",
833
+ "Rate limiting per client IP (express-rate-limit)",
822
834
  "Zod request validation",
823
835
  "Drizzle ORM with libSQL — migrations applied on startup",
824
836
  "SQLite file database — no Docker or setup needed",
@@ -837,7 +849,7 @@
837
849
  "docker": false,
838
850
  "turbopack": true
839
851
  },
840
- "node": ">=20.19.0",
852
+ "node": "^20.19.0 || ^22.12.0 || >=24.0.0",
841
853
  "layers": {
842
854
  "frontend": {
843
855
  "path": "apps/frontend",
@@ -861,11 +873,11 @@
861
873
  "path": "apps/backend",
862
874
  "name": "Express",
863
875
  "package": "express",
864
- "version": "4",
876
+ "version": "5",
865
877
  "port": 3001,
866
878
  "notes": [
867
- "REST",
868
- "Zod validation"
879
+ "Zod",
880
+ "rate limit"
869
881
  ]
870
882
  },
871
883
  "orm": {
@@ -250,7 +250,8 @@ async function updatePackageJson(targetDir, config, custom) {
250
250
  *
251
251
  * All templates → sharp, unrs-resolver, esbuild
252
252
  * Prisma templates → @prisma/engines, prisma
253
- * NestJS templates → @nestjs/core, @scarf/scarf (NestJS telemetry)
253
+ * NestJS templates → @nestjs/core, @scarf/scarf (NestJS telemetry), @swc/core (decorator
254
+ * metadata for the backend tests)
254
255
  */
255
256
  export function buildAllowList(config) {
256
257
  const list = ['sharp', 'unrs-resolver', 'esbuild'];
@@ -258,7 +259,7 @@ export function buildAllowList(config) {
258
259
  list.push('@prisma/engines', 'prisma');
259
260
  }
260
261
  if (config.stack?.backend === 'nest.js') {
261
- list.push('@nestjs/core', '@scarf/scarf');
262
+ list.push('@nestjs/core', '@scarf/scarf', '@swc/core');
262
263
  }
263
264
  return list;
264
265
  }
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
  // Keep this file free of imports: it must run on old Node versions to print the error.
3
3
  const [major = 0, minor = 0] = process.versions.node.split('.').map(Number);
4
- if (major < 20 || (major === 20 && minor < 19)) {
4
+ if (!((major === 20 && minor >= 19) || (major === 22 && minor >= 12) || major >= 24)) {
5
5
  console.error([
6
- '✗ create-fs-app needs Node.js 20.19 or newer',
6
+ '✗ create-fs-app needs Node.js 20.19+, 22.12+ or 24+',
7
7
  ` You have ${process.versions.node}.`,
8
8
  ' Try: install Node.js 22 LTS from https://nodejs.org',
9
9
  ].join('\n'));
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "create-fs-app",
3
- "version": "3.0.0",
4
- "description": "A CLI tool to create customizable full-stack monorepo applications",
3
+ "version": "3.1.0",
4
+ "description": "Create a full-stack TypeScript monorepo from one command: a frontend, a backend and a database, already connected.",
5
5
  "main": "./dist/index.js",
6
6
  "bin": {
7
- "create-fs-app": "./dist/index.js"
7
+ "create-fs-app": "dist/index.js"
8
8
  },
9
9
  "type": "module",
10
10
  "files": [
@@ -35,22 +35,31 @@
35
35
  },
36
36
  "keywords": [
37
37
  "full-stack",
38
+ "fullstack",
38
39
  "monorepo",
39
40
  "turborepo",
40
- "react",
41
- "next.js",
42
- "express",
43
- "nest.js",
44
41
  "typescript",
45
42
  "cli",
46
43
  "scaffolding",
47
- "boilerplate"
44
+ "boilerplate",
45
+ "starter",
46
+ "next.js",
47
+ "nest.js",
48
+ "react",
49
+ "vue",
50
+ "express",
51
+ "fastify",
52
+ "hono",
53
+ "prisma",
54
+ "drizzle",
55
+ "mongoose",
56
+ "docker"
48
57
  ],
49
58
  "author": "Om Jannu",
50
59
  "license": "ISC",
51
60
  "repository": {
52
61
  "type": "git",
53
- "url": "https://github.com/Om-jannu/create-fs-app.git"
62
+ "url": "git+https://github.com/Om-jannu/create-fs-app.git"
54
63
  },
55
64
  "bugs": {
56
65
  "url": "https://github.com/Om-jannu/create-fs-app/issues"
@@ -73,6 +82,6 @@
73
82
  "vitest": "^4.0.0"
74
83
  },
75
84
  "engines": {
76
- "node": ">=20.19.0"
85
+ "node": "^20.19.0 || ^22.12.0 || >=24.0.0"
77
86
  }
78
87
  }