@jakkrichm/create-nexus-devflow 2.0.20 → 2.0.21

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 (253) hide show
  1. package/dist/lib/update.js +19 -8
  2. package/dist/lib/update.js.map +1 -1
  3. package/package.json +1 -1
  4. package/template/.agents/skills/00-discover/SKILL.md +28 -116
  5. package/template/.agents/skills/40-execute/SKILL.md +1 -1
  6. package/template/.agents/skills/50-verify/SKILL.md +28 -161
  7. package/template/.agents/skills/60-report/SKILL.md +19 -92
  8. package/template/.agents/skills/70-release/SKILL.md +36 -11
  9. package/template/.agents/skills/check/SKILL.md +19 -7
  10. package/template/.agents/skills/complete/SKILL.md +21 -10
  11. package/template/.claude/skills/00-discover/SKILL.md +28 -116
  12. package/template/.claude/skills/40-execute/SKILL.md +1 -1
  13. package/template/.claude/skills/50-verify/SKILL.md +28 -161
  14. package/template/.claude/skills/60-report/SKILL.md +19 -92
  15. package/template/.claude/skills/70-release/SKILL.md +36 -11
  16. package/template/.claude/skills/check/SKILL.md +19 -7
  17. package/template/.claude/skills/complete/SKILL.md +21 -10
  18. package/template/AGENTS.md +1 -1
  19. package/template/devflow/context/coding-standards.md +40 -29
  20. package/template/.agents/skills/agent/SKILL.md +0 -165
  21. package/template/.agents/skills/api-and-interface-design/SKILL.md +0 -294
  22. package/template/.agents/skills/app-builder/SKILL.md +0 -75
  23. package/template/.agents/skills/app-builder/agent-coordination.md +0 -71
  24. package/template/.agents/skills/app-builder/feature-building.md +0 -53
  25. package/template/.agents/skills/app-builder/project-detection.md +0 -34
  26. package/template/.agents/skills/app-builder/scaffolding.md +0 -118
  27. package/template/.agents/skills/app-builder/tech-stack.md +0 -40
  28. package/template/.agents/skills/app-builder/templates/SKILL.md +0 -39
  29. package/template/.agents/skills/app-builder/templates/astro-static/TEMPLATE.md +0 -76
  30. package/template/.agents/skills/app-builder/templates/chrome-extension/TEMPLATE.md +0 -92
  31. package/template/.agents/skills/app-builder/templates/cli-tool/TEMPLATE.md +0 -88
  32. package/template/.agents/skills/app-builder/templates/electron-desktop/TEMPLATE.md +0 -88
  33. package/template/.agents/skills/app-builder/templates/express-api/TEMPLATE.md +0 -83
  34. package/template/.agents/skills/app-builder/templates/flutter-app/TEMPLATE.md +0 -90
  35. package/template/.agents/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +0 -90
  36. package/template/.agents/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +0 -122
  37. package/template/.agents/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +0 -122
  38. package/template/.agents/skills/app-builder/templates/nextjs-static/TEMPLATE.md +0 -169
  39. package/template/.agents/skills/app-builder/templates/nuxt-app/TEMPLATE.md +0 -134
  40. package/template/.agents/skills/app-builder/templates/python-fastapi/TEMPLATE.md +0 -83
  41. package/template/.agents/skills/app-builder/templates/react-native-app/TEMPLATE.md +0 -119
  42. package/template/.agents/skills/architecture/SKILL.md +0 -55
  43. package/template/.agents/skills/architecture/context-discovery.md +0 -43
  44. package/template/.agents/skills/architecture/examples.md +0 -94
  45. package/template/.agents/skills/architecture/pattern-selection.md +0 -68
  46. package/template/.agents/skills/architecture/patterns-reference.md +0 -50
  47. package/template/.agents/skills/architecture/trade-off-analysis.md +0 -77
  48. package/template/.agents/skills/bash-linux/SKILL.md +0 -199
  49. package/template/.agents/skills/behavioral-modes/SKILL.md +0 -242
  50. package/template/.agents/skills/brainstorm/SKILL.md +0 -168
  51. package/template/.agents/skills/changelog/SKILL.md +0 -109
  52. package/template/.agents/skills/codebase-design/DEEPENING.md +0 -24
  53. package/template/.agents/skills/codebase-design/DESIGN-IT-TWICE.md +0 -28
  54. package/template/.agents/skills/codebase-design/SKILL.md +0 -58
  55. package/template/.agents/skills/commit/SKILL.md +0 -59
  56. package/template/.agents/skills/competitor-analysis/SKILL.md +0 -66
  57. package/template/.agents/skills/context-engineering/SKILL.md +0 -290
  58. package/template/.agents/skills/database-design/SKILL.md +0 -52
  59. package/template/.agents/skills/database-design/database-selection.md +0 -43
  60. package/template/.agents/skills/database-design/indexing.md +0 -39
  61. package/template/.agents/skills/database-design/migrations.md +0 -48
  62. package/template/.agents/skills/database-design/optimization.md +0 -36
  63. package/template/.agents/skills/database-design/orm-selection.md +0 -30
  64. package/template/.agents/skills/database-design/schema-design.md +0 -56
  65. package/template/.agents/skills/database-design/scripts/schema_validator.py +0 -172
  66. package/template/.agents/skills/deploy/SKILL.md +0 -63
  67. package/template/.agents/skills/documentation-and-adrs/SKILL.md +0 -278
  68. package/template/.agents/skills/domain-modeling/ADR-FORMAT.md +0 -47
  69. package/template/.agents/skills/domain-modeling/CONTEXT-FORMAT.md +0 -60
  70. package/template/.agents/skills/domain-modeling/SKILL.md +0 -74
  71. package/template/.agents/skills/followup/SKILL.md +0 -83
  72. package/template/.agents/skills/frontend-ui-engineering/SKILL.md +0 -326
  73. package/template/.agents/skills/frontend-ui-engineering/accessibility-checklist.md +0 -159
  74. package/template/.agents/skills/goal/SKILL.md +0 -148
  75. package/template/.agents/skills/handoff/SKILL.md +0 -46
  76. package/template/.agents/skills/help/SKILL.md +0 -253
  77. package/template/.agents/skills/i18n-localization/SKILL.md +0 -154
  78. package/template/.agents/skills/i18n-localization/scripts/i18n_checker.py +0 -241
  79. package/template/.agents/skills/insight/SKILL.md +0 -42
  80. package/template/.agents/skills/issue-triage/SKILL.md +0 -115
  81. package/template/.agents/skills/lint-and-validate/SKILL.md +0 -45
  82. package/template/.agents/skills/lint-and-validate/scripts/lint_runner.py +0 -184
  83. package/template/.agents/skills/lint-and-validate/scripts/type_coverage.py +0 -173
  84. package/template/.agents/skills/mcp-builder/SKILL.md +0 -176
  85. package/template/.agents/skills/merge/SKILL.md +0 -76
  86. package/template/.agents/skills/mobile-design/SKILL.md +0 -394
  87. package/template/.agents/skills/mobile-design/decision-trees.md +0 -516
  88. package/template/.agents/skills/mobile-design/mobile-backend.md +0 -491
  89. package/template/.agents/skills/mobile-design/mobile-color-system.md +0 -420
  90. package/template/.agents/skills/mobile-design/mobile-debugging.md +0 -122
  91. package/template/.agents/skills/mobile-design/mobile-design-thinking.md +0 -357
  92. package/template/.agents/skills/mobile-design/mobile-navigation.md +0 -458
  93. package/template/.agents/skills/mobile-design/mobile-performance.md +0 -767
  94. package/template/.agents/skills/mobile-design/mobile-testing.md +0 -356
  95. package/template/.agents/skills/mobile-design/mobile-typography.md +0 -433
  96. package/template/.agents/skills/mobile-design/platform-android.md +0 -666
  97. package/template/.agents/skills/mobile-design/platform-ios.md +0 -561
  98. package/template/.agents/skills/mobile-design/scripts/mobile_audit.py +0 -670
  99. package/template/.agents/skills/mobile-design/touch-psychology.md +0 -537
  100. package/template/.agents/skills/nextjs-react-expert/1-async-eliminating-waterfalls.md +0 -312
  101. package/template/.agents/skills/nextjs-react-expert/2-bundle-bundle-size-optimization.md +0 -240
  102. package/template/.agents/skills/nextjs-react-expert/3-server-server-side-performance.md +0 -490
  103. package/template/.agents/skills/nextjs-react-expert/4-client-client-side-data-fetching.md +0 -264
  104. package/template/.agents/skills/nextjs-react-expert/5-rerender-re-render-optimization.md +0 -581
  105. package/template/.agents/skills/nextjs-react-expert/6-rendering-rendering-performance.md +0 -432
  106. package/template/.agents/skills/nextjs-react-expert/7-js-javascript-performance.md +0 -684
  107. package/template/.agents/skills/nextjs-react-expert/8-advanced-advanced-patterns.md +0 -150
  108. package/template/.agents/skills/nextjs-react-expert/SKILL.md +0 -286
  109. package/template/.agents/skills/nextjs-react-expert/scripts/convert_rules.py +0 -222
  110. package/template/.agents/skills/nextjs-react-expert/scripts/react_performance_checker.py +0 -252
  111. package/template/.agents/skills/nodejs-best-practices/SKILL.md +0 -333
  112. package/template/.agents/skills/package-json-generator/SKILL.md +0 -60
  113. package/template/.agents/skills/package-json-generator/scripts/generate.js +0 -120
  114. package/template/.agents/skills/package-json-generator/scripts/run.sh +0 -19
  115. package/template/.agents/skills/parallel-agents/SKILL.md +0 -144
  116. package/template/.agents/skills/performance-optimization/SKILL.md +0 -299
  117. package/template/.agents/skills/performance-optimization/performance-checklist.md +0 -113
  118. package/template/.agents/skills/powershell-windows/SKILL.md +0 -167
  119. package/template/.agents/skills/pr/SKILL.md +0 -93
  120. package/template/.agents/skills/prd/SKILL.md +0 -127
  121. package/template/.agents/skills/preview/SKILL.md +0 -42
  122. package/template/.agents/skills/python-patterns/SKILL.md +0 -441
  123. package/template/.agents/skills/research/SKILL.md +0 -143
  124. package/template/.agents/skills/review/SKILL.md +0 -71
  125. package/template/.agents/skills/roadmap-strategy/SKILL.md +0 -94
  126. package/template/.agents/skills/security-review/SKILL.md +0 -63
  127. package/template/.agents/skills/seo-fundamentals/SKILL.md +0 -129
  128. package/template/.agents/skills/seo-fundamentals/scripts/seo_checker.py +0 -219
  129. package/template/.agents/skills/server-management/SKILL.md +0 -161
  130. package/template/.agents/skills/simplify/SKILL.md +0 -70
  131. package/template/.agents/skills/skill-development/SKILL.md +0 -86
  132. package/template/.agents/skills/spec/SKILL.md +0 -39
  133. package/template/.agents/skills/spec-driven-development/SKILL.md +0 -207
  134. package/template/.agents/skills/tailwind-patterns/SKILL.md +0 -269
  135. package/template/.agents/skills/type-design/SKILL.md +0 -84
  136. package/template/.agents/skills/ui-ux-pro-max/SKILL.md +0 -75
  137. package/template/.claude/skills/agent/SKILL.md +0 -165
  138. package/template/.claude/skills/api-and-interface-design/SKILL.md +0 -294
  139. package/template/.claude/skills/app-builder/SKILL.md +0 -75
  140. package/template/.claude/skills/app-builder/agent-coordination.md +0 -71
  141. package/template/.claude/skills/app-builder/feature-building.md +0 -53
  142. package/template/.claude/skills/app-builder/project-detection.md +0 -34
  143. package/template/.claude/skills/app-builder/scaffolding.md +0 -118
  144. package/template/.claude/skills/app-builder/tech-stack.md +0 -40
  145. package/template/.claude/skills/app-builder/templates/SKILL.md +0 -39
  146. package/template/.claude/skills/app-builder/templates/astro-static/TEMPLATE.md +0 -76
  147. package/template/.claude/skills/app-builder/templates/chrome-extension/TEMPLATE.md +0 -92
  148. package/template/.claude/skills/app-builder/templates/cli-tool/TEMPLATE.md +0 -88
  149. package/template/.claude/skills/app-builder/templates/electron-desktop/TEMPLATE.md +0 -88
  150. package/template/.claude/skills/app-builder/templates/express-api/TEMPLATE.md +0 -83
  151. package/template/.claude/skills/app-builder/templates/flutter-app/TEMPLATE.md +0 -90
  152. package/template/.claude/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +0 -90
  153. package/template/.claude/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +0 -122
  154. package/template/.claude/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +0 -122
  155. package/template/.claude/skills/app-builder/templates/nextjs-static/TEMPLATE.md +0 -169
  156. package/template/.claude/skills/app-builder/templates/nuxt-app/TEMPLATE.md +0 -134
  157. package/template/.claude/skills/app-builder/templates/python-fastapi/TEMPLATE.md +0 -83
  158. package/template/.claude/skills/app-builder/templates/react-native-app/TEMPLATE.md +0 -119
  159. package/template/.claude/skills/architecture/SKILL.md +0 -55
  160. package/template/.claude/skills/architecture/context-discovery.md +0 -43
  161. package/template/.claude/skills/architecture/examples.md +0 -94
  162. package/template/.claude/skills/architecture/pattern-selection.md +0 -68
  163. package/template/.claude/skills/architecture/patterns-reference.md +0 -50
  164. package/template/.claude/skills/architecture/trade-off-analysis.md +0 -77
  165. package/template/.claude/skills/bash-linux/SKILL.md +0 -199
  166. package/template/.claude/skills/behavioral-modes/SKILL.md +0 -242
  167. package/template/.claude/skills/brainstorm/SKILL.md +0 -168
  168. package/template/.claude/skills/changelog/SKILL.md +0 -109
  169. package/template/.claude/skills/codebase-design/DEEPENING.md +0 -24
  170. package/template/.claude/skills/codebase-design/DESIGN-IT-TWICE.md +0 -28
  171. package/template/.claude/skills/codebase-design/SKILL.md +0 -58
  172. package/template/.claude/skills/commit/SKILL.md +0 -59
  173. package/template/.claude/skills/competitor-analysis/SKILL.md +0 -66
  174. package/template/.claude/skills/context-engineering/SKILL.md +0 -290
  175. package/template/.claude/skills/database-design/SKILL.md +0 -52
  176. package/template/.claude/skills/database-design/database-selection.md +0 -43
  177. package/template/.claude/skills/database-design/indexing.md +0 -39
  178. package/template/.claude/skills/database-design/migrations.md +0 -48
  179. package/template/.claude/skills/database-design/optimization.md +0 -36
  180. package/template/.claude/skills/database-design/orm-selection.md +0 -30
  181. package/template/.claude/skills/database-design/schema-design.md +0 -56
  182. package/template/.claude/skills/database-design/scripts/schema_validator.py +0 -172
  183. package/template/.claude/skills/deploy/SKILL.md +0 -63
  184. package/template/.claude/skills/documentation-and-adrs/SKILL.md +0 -278
  185. package/template/.claude/skills/domain-modeling/ADR-FORMAT.md +0 -47
  186. package/template/.claude/skills/domain-modeling/CONTEXT-FORMAT.md +0 -60
  187. package/template/.claude/skills/domain-modeling/SKILL.md +0 -74
  188. package/template/.claude/skills/followup/SKILL.md +0 -83
  189. package/template/.claude/skills/frontend-ui-engineering/SKILL.md +0 -326
  190. package/template/.claude/skills/frontend-ui-engineering/accessibility-checklist.md +0 -159
  191. package/template/.claude/skills/goal/SKILL.md +0 -148
  192. package/template/.claude/skills/handoff/SKILL.md +0 -46
  193. package/template/.claude/skills/help/SKILL.md +0 -253
  194. package/template/.claude/skills/i18n-localization/SKILL.md +0 -154
  195. package/template/.claude/skills/i18n-localization/scripts/i18n_checker.py +0 -241
  196. package/template/.claude/skills/insight/SKILL.md +0 -42
  197. package/template/.claude/skills/issue-triage/SKILL.md +0 -115
  198. package/template/.claude/skills/lint-and-validate/SKILL.md +0 -45
  199. package/template/.claude/skills/lint-and-validate/scripts/lint_runner.py +0 -184
  200. package/template/.claude/skills/lint-and-validate/scripts/type_coverage.py +0 -173
  201. package/template/.claude/skills/mcp-builder/SKILL.md +0 -176
  202. package/template/.claude/skills/merge/SKILL.md +0 -76
  203. package/template/.claude/skills/mobile-design/SKILL.md +0 -394
  204. package/template/.claude/skills/mobile-design/decision-trees.md +0 -516
  205. package/template/.claude/skills/mobile-design/mobile-backend.md +0 -491
  206. package/template/.claude/skills/mobile-design/mobile-color-system.md +0 -420
  207. package/template/.claude/skills/mobile-design/mobile-debugging.md +0 -122
  208. package/template/.claude/skills/mobile-design/mobile-design-thinking.md +0 -357
  209. package/template/.claude/skills/mobile-design/mobile-navigation.md +0 -458
  210. package/template/.claude/skills/mobile-design/mobile-performance.md +0 -767
  211. package/template/.claude/skills/mobile-design/mobile-testing.md +0 -356
  212. package/template/.claude/skills/mobile-design/mobile-typography.md +0 -433
  213. package/template/.claude/skills/mobile-design/platform-android.md +0 -666
  214. package/template/.claude/skills/mobile-design/platform-ios.md +0 -561
  215. package/template/.claude/skills/mobile-design/scripts/mobile_audit.py +0 -670
  216. package/template/.claude/skills/mobile-design/touch-psychology.md +0 -537
  217. package/template/.claude/skills/nextjs-react-expert/1-async-eliminating-waterfalls.md +0 -312
  218. package/template/.claude/skills/nextjs-react-expert/2-bundle-bundle-size-optimization.md +0 -240
  219. package/template/.claude/skills/nextjs-react-expert/3-server-server-side-performance.md +0 -490
  220. package/template/.claude/skills/nextjs-react-expert/4-client-client-side-data-fetching.md +0 -264
  221. package/template/.claude/skills/nextjs-react-expert/5-rerender-re-render-optimization.md +0 -581
  222. package/template/.claude/skills/nextjs-react-expert/6-rendering-rendering-performance.md +0 -432
  223. package/template/.claude/skills/nextjs-react-expert/7-js-javascript-performance.md +0 -684
  224. package/template/.claude/skills/nextjs-react-expert/8-advanced-advanced-patterns.md +0 -150
  225. package/template/.claude/skills/nextjs-react-expert/SKILL.md +0 -286
  226. package/template/.claude/skills/nextjs-react-expert/scripts/convert_rules.py +0 -222
  227. package/template/.claude/skills/nextjs-react-expert/scripts/react_performance_checker.py +0 -252
  228. package/template/.claude/skills/nodejs-best-practices/SKILL.md +0 -333
  229. package/template/.claude/skills/package-json-generator/SKILL.md +0 -60
  230. package/template/.claude/skills/package-json-generator/scripts/generate.js +0 -120
  231. package/template/.claude/skills/package-json-generator/scripts/run.sh +0 -19
  232. package/template/.claude/skills/parallel-agents/SKILL.md +0 -144
  233. package/template/.claude/skills/performance-optimization/SKILL.md +0 -299
  234. package/template/.claude/skills/performance-optimization/performance-checklist.md +0 -113
  235. package/template/.claude/skills/powershell-windows/SKILL.md +0 -167
  236. package/template/.claude/skills/pr/SKILL.md +0 -93
  237. package/template/.claude/skills/prd/SKILL.md +0 -127
  238. package/template/.claude/skills/preview/SKILL.md +0 -42
  239. package/template/.claude/skills/python-patterns/SKILL.md +0 -441
  240. package/template/.claude/skills/research/SKILL.md +0 -143
  241. package/template/.claude/skills/review/SKILL.md +0 -71
  242. package/template/.claude/skills/roadmap-strategy/SKILL.md +0 -94
  243. package/template/.claude/skills/security-review/SKILL.md +0 -63
  244. package/template/.claude/skills/seo-fundamentals/SKILL.md +0 -129
  245. package/template/.claude/skills/seo-fundamentals/scripts/seo_checker.py +0 -219
  246. package/template/.claude/skills/server-management/SKILL.md +0 -161
  247. package/template/.claude/skills/simplify/SKILL.md +0 -70
  248. package/template/.claude/skills/skill-development/SKILL.md +0 -86
  249. package/template/.claude/skills/spec/SKILL.md +0 -39
  250. package/template/.claude/skills/spec-driven-development/SKILL.md +0 -207
  251. package/template/.claude/skills/tailwind-patterns/SKILL.md +0 -269
  252. package/template/.claude/skills/type-design/SKILL.md +0 -84
  253. package/template/.claude/skills/ui-ux-pro-max/SKILL.md +0 -75
@@ -1,122 +0,0 @@
1
- ---
2
- name: nextjs-fullstack
3
- description: Next.js full-stack template principles. App Router, Prisma, Tailwind v4.
4
- ---
5
-
6
- # Next.js Full-Stack Template (2026 Edition)
7
-
8
- ## Tech Stack
9
-
10
- | Component | Technology | Version / Notes |
11
- |-----------|------------|-----------------|
12
- | Framework | Next.js | v16+ (App Router, Turbopack) |
13
- | Language | TypeScript | v5+ (Strict Mode) |
14
- | Database | PostgreSQL | Prisma ORM (Serverless friendly) |
15
- | Styling | Tailwind CSS | v4.0 (Zero-config, CSS-first) |
16
- | Auth | Clerk / Better Auth | Middleware Protected Routes |
17
- | UI Logic | React 19 | Server Actions, useActionState |
18
- | Validation | Zod | Schema validation (API & Forms) |
19
-
20
- ---
21
-
22
- ## Directory Structure
23
-
24
- ```
25
- project-name/
26
- ├── prisma/
27
- │ └── schema.prisma # Database schema
28
- ├── src/
29
- │ ├── app/
30
- │ │ ├── (auth)/ # Route groups for Login/Register
31
- │ │ ├── (dashboard)/ # Protected routes
32
- │ │ ├── api/ # Route Handlers (only for Webhooks/External integration)
33
- │ │ ├── layout.tsx # Root Layout (Metadata, Providers)
34
- │ │ ├── page.tsx # Landing Page
35
- │ │ └── globals.css # Tailwind v4 config (@theme) lives here
36
- │ ├── components/
37
- │ │ ├── ui/ # Reusable UI (Button, Input)
38
- │ │ └── forms/ # Client forms using useActionState
39
- │ ├── lib/
40
- │ │ ├── db.ts # Prisma singleton client
41
- │ │ ├── utils.ts # Helper functions
42
- │ │ └── dal.ts # Data Access Layer (Server-only)
43
- │ ├── actions/ # Server Actions (Mutations)
44
- │ └── types/ # Global TS Types
45
- ├── public/
46
- ├── next.config.ts # TypeScript Config
47
- └── package.json
48
- ```
49
-
50
- ---
51
-
52
- ## Key Concepts (Updated)
53
-
54
- | Concept | Description |
55
- |---------|-------------|
56
- | Server Components | Render on server (default). Direct DB access (Prisma) without APIs. |
57
- | Server Actions | Handle Form mutations. Replaces traditional API Routes. Use in action={}. |
58
- | React 19 Hooks | Form state management: useActionState, useFormStatus, useOptimistic. |
59
- | Data Access Layer | Data security. Separation of DB logic (DTOs) for safe reuse. |
60
- | Tailwind v4 | Styling engine. No tailwind.config.js. Config directly in CSS. |
61
-
62
- ---
63
-
64
- ## Environment Variables
65
-
66
- | Variable | Purpose |
67
- |----------|---------|
68
- | DATABASE_URL | PostgreSQL connection string (Prisma) |
69
- | NEXT_PUBLIC_APP_URL | Public application URL |
70
- | NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY | Auth (if using Clerk) |
71
- | CLERK_SECRET_KEY | Auth Secret (Server only) |
72
-
73
- ---
74
-
75
- ## Setup Steps
76
-
77
- 1. Initialize Project:
78
- ```bash
79
- npx create-next-app@latest my-app --typescript --tailwind --eslint
80
- # Select Yes for App Router
81
- # Select No for src directory (optional, this template uses src)
82
- ```
83
-
84
- 2. Install DB & Validation:
85
- ```bash
86
- npm install prisma @prisma/client zod
87
- npm install -D ts-node # For running seed scripts
88
- ```
89
-
90
- 3. Configure Tailwind v4 (If missing):
91
- Ensure `src/app/globals.css` uses the new import syntax instead of a config file:
92
- ```css
93
- @import "tailwindcss";
94
-
95
- @theme {
96
- --color-primary: oklch(0.5 0.2 240);
97
- --font-sans: "Inter", sans-serif;
98
- }
99
- ```
100
-
101
- 4. Initialize Database:
102
- ```bash
103
- npx prisma init
104
- # Update schema.prisma
105
- npm run db:push
106
- ```
107
-
108
- 5. Run Developer Server:
109
- ```bash
110
- npm run dev --turbo
111
- # --turbo to enable faster Turbopack
112
- ```
113
-
114
- ---
115
-
116
- ## Best Practices (2026 Standards)
117
-
118
- - **Fetch Data**: Call Prisma directly in Server Components (async/await). Do not use useEffect for initial data fetching.
119
- - **Mutations**: Use Server Actions combined with React 19's `useActionState` to handle loading and error states instead of manual useState.
120
- - **Type Safety**: Share Zod schemas between Server Actions (input validation) and Client Forms.
121
- - **Security**: Always validate input data with Zod before passing it to Prisma.
122
- - **Styling**: Use native CSS variables in Tailwind v4 for easier dynamic theming.
@@ -1,122 +0,0 @@
1
- ---
2
- name: nextjs-saas
3
- description: Next.js SaaS template principles (2026 Standards). React 19, Server Actions, Auth.js v6.
4
- ---
5
-
6
- # Next.js SaaS Template (Updated 2026)
7
-
8
- ## Tech Stack
9
-
10
- | Component | Technology | Version / Notes |
11
- |-----------|------------|-----------------|
12
- | Framework | Next.js | v16+ (App Router, React Compiler) |
13
- | Runtime | Node.js | v24 (Krypton LTS) |
14
- | Auth | Auth.js | v6 (formerly NextAuth) |
15
- | Payments | Stripe API | Latest |
16
- | Database | PostgreSQL | Prisma v6 (Serverless Driver) |
17
- | Email | Resend | React Email |
18
- | UI | Tailwind CSS | v4 (Oxide Engine, no config file) |
19
-
20
- ---
21
-
22
- ## Directory Structure
23
-
24
- ```
25
- project-name/
26
- ├── prisma/
27
- │ └── schema.prisma # Database Schema
28
- ├── src/
29
- │ ├── actions/ # NEW: Server Actions (Replaces API Routes for data mutation)
30
- │ │ ├── auth-actions.ts
31
- │ │ ├── billing-actions.ts
32
- │ │ └── user-actions.ts
33
- │ ├── app/
34
- │ │ ├── (auth)/ # Route Group: Login, register
35
- │ │ ├── (dashboard)/ # Route Group: Protected routes (App Layout)
36
- │ │ ├── (marketing)/ # Route Group: Landing, pricing (Marketing Layout)
37
- │ │ └── api/ # Only used for Webhooks or Edge cases
38
- │ │ └── webhooks/stripe/
39
- │ ├── components/
40
- │ │ ├── emails/ # React Email templates
41
- │ │ ├── forms/ # Client components using useActionState (React 19)
42
- │ │ └── ui/ # Shadcn UI
43
- │ ├── lib/
44
- │ │ ├── auth.ts # Auth.js v6 config
45
- │ │ ├── db.ts # Prisma Singleton
46
- │ │ └── stripe.ts # Stripe Singleton
47
- │ └── styles/
48
- │ └── globals.css # Tailwind v4 imports (CSS only)
49
- └── package.json
50
- ```
51
-
52
- ---
53
-
54
- ## SaaS Features
55
-
56
- | Feature | Implementation |
57
- |---------|---------------|
58
- | Auth | Auth.js v6 + Passkeys + OAuth |
59
- | Data Mutation | Server Actions (No API routes) |
60
- | Subscriptions | Stripe Checkout & Customer Portal |
61
- | Webhooks | Asynchronous Stripe event handling |
62
- | Email | Transactional via Resend |
63
- | Validation | Zod (Server-side validation) |
64
-
65
- ---
66
-
67
- ## Database Schema
68
-
69
- | Model | Fields (Key fields) |
70
- |-------|---------------------|
71
- | User | id, email, stripeCustomerId, subscriptionId, plan |
72
- | Account | OAuth provider data (Google, GitHub...) |
73
- | Session | User sessions (Database strategy) |
74
-
75
- ---
76
-
77
- ## Environment Variables
78
-
79
- | Variable | Purpose |
80
- |----------|---------|
81
- | DATABASE_URL | Prisma connection string (Postgres) |
82
- | AUTH_SECRET | Replaces NEXTAUTH_SECRET (Auth.js v6) |
83
- | STRIPE_SECRET_KEY | Payments (Server-side) |
84
- | STRIPE_WEBHOOK_SECRET | Webhook verification |
85
- | RESEND_API_KEY | Email sending |
86
- | NEXT_PUBLIC_APP_URL | Application Canonical URL |
87
-
88
- ---
89
-
90
- ## Setup Steps
91
-
92
- 1. Initialize project (Node 24):
93
- ```bash
94
- npx create-next-app@latest {{name}} --typescript --eslint
95
- ```
96
-
97
- 2. Install core libraries:
98
- ```bash
99
- npm install next-auth@beta stripe resend @prisma/client
100
- ```
101
-
102
- 3. Install Tailwind v4 (Add to globals.css):
103
- ```css
104
- @import "tailwindcss";
105
- ```
106
-
107
- 4. Configure environment (.env.local)
108
-
109
- 5. Sync Database:
110
- ```bash
111
- npx prisma db push
112
- ```
113
-
114
- 6. Run local Webhook:
115
- ```bash
116
- npm run stripe:listen
117
- ```
118
-
119
- 7. Run project:
120
- ```bash
121
- npm run dev
122
- ```
@@ -1,169 +0,0 @@
1
- ---
2
- name: nextjs-static
3
- description: Modern template for Next.js 16, React 19 & Tailwind v4. Optimized for Landing pages and Portfolios.
4
- ---
5
-
6
- # Next.js Static Site Template (Modern Edition)
7
-
8
- ## Tech Stack
9
-
10
- | Component | Technology | Notes |
11
- |-----------|------------|-------|
12
- | Framework | Next.js 16+ | App Router, Turbopack, Static Exports |
13
- | Core | React 19 | Server Components, New Hooks, Compiler |
14
- | Language | TypeScript | Strict Mode |
15
- | Styling | Tailwind CSS v4 | CSS-first configuration (No js config), Oxide Engine |
16
- | Animations | Framer Motion | Layout animations & gestures |
17
- | Icons | Lucide React | Lightweight SVG icons |
18
- | SEO | Metadata API | Native Next.js API (Replaces next-seo) |
19
-
20
- ---
21
-
22
- ## Directory Structure
23
-
24
- Streamlined structure thanks to Tailwind v4 (theme configuration lives inside CSS).
25
-
26
- ```
27
- project-name/
28
- ├── src/
29
- │ ├── app/
30
- │ │ ├── layout.tsx # Contains root SEO Metadata
31
- │ │ ├── page.tsx # Landing Page
32
- │ │ ├── globals.css # Import Tailwind v4 & @theme config
33
- │ │ ├── not-found.tsx # Custom 404 page
34
- │ │ └── (routes)/ # Route groups (about, contact...)
35
- │ ├── components/
36
- │ │ ├── layout/ # Header, Footer
37
- │ │ ├── sections/ # Hero, Features, Pricing, CTA
38
- │ │ └── ui/ # Atomic components (Button, Card)
39
- │ └── lib/
40
- │ └── utils.ts # Helper functions (cn, formatters)
41
- ├── content/ # Markdown/MDX content
42
- ├── public/ # Static assets (images, fonts)
43
- ├── next.config.ts # Next.js Config (TypeScript)
44
- └── package.json
45
- ```
46
-
47
- ---
48
-
49
- ## Static Export Config
50
-
51
- Using `next.config.ts` instead of `.js` for better type safety.
52
-
53
- ```typescript
54
- // next.config.ts
55
- import type { NextConfig } from "next";
56
-
57
- const nextConfig: NextConfig = {
58
- output: 'export', // Required for Static Hosting (S3, GitHub Pages)
59
- images: {
60
- unoptimized: true // Required if not using Node.js server image optimization
61
- },
62
- trailingSlash: true, // Recommended for SEO and fixing 404s on some hosts
63
- reactStrictMode: true,
64
- };
65
-
66
- export default nextConfig;
67
- ```
68
-
69
- ---
70
-
71
- ## SEO Implementation (Metadata API)
72
-
73
- Deprecated next-seo. Configure directly in layout.tsx or page.tsx.
74
-
75
- ```typescript
76
- // src/app/layout.tsx
77
- import type { Metadata } from 'next';
78
-
79
- export const metadata: Metadata = {
80
- title: {
81
- template: '%s | Product Name',
82
- default: 'Home - Product Name',
83
- },
84
- description: 'SEO optimized description for the landing page.',
85
- openGraph: {
86
- type: 'website',
87
- locale: 'en_US',
88
- url: 'https://mysite.com',
89
- siteName: 'My Brand',
90
- },
91
- };
92
- ```
93
-
94
- ---
95
-
96
- ## Landing Page Sections
97
-
98
- | Section | Purpose | Suggested Component |
99
- |---------|---------|---------------------|
100
- | Hero | First impression, H1 & Main CTA | `<HeroSection />` |
101
- | Features | Product benefits (Grid/Bento layout) | `<FeaturesGrid />` |
102
- | Social Proof | Partner logos, User numbers | `<LogoCloud />` |
103
- | Testimonials | Customer reviews | `<TestimonialCarousel />` |
104
- | Pricing | Service plans | `<PricingCards />` |
105
- | FAQ | Questions & Answers (Good for SEO) | `<Accordion />` |
106
- | CTA | Final conversion | `<CallToAction />` |
107
-
108
- ---
109
-
110
- ## Animation Patterns (Framer Motion)
111
-
112
- | Pattern | Usage | Implementation |
113
- |---------|-------|----------------|
114
- | Fade Up | Headlines, paragraphs | `initial={{ opacity: 0, y: 20 }} animate={{ opacity: 1, y: 0 }}` |
115
- | Stagger | Lists of Features/Cards | Use variants with `staggerChildren` |
116
- | Parallax | Background images or floating elements | `useScroll` & `useTransform` |
117
- | Micro-interactions | Hover buttons, click effects | `whileHover={{ scale: 1.05 }} whileTap={{ scale: 0.95 }}` |
118
-
119
- ---
120
-
121
- ## Setup Steps
122
-
123
- 1. Initialize Project:
124
- ```bash
125
- npx create-next-app@latest my-site --typescript --tailwind --eslint
126
- # Select 'Yes' for App Router
127
- # Select 'No' for 'Would you like to customize the default import alias?'
128
- ```
129
-
130
- 2. Install Auxiliary Libraries:
131
- ```bash
132
- npm install framer-motion lucide-react clsx tailwind-merge
133
- # clsx and tailwind-merge help handle dynamic classes better
134
- ```
135
-
136
- 3. Configure Tailwind v4 (in `src/app/globals.css`):
137
- ```css
138
- @import "tailwindcss";
139
-
140
- @theme {
141
- --color-primary: #3b82f6;
142
- --font-sans: 'Inter', sans-serif;
143
- }
144
- ```
145
-
146
- 4. Development:
147
- ```bash
148
- npm run dev --turbopack
149
- ```
150
-
151
- ---
152
-
153
- ## Deployment
154
-
155
- | Platform | Method | Important Notes |
156
- |----------|--------|-----------------|
157
- | Vercel | Git Push | Auto-detects Next.js. Best for performance. |
158
- | GitHub Pages | GitHub Actions | Need to set `basePath` in `next.config.ts` if not using a custom domain. |
159
- | AWS S3 / CloudFront | Upload out folder | Ensure Error Document is configured to `404.html`. |
160
- | Netlify | Git Push | Set build command to `npm run build`. |
161
-
162
- ---
163
-
164
- ## Best Practices (Modern)
165
-
166
- - **React Server Components (RSC)**: Default all components to Server Components. Only add `'use client'` when you need state (`useState`) or event listeners (`onClick`).
167
- - **Image Optimization**: Use the `<Image />` component but remember `unoptimized: true` for static export or use an external image CDN (Cloudinary/Imgix).
168
- - **Font Optimization**: Use `next/font` (Google Fonts) to automatically host fonts and prevent layout shift.
169
- - **Responsive**: Mobile-first design using Tailwind prefixes like `sm:`, `md:`, `lg:`.
@@ -1,134 +0,0 @@
1
- ---
2
- name: nuxt-app
3
- description: Nuxt 4 full-stack template. Vue 3 (Vapor), Pinia, Tailwind v4, Prisma.
4
- ---
5
-
6
- # Nuxt 4 Full-Stack Template (2026 Edition)
7
-
8
- Mẫu template Full-Stack hiện đại cho Nuxt 4, tối ưu hóa hiệu suất với Vue Vapor Mode và Tailwind v4.
9
-
10
- ## Tech Stack
11
-
12
- | Component | Technology | Version / Notes |
13
- |-----------|------------|-----------------|
14
- | Framework | Nuxt | v4.0+ (App Directory structure) |
15
- | UI Engine | Vue | v3.6+ (Vapor Mode enabled) |
16
- | Language | TypeScript | v5+ (Strict Mode) |
17
- | State | Pinia | v3+ (Store syntax) |
18
- | Database | PostgreSQL | Prisma ORM |
19
- | Styling | Tailwind CSS | v4.0 (Vite Plugin, Zero-config) |
20
- | UI Lib | Nuxt UI | v3 (Tailwind v4 native) |
21
- | Validation | Zod | Schema validation |
22
-
23
- ---
24
-
25
- ## Directory Structure (Nuxt 4 Standard)
26
-
27
- Sử dụng cấu trúc `app/` để giữ thư mục gốc gọn gàng.
28
-
29
- ```
30
- project-name/
31
- ├── app/ # Application Source
32
- │ ├── assets/
33
- │ │ └── css/
34
- │ │ └── main.css # Tailwind v4 imports
35
- │ ├── components/ # Auto-imported components
36
- │ ├── composables/ # Auto-imported logic
37
- │ ├── layouts/
38
- │ ├── pages/ # File-based routing
39
- │ ├── app.vue # Root component
40
- │ └── router.options.ts
41
- ├── server/ # Nitro Server Engine
42
- │ ├── api/ # API Routes (e.g. /api/users)
43
- │ ├── routes/ # Server Routes
44
- │ └── utils/ # Server-only helpers (Prisma)
45
- ├── prisma/
46
- │ └── schema.prisma
47
- ├── public/
48
- ├── nuxt.config.ts # Main Config
49
- └── package.json
50
- ```
51
-
52
- ---
53
-
54
- ## Key Concepts (2026)
55
-
56
- | Concept | Description | Future Update |
57
- |---------|-------------|---------------|
58
- | **App Directory** | `app/` | Tách biệt mã nguồn ứng dụng và file cấu hình root. |
59
- | **Vapor Mode** | Opt-in performance | Render không cần Virtual DOM (như SolidJS). Bật trong `nuxt.config`. |
60
- | **Server Functions** | RPC-style calls | Gọi hàm server trực tiếp từ client (thay thế dần API routes thủ công). |
61
- | **Tailwind v4** | CSS-first | Cấu hình theme trực tiếp trong CSS, không cần `tailwind.config.js`. |
62
- | **Nuxt Islands** | Server Components | Render component cô lập trên server (`<NuxtIsland name="..." />`). |
63
-
64
- ---
65
-
66
- ## Environment Variables
67
-
68
- | Variable | Purpose |
69
- |----------|---------|
70
- | DATABASE_URL | Prisma connection string (PostgreSQL) |
71
- | NUXT_PUBLIC_APP_URL | Canonical URL |
72
- | NUXT_SESSION_PASSWORD | Session encryption key |
73
-
74
- ---
75
-
76
- ## Setup Steps
77
-
78
- 1. Initialize Project:
79
- ```bash
80
- npx nuxi@latest init my-app
81
- # Select "Nuxt 4 structure" if prompted
82
- ```
83
-
84
- 2. Install Core Deps:
85
- ```bash
86
- npm install @pinia/nuxt @prisma/client zod
87
- npm install -D prisma
88
- ```
89
-
90
- 3. Setup Tailwind v4:
91
- Install the Vite plugin (new standard):
92
- ```bash
93
- npm install tailwindcss @tailwindcss/vite
94
- ```
95
-
96
- Add to `nuxt.config.ts`:
97
- ```ts
98
- import tailwindcss from '@tailwindcss/vite'
99
- export default defineNuxtConfig({
100
- vite: {
101
- plugins: [tailwindcss()]
102
- },
103
- css: ['~/assets/css/main.css']
104
- })
105
- ```
106
-
107
- 4. Configure CSS:
108
- In `app/assets/css/main.css`:
109
- ```css
110
- @import "tailwindcss";
111
- @theme {
112
- --color-primary: oklch(0.6 0.15 150);
113
- }
114
- ```
115
-
116
- 5. Run Development:
117
- ```bash
118
- npm run dev
119
- # Runs with Turbo/Vite
120
- ```
121
-
122
- ---
123
-
124
- ## Best Practices
125
-
126
- - **Vapor Mode**: Kích hoạt cho các component nặng về render:
127
- ```ts
128
- <script setup lang="ts" vapor>
129
- // Component này sẽ compile sang chế độ Vapor (No VDOM)
130
- </script>
131
- ```
132
- - **Data Fetching**: Sử dụng `useFetch` với `server: false` cho các tác vụ client-only, hoặc dùng Server Functions để type-safety tốt hơn.
133
- - **State**: Dùng `defineStore` (Pinia) cho global state, `useState` của Nuxt cho state đơn giản chia sẻ giữa Server/Client.
134
- - **Type Safety**: Tự động tạo type cho API routes (`$fetch` typed automatically).
@@ -1,83 +0,0 @@
1
- ---
2
- name: python-fastapi
3
- description: FastAPI REST API template principles. SQLAlchemy, Pydantic, Alembic.
4
- ---
5
-
6
- # FastAPI API Template
7
-
8
- ## Tech Stack
9
-
10
- | Component | Technology |
11
- |-----------|------------|
12
- | Framework | FastAPI |
13
- | Language | Python 3.11+ |
14
- | ORM | SQLAlchemy 2.0 |
15
- | Validation | Pydantic v2 |
16
- | Migrations | Alembic |
17
- | Auth | JWT + passlib |
18
-
19
- ---
20
-
21
- ## Directory Structure
22
-
23
- ```
24
- project-name/
25
- ├── alembic/ # Migrations
26
- ├── app/
27
- │ ├── main.py # FastAPI app
28
- │ ├── config.py # Settings
29
- │ ├── database.py # DB connection
30
- │ ├── models/ # SQLAlchemy models
31
- │ ├── schemas/ # Pydantic schemas
32
- │ ├── routers/ # API routes
33
- │ ├── services/ # Business logic
34
- │ ├── dependencies/ # DI
35
- │ └── utils/
36
- ├── tests/
37
- ├── .env.example
38
- └── requirements.txt
39
- ```
40
-
41
- ---
42
-
43
- ## Key Concepts
44
-
45
- | Concept | Description |
46
- |---------|-------------|
47
- | Async | async/await throughout |
48
- | Dependency Injection | FastAPI Depends |
49
- | Pydantic v2 | Validation + serialization |
50
- | SQLAlchemy 2.0 | Async sessions |
51
-
52
- ---
53
-
54
- ## API Structure
55
-
56
- | Layer | Responsibility |
57
- |-------|---------------|
58
- | Routers | HTTP handling |
59
- | Dependencies | Auth, validation |
60
- | Services | Business logic |
61
- | Models | Database entities |
62
- | Schemas | Request/response |
63
-
64
- ---
65
-
66
- ## Setup Steps
67
-
68
- 1. `python -m venv venv`
69
- 2. `source venv/bin/activate`
70
- 3. `pip install fastapi uvicorn sqlalchemy alembic pydantic`
71
- 4. Create `.env`
72
- 5. `alembic upgrade head`
73
- 6. `uvicorn app.main:app --reload`
74
-
75
- ---
76
-
77
- ## Best Practices
78
-
79
- - Use async everywhere
80
- - Pydantic v2 for validation
81
- - SQLAlchemy 2.0 async sessions
82
- - Alembic for migrations
83
- - pytest-asyncio for tests