@prmvx/frontend-forge 0.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.
Files changed (72) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +224 -0
  3. package/dist/cli.js +662 -0
  4. package/dist/cli.js.map +1 -0
  5. package/dist/templates/architectures/next/enterprise/src/components/common/Button.tsx +17 -0
  6. package/dist/templates/architectures/next/enterprise/src/components/home/HomeView.tsx +41 -0
  7. package/dist/templates/architectures/next/enterprise/src/components/layout/Footer.tsx +9 -0
  8. package/dist/templates/architectures/next/enterprise/src/components/layout/Header.tsx +19 -0
  9. package/dist/templates/architectures/next/enterprise/src/config/env.ts +3 -0
  10. package/dist/templates/architectures/next/enterprise/src/constants/routes.ts +4 -0
  11. package/dist/templates/architectures/next/enterprise/src/features/dashboard/components/DashboardSummary.tsx +22 -0
  12. package/dist/templates/architectures/next/enterprise/src/features/dashboard/hooks/useDashboard.ts +18 -0
  13. package/dist/templates/architectures/next/enterprise/src/features/dashboard/services/dashboard-api.ts +22 -0
  14. package/dist/templates/architectures/next/enterprise/src/features/dashboard/types/index.ts +4 -0
  15. package/dist/templates/architectures/next/enterprise/src/hooks/useDebounce.ts +14 -0
  16. package/dist/templates/architectures/next/enterprise/src/hooks/useToggle.ts +15 -0
  17. package/dist/templates/architectures/next/enterprise/src/providers/index.tsx +17 -0
  18. package/dist/templates/architectures/next/enterprise/src/providers/theme-provider.tsx +11 -0
  19. package/dist/templates/architectures/next/enterprise/src/services/api.ts +22 -0
  20. package/dist/templates/architectures/next/enterprise/src/store/app-store.tsx +33 -0
  21. package/dist/templates/architectures/next/enterprise/src/types/user.ts +5 -0
  22. package/dist/templates/architectures/next/enterprise/src/utils/cn.ts +3 -0
  23. package/dist/templates/architectures/next/enterprise/src/utils/formatDate.ts +7 -0
  24. package/dist/templates/architectures/next/feature/src/config/env.ts +3 -0
  25. package/dist/templates/architectures/next/feature/src/features/home/components/HomeHero.tsx +38 -0
  26. package/dist/templates/architectures/next/feature/src/features/home/components/HomePage.tsx +19 -0
  27. package/dist/templates/architectures/next/feature/src/features/home/constants/routes.ts +4 -0
  28. package/dist/templates/architectures/next/feature/src/features/home/hooks/useHome.ts +18 -0
  29. package/dist/templates/architectures/next/feature/src/features/home/services/home-api.ts +22 -0
  30. package/dist/templates/architectures/next/feature/src/features/home/types/index.ts +4 -0
  31. package/dist/templates/architectures/next/feature/src/features/profile/components/ProfileCard.tsx +19 -0
  32. package/dist/templates/architectures/next/feature/src/features/profile/hooks/useProfile.ts +18 -0
  33. package/dist/templates/architectures/next/feature/src/features/profile/services/profile-api.ts +22 -0
  34. package/dist/templates/architectures/next/feature/src/features/profile/types/index.ts +5 -0
  35. package/dist/templates/architectures/next/feature/src/shared/components/common/Button.tsx +17 -0
  36. package/dist/templates/architectures/next/feature/src/shared/components/layout/Footer.tsx +9 -0
  37. package/dist/templates/architectures/next/feature/src/shared/components/layout/Header.tsx +19 -0
  38. package/dist/templates/architectures/next/feature/src/shared/hooks/useDebounce.ts +14 -0
  39. package/dist/templates/architectures/next/feature/src/shared/hooks/useToggle.ts +15 -0
  40. package/dist/templates/architectures/next/feature/src/shared/providers/index.tsx +8 -0
  41. package/dist/templates/architectures/next/feature/src/shared/providers/theme-provider.tsx +7 -0
  42. package/dist/templates/architectures/next/feature/src/shared/utils/cn.ts +3 -0
  43. package/dist/templates/architectures/next/feature/src/shared/utils/formatDate.ts +7 -0
  44. package/dist/templates/architectures/next/standard/src/components/common/Button.tsx +17 -0
  45. package/dist/templates/architectures/next/standard/src/components/home/HomeView.tsx +53 -0
  46. package/dist/templates/architectures/next/standard/src/components/layout/Footer.tsx +9 -0
  47. package/dist/templates/architectures/next/standard/src/components/layout/Header.tsx +19 -0
  48. package/dist/templates/architectures/next/standard/src/config/env.ts +3 -0
  49. package/dist/templates/architectures/next/standard/src/constants/routes.ts +4 -0
  50. package/dist/templates/architectures/next/standard/src/hooks/useDebounce.ts +14 -0
  51. package/dist/templates/architectures/next/standard/src/hooks/useToggle.ts +15 -0
  52. package/dist/templates/architectures/next/standard/src/providers/index.tsx +12 -0
  53. package/dist/templates/architectures/next/standard/src/providers/theme-provider.tsx +11 -0
  54. package/dist/templates/architectures/next/standard/src/services/api.ts +22 -0
  55. package/dist/templates/architectures/next/standard/src/types/user.ts +5 -0
  56. package/dist/templates/architectures/next/standard/src/utils/cn.ts +3 -0
  57. package/dist/templates/architectures/next/standard/src/utils/formatDate.ts +7 -0
  58. package/dist/templates/modules/axios/module.ts +7 -0
  59. package/dist/templates/modules/core/module.ts +5 -0
  60. package/dist/templates/modules/core/src/components/common/Button.tsx +12 -0
  61. package/dist/templates/modules/core/src/components/layout/Header.tsx +7 -0
  62. package/dist/templates/modules/core/src/config/env.ts +3 -0
  63. package/dist/templates/modules/core/src/constants/index.ts +1 -0
  64. package/dist/templates/modules/core/src/constants/routes.ts +3 -0
  65. package/dist/templates/modules/core/src/hooks/index.ts +1 -0
  66. package/dist/templates/modules/core/src/hooks/useToggle.ts +13 -0
  67. package/dist/templates/modules/core/src/providers/index.tsx +9 -0
  68. package/dist/templates/modules/core/src/services/api.ts +5 -0
  69. package/dist/templates/modules/core/src/utils/cn.ts +3 -0
  70. package/dist/templates/modules/core/src/utils/index.ts +1 -0
  71. package/dist/templates/modules/zustand/module.ts +7 -0
  72. package/package.json +70 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Parimal
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,224 @@
1
+ # 🚀 Frontend Forge
2
+
3
+ **Frontend Forge** is a modern CLI that transforms an existing **Next.js** project into a production-ready frontend architecture.
4
+
5
+ Instead of creating another starter project, Frontend Forge upgrades your existing project by adding a clean folder structure, connected starter files, optional modules, and best practices—without overwriting your existing code.
6
+
7
+ ---
8
+
9
+ ## ✨ Features
10
+
11
+ * 🏗️ Convert an existing Next.js project into a scalable architecture
12
+ * 📦 Multiple project architectures
13
+
14
+ * Standard
15
+ * Enterprise
16
+ * Feature Based
17
+ * 🧩 Optional modules
18
+
19
+ * Core
20
+ * Axios
21
+ * Zustand
22
+ * 📁 Intelligent project detection (`app/` or `src/app/`)
23
+ * 📦 Automatic dependency installation
24
+ * 📋 Automatic package manager detection
25
+
26
+ * npm
27
+ * pnpm
28
+ * yarn
29
+ * bun
30
+ * 🛡️ Safe file generation (never overwrites existing files)
31
+ * 🎯 Connected starter files that demonstrate the project structure
32
+ * ⚡ Beautiful interactive CLI experience
33
+
34
+ ---
35
+
36
+ # 📦 Installation
37
+
38
+ ### Run directly
39
+
40
+ ```bash
41
+ npx @parimal/frontend-forge init
42
+ ```
43
+
44
+ or install globally
45
+
46
+ ```bash
47
+ npm install -g @parimal/frontend-forge
48
+ ```
49
+
50
+ then
51
+
52
+ ```bash
53
+ frontend-forge init
54
+ ```
55
+
56
+ ---
57
+
58
+ # 🚀 Quick Start
59
+
60
+ Create a new Next.js project
61
+
62
+ ```bash
63
+ npx create-next-app@latest my-app
64
+ ```
65
+
66
+ Move into the project
67
+
68
+ ```bash
69
+ cd my-app
70
+ ```
71
+
72
+ Run Frontend Forge
73
+
74
+ ```bash
75
+ frontend-forge init
76
+ ```
77
+
78
+ Choose:
79
+
80
+ * Architecture
81
+ * Modules
82
+
83
+ That's it.
84
+
85
+ Your project is now transformed into a production-ready frontend foundation.
86
+
87
+ ---
88
+
89
+ # 🏛️ Architectures
90
+
91
+ ## Standard
92
+
93
+ Perfect for:
94
+
95
+ * Small projects
96
+ * MVPs
97
+ * Personal projects
98
+
99
+ Includes a clean and minimal folder structure.
100
+
101
+ ---
102
+
103
+ ## Enterprise
104
+
105
+ Perfect for:
106
+
107
+ * Large applications
108
+ * Teams
109
+ * Long-term maintenance
110
+
111
+ Layer-based architecture with scalable project organization.
112
+
113
+ ---
114
+
115
+ ## Feature Based
116
+
117
+ Perfect for:
118
+
119
+ * Complex products
120
+ * Domain-driven applications
121
+ * Large feature teams
122
+
123
+ Everything is organized by feature with a shared layer.
124
+
125
+ ---
126
+
127
+ # 📦 Modules
128
+
129
+ ## Core
130
+
131
+ Includes:
132
+
133
+ * Providers
134
+ * Components
135
+ * Hooks
136
+ * Utilities
137
+ * Constants
138
+ * Services
139
+ * Types
140
+ * Store
141
+ * Configuration
142
+ * Assets
143
+
144
+ ---
145
+
146
+ ## Axios
147
+
148
+ Installs Axios and generates starter API service files.
149
+
150
+ ---
151
+
152
+ ## Zustand
153
+
154
+ Installs Zustand and creates a starter global store.
155
+
156
+ ---
157
+
158
+ # 🛡️ Safe Generation
159
+
160
+ Frontend Forge never overwrites your existing files.
161
+
162
+ If a file already exists, it is skipped automatically.
163
+
164
+ This allows you to run the CLI multiple times without losing your work.
165
+
166
+ ---
167
+
168
+ # ⚙️ Supported Package Managers
169
+
170
+ Frontend Forge automatically detects your project and uses the correct package manager.
171
+
172
+ * npm
173
+ * pnpm
174
+ * yarn
175
+ * bun
176
+
177
+ ---
178
+
179
+ # 📂 Supported Frameworks
180
+
181
+ Current
182
+
183
+ * ✅ Next.js
184
+
185
+ Planned
186
+
187
+ * React
188
+ * Vite
189
+ * Electron
190
+ * React Native
191
+
192
+ ---
193
+
194
+ # 🗺️ Roadmap
195
+
196
+ * React support
197
+ * Vite support
198
+ * Better Auth module
199
+ * Directus module
200
+ * React Query module
201
+ * Prisma module
202
+ * Drizzle module
203
+ * Docker support
204
+ * Storybook support
205
+ * Testing presets
206
+ * AI-ready starter modules
207
+
208
+ ---
209
+
210
+ # 🤝 Contributing
211
+
212
+ Contributions, ideas, bug reports, and feature requests are always welcome.
213
+
214
+ If you find an issue or have an idea for improvement, please open an Issue or submit a Pull Request.
215
+
216
+ ---
217
+
218
+ # 📄 License
219
+
220
+ MIT License
221
+
222
+ ---
223
+
224
+ Made with ❤️ by **Parimal Sharma**