create-authenik8-app 1.0.0 → 1.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.
Files changed (2) hide show
  1. package/README.md +173 -0
  2. package/package.json +1 -1
package/README.md ADDED
@@ -0,0 +1,173 @@
1
+
2
+
3
+
4
+ ---
5
+
6
+ # create-authenik8-app
7
+
8
+ <p align="center">
9
+ <b>Scaffold secure Express authentication APIs in seconds</b>
10
+ </p>
11
+
12
+ <p align="center">
13
+ JWT • Refresh Tokens • Redis • RBAC • TypeScript • Express
14
+ </p>
15
+
16
+ ---
17
+
18
+ ## 📦 Usage
19
+
20
+ Create a new project:
21
+
22
+ ```bash
23
+ npx create-authenik8-app my-app
24
+
25
+ Then:
26
+
27
+ cd my-app
28
+ npm install
29
+ npm run dev
30
+ ```
31
+
32
+ ---
33
+
34
+ ## What you get instantly
35
+
36
+ A fully working Express authentication starter with:
37
+
38
+ JWT authentication (access + refresh tokens)
39
+
40
+ Secure refresh token rotation
41
+
42
+ Redis-based token storage
43
+
44
+ Role-Based Access Control (RBAC)
45
+
46
+ TypeScript setup
47
+
48
+ Express server preconfigured
49
+
50
+ Clean scalable folder structure
51
+
52
+ .env file generated automatically
53
+
54
+
55
+
56
+ ---
57
+
58
+ ## Why Authenik8?
59
+
60
+ Authentication systems usually require:
61
+
62
+ manual JWT setup
63
+
64
+ refresh token handling
65
+
66
+ Redis/session configuration
67
+
68
+ access control logic
69
+
70
+
71
+ Authenik8 provides all of this out of the box so you can start building your API immediately.
72
+
73
+
74
+ ---
75
+
76
+ ## Requirements
77
+
78
+ Node.js 18+
79
+
80
+ Redis (required for refresh tokens)
81
+
82
+
83
+
84
+ ---
85
+
86
+ ## Redis Setup
87
+ ```
88
+
89
+ Local
90
+
91
+ redis-server
92
+
93
+ Docker
94
+
95
+ docker run -p 6379:6379 redis
96
+
97
+ ```
98
+ ---
99
+
100
+ ## Environment Variables
101
+
102
+ Generated automatically:
103
+ ```
104
+ JWT_SECRET=your-secret
105
+ REFRESH_SECRET=your-refresh-secret
106
+
107
+ REDIS_HOST=127.0.0.1
108
+ REDIS_PORT=6379
109
+
110
+ ```
111
+ ---
112
+
113
+ ## RBAC Example
114
+ ```
115
+ Example of a protected route:
116
+
117
+ app.get("/admin", auth.requireAdmin, (req, res) => {
118
+ res.json({ message: "Admin only route" });
119
+ });
120
+
121
+ ```
122
+ ---
123
+
124
+ 📦 Powered by
125
+
126
+ authenik8-core
127
+
128
+
129
+
130
+ ---
131
+
132
+ ## Project Structure
133
+ ```
134
+
135
+ my-app/
136
+ ├── src/
137
+ │ |
138
+ │ ├
139
+ │ └── server.ts
140
+ ├── .env
141
+ ├── package.json
142
+ └── tsconfig.json
143
+
144
+ ```
145
+ ---
146
+
147
+ ## Notes
148
+
149
+ Redis is required for refresh token handling
150
+
151
+ This CLI generates a starter project, not a full framework
152
+
153
+ RBAC is included via middleware (e.g. requireAdmin)
154
+
155
+
156
+
157
+ ---
158
+
159
+ ## Roadmap
160
+
161
+ OAuth providers (Google, GitHub)
162
+
163
+ Advanced RBAC (custom roles/permissions)
164
+
165
+ Docker templates
166
+
167
+ Admin dashboard
168
+
169
+ Production presets
170
+
171
+
172
+
173
+ ---
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-authenik8-app",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "bin": {
5
5
  "create-authenik8-app": "dist/bin/index.js"
6
6
  },