express-genix 2.0.0 → 2.0.1
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 +7 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -15,16 +15,19 @@ A production-grade CLI tool that generates Express.js applications with best-in-
|
|
|
15
15
|
|
|
16
16
|
**Security & Auth**
|
|
17
17
|
- JWT access + refresh tokens with token blacklist logout
|
|
18
|
+
- Password reset flow (forgot-password / reset-password with crypto tokens)
|
|
18
19
|
- Optional Redis-backed blacklist for production multi-instance deployments
|
|
20
|
+
- Zod request validation with pre-built schemas (register, login, reset, etc.)
|
|
19
21
|
- bcrypt password hashing, input sanitization (`validator`)
|
|
20
22
|
- Helmet, CORS, environment validation on startup
|
|
21
23
|
- Auto-generated cryptographically secure JWT secrets
|
|
22
24
|
|
|
23
25
|
**API & Documentation**
|
|
24
|
-
- Swagger UI + swagger-jsdoc annotation-based docs
|
|
26
|
+
- Swagger UI + swagger-jsdoc annotation-based docs with example request/response bodies
|
|
25
27
|
- Consistent `{ success, data, meta }` response envelope
|
|
26
28
|
- Paginated list endpoints
|
|
27
29
|
- Request ID / correlation tracking
|
|
30
|
+
- Response caching middleware (Redis-backed, configurable TTL)
|
|
28
31
|
|
|
29
32
|
**Developer Experience**
|
|
30
33
|
- Interactive prompts — pick language, database, features via checkbox
|
|
@@ -130,6 +133,8 @@ my-express-app/
|
|
|
130
133
|
| POST | `/api/auth/login` | Login (returns access + refresh tokens) |
|
|
131
134
|
| POST | `/api/auth/refresh` | Refresh access token |
|
|
132
135
|
| POST | `/api/auth/logout` | Logout (blacklists token) |
|
|
136
|
+
| POST | `/api/auth/forgot-password` | Request password reset email |
|
|
137
|
+
| POST | `/api/auth/reset-password` | Reset password with token |
|
|
133
138
|
|
|
134
139
|
### Users (protected)
|
|
135
140
|
| Method | Endpoint | Description |
|
|
@@ -141,7 +146,7 @@ my-express-app/
|
|
|
141
146
|
### Health
|
|
142
147
|
| Method | Endpoint | Description |
|
|
143
148
|
|--------|----------|-------------|
|
|
144
|
-
| GET | `/health` | Health check with uptime
|
|
149
|
+
| GET | `/health` | Health check with uptime, DB status, Redis status, memory usage |
|
|
145
150
|
|
|
146
151
|
## Available Scripts
|
|
147
152
|
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "express-genix",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "Production-grade CLI to generate Express apps with JWT, TypeScript, Prisma, MongoDB, PostgreSQL, rate-limiting, Swagger, CI/CD, and more",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
7
|
-
"express-genix": "
|
|
7
|
+
"express-genix": "index.js"
|
|
8
8
|
},
|
|
9
9
|
"scripts": {
|
|
10
10
|
"start": "node index.js",
|