@digilogiclabs/create-saas-app 2.0.0 → 2.2.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 (348) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +975 -891
  3. package/dist/.tsbuildinfo +1 -1
  4. package/dist/generators/template-generator.d.ts +11 -0
  5. package/dist/generators/template-generator.d.ts.map +1 -1
  6. package/dist/generators/template-generator.js +389 -18
  7. package/dist/generators/template-generator.js.map +1 -1
  8. package/dist/index.js +1837 -0
  9. package/dist/index.js.map +1 -0
  10. package/dist/templates/infrastructure/kubernetes/base/template/README.md +253 -0
  11. package/dist/templates/infrastructure/kubernetes/base/template/configmap.yaml +12 -0
  12. package/dist/templates/infrastructure/kubernetes/base/template/deployment.yaml +123 -0
  13. package/dist/templates/infrastructure/kubernetes/base/template/hpa.yaml +45 -0
  14. package/dist/templates/infrastructure/kubernetes/base/template/ingress.yaml +31 -0
  15. package/dist/templates/infrastructure/kubernetes/base/template/kustomization.yaml +25 -0
  16. package/dist/templates/infrastructure/kubernetes/base/template/namespace.yaml +8 -0
  17. package/dist/templates/infrastructure/kubernetes/base/template/networkpolicy.yaml +48 -0
  18. package/dist/templates/infrastructure/kubernetes/base/template/pdb.yaml +14 -0
  19. package/dist/templates/infrastructure/kubernetes/base/template/secret.yaml +17 -0
  20. package/dist/templates/infrastructure/kubernetes/base/template/service.yaml +19 -0
  21. package/dist/templates/infrastructure/kubernetes/base/template/serviceaccount.yaml +9 -0
  22. package/dist/templates/infrastructure/kubernetes/production/template/kustomization.yaml +92 -0
  23. package/dist/templates/infrastructure/terraform/aws/template/README.md +156 -0
  24. package/dist/templates/infrastructure/terraform/aws/template/main.tf +343 -0
  25. package/dist/templates/infrastructure/terraform/aws/template/outputs.tf +66 -0
  26. package/dist/templates/infrastructure/terraform/aws/template/terraform.tfvars.example +28 -0
  27. package/dist/templates/infrastructure/terraform/aws/template/variables.tf +110 -0
  28. package/dist/templates/infrastructure/terraform/gcp/template/README.md +165 -0
  29. package/dist/templates/infrastructure/terraform/gcp/template/main.tf +397 -0
  30. package/dist/templates/infrastructure/terraform/gcp/template/outputs.tf +51 -0
  31. package/dist/templates/infrastructure/terraform/gcp/template/terraform.tfvars.example +29 -0
  32. package/dist/templates/infrastructure/terraform/gcp/template/variables.tf +115 -0
  33. package/dist/templates/shared/admin/web/app/admin/layout.tsx +34 -0
  34. package/dist/templates/shared/admin/web/components/admin-nav.tsx +48 -0
  35. package/dist/templates/shared/audit/web/lib/audit.ts +24 -0
  36. package/dist/templates/shared/auth/keycloak/web/app/api/auth/federated-logout/route.ts +173 -0
  37. package/dist/templates/shared/auth/keycloak/web/auth.config.ts +84 -0
  38. package/dist/templates/shared/auth/keycloak/web/auth.ts +26 -0
  39. package/dist/templates/shared/beta/web/app/api/beta-settings/route.ts +25 -0
  40. package/dist/templates/shared/beta/web/app/api/validate-beta-code/route.ts +67 -0
  41. package/dist/templates/shared/beta/web/lib/beta/settings.ts +31 -0
  42. package/dist/templates/shared/cache/web/lib/cache.ts +44 -0
  43. package/dist/templates/shared/config/web/lib/config.ts +112 -0
  44. package/dist/templates/shared/config/web/next.config.mjs +62 -0
  45. package/dist/templates/shared/contact/web/app/api/contact/route.ts +113 -0
  46. package/dist/templates/shared/contact/web/app/contact/page.tsx +195 -0
  47. package/dist/templates/shared/cookie-consent/web/components/cookie-consent.tsx +54 -0
  48. package/dist/templates/shared/database/postgresql/web/drizzle.config.ts +16 -0
  49. package/dist/templates/shared/database/postgresql/web/lib/db/drizzle.ts +39 -0
  50. package/dist/templates/shared/database/postgresql/web/lib/db/schema.ts +33 -0
  51. package/dist/templates/shared/database/supabase/web/lib/supabase/client.ts +12 -0
  52. package/dist/templates/shared/database/supabase/web/lib/supabase/server.ts +31 -0
  53. package/dist/templates/shared/database/supabase/web/lib/supabase/service.ts +15 -0
  54. package/dist/templates/shared/email/web/lib/email/branding.ts +18 -0
  55. package/dist/templates/shared/email/web/lib/email/client.ts +96 -0
  56. package/dist/templates/shared/error-pages/web/app/error.tsx +70 -0
  57. package/dist/templates/shared/error-pages/web/app/global-error.tsx +102 -0
  58. package/dist/templates/shared/error-pages/web/app/not-found.tsx +39 -0
  59. package/dist/templates/shared/health/web/app/api/health/route.ts +68 -0
  60. package/dist/templates/shared/legal/web/app/(legal)/privacy/page.tsx +205 -0
  61. package/dist/templates/shared/legal/web/app/(legal)/terms/page.tsx +154 -0
  62. package/dist/templates/shared/legal/web/lib/legal-config.ts +50 -0
  63. package/dist/templates/shared/loading/web/app/loading.tsx +5 -0
  64. package/dist/templates/shared/loading/web/components/skeleton.tsx +95 -0
  65. package/dist/templates/shared/middleware/web/middleware.ts +68 -0
  66. package/dist/templates/shared/observability/web/lib/observability.ts +135 -0
  67. package/dist/templates/shared/payments/web/app/api/webhooks/stripe/route.ts +109 -0
  68. package/dist/templates/shared/platform/web/lib/platform.ts +37 -0
  69. package/dist/templates/shared/redis/web/lib/rate-limit-store.ts +18 -0
  70. package/dist/templates/shared/redis/web/lib/redis.ts +48 -0
  71. package/dist/templates/shared/security/web/lib/api-security.ts +318 -0
  72. package/dist/templates/shared/seo/web/app/api/og/route.tsx +97 -0
  73. package/dist/templates/shared/seo/web/app/robots.ts +53 -0
  74. package/dist/templates/shared/seo/web/app/sitemap.ts +53 -0
  75. package/dist/templates/shared/utils/web/lib/api-response.ts +71 -0
  76. package/dist/templates/shared/utils/web/lib/utils.ts +85 -0
  77. package/dist/templates/web/ai-platform/template/.env.example +16 -0
  78. package/dist/templates/web/ai-platform/template/README.md +84 -0
  79. package/dist/templates/web/ai-platform/template/middleware.ts +55 -0
  80. package/dist/templates/web/ai-platform/template/next.config.js +14 -0
  81. package/dist/templates/web/ai-platform/template/package.json +55 -0
  82. package/dist/templates/web/ai-platform/template/src/app/api/chat/route.ts +54 -0
  83. package/dist/templates/web/ai-platform/template/src/app/chat/page.tsx +235 -0
  84. package/dist/templates/web/ai-platform/template/src/app/dashboard/page.tsx +142 -0
  85. package/dist/templates/web/ai-platform/template/src/app/globals.css +34 -0
  86. package/dist/templates/web/ai-platform/template/src/app/layout.tsx +27 -0
  87. package/dist/templates/web/ai-platform/template/src/app/page.tsx +203 -0
  88. package/dist/templates/web/ai-platform/template/src/components/providers/app-providers.tsx +27 -0
  89. package/dist/templates/web/ai-platform/template/src/lib/auth-server.ts +33 -0
  90. package/dist/templates/web/ai-platform/template/src/lib/supabase/client.ts +8 -0
  91. package/dist/templates/web/ai-platform/template/src/lib/supabase/server.ts +27 -0
  92. package/dist/templates/web/ai-platform/template/src/lib/utils.ts +6 -0
  93. package/dist/templates/web/ai-platform/template/tsconfig.json +27 -0
  94. package/dist/templates/web/iot-dashboard/template/.env.example +12 -0
  95. package/dist/templates/web/iot-dashboard/template/README.md +101 -0
  96. package/dist/templates/web/iot-dashboard/template/middleware.ts +56 -0
  97. package/dist/templates/web/iot-dashboard/template/next.config.js +14 -0
  98. package/dist/templates/web/iot-dashboard/template/package.json +49 -0
  99. package/dist/templates/web/iot-dashboard/template/src/app/dashboard/page.tsx +229 -0
  100. package/dist/templates/web/iot-dashboard/template/src/app/globals.css +20 -0
  101. package/dist/templates/web/iot-dashboard/template/src/app/layout.tsx +27 -0
  102. package/dist/templates/web/iot-dashboard/template/src/app/page.tsx +191 -0
  103. package/dist/templates/web/iot-dashboard/template/src/components/providers/app-providers.tsx +24 -0
  104. package/dist/templates/web/iot-dashboard/template/src/lib/auth-server.ts +33 -0
  105. package/dist/templates/web/iot-dashboard/template/src/lib/supabase/client.ts +8 -0
  106. package/dist/templates/web/iot-dashboard/template/src/lib/supabase/server.ts +27 -0
  107. package/dist/templates/web/iot-dashboard/template/src/lib/utils.ts +25 -0
  108. package/dist/templates/web/iot-dashboard/template/tsconfig.json +27 -0
  109. package/dist/templates/web/marketplace/template/.env.example +12 -0
  110. package/dist/templates/web/marketplace/template/README.md +66 -0
  111. package/dist/templates/web/marketplace/template/middleware.ts +56 -0
  112. package/dist/templates/web/marketplace/template/next.config.js +14 -0
  113. package/dist/templates/web/marketplace/template/package.json +51 -0
  114. package/dist/templates/web/marketplace/template/src/app/cart/page.tsx +147 -0
  115. package/dist/templates/web/marketplace/template/src/app/dashboard/page.tsx +149 -0
  116. package/dist/templates/web/marketplace/template/src/app/globals.css +20 -0
  117. package/dist/templates/web/marketplace/template/src/app/layout.tsx +27 -0
  118. package/dist/templates/web/marketplace/template/src/app/page.tsx +167 -0
  119. package/dist/templates/web/marketplace/template/src/app/products/page.tsx +129 -0
  120. package/dist/templates/web/marketplace/template/src/components/providers/app-providers.tsx +27 -0
  121. package/dist/templates/web/marketplace/template/src/lib/auth-server.ts +33 -0
  122. package/dist/templates/web/marketplace/template/src/lib/supabase/client.ts +8 -0
  123. package/dist/templates/web/marketplace/template/src/lib/supabase/server.ts +27 -0
  124. package/dist/templates/web/marketplace/template/src/lib/utils.ts +19 -0
  125. package/dist/templates/web/marketplace/template/tsconfig.json +27 -0
  126. package/dist/templates/web/micro-saas/template/.env.example +10 -0
  127. package/dist/templates/web/micro-saas/template/README.md +63 -0
  128. package/dist/templates/web/micro-saas/template/middleware.ts +53 -0
  129. package/dist/templates/web/micro-saas/template/next.config.js +14 -0
  130. package/dist/templates/web/micro-saas/template/package.json +41 -0
  131. package/dist/templates/web/micro-saas/template/src/app/dashboard/page.tsx +117 -0
  132. package/dist/templates/web/micro-saas/template/src/app/globals.css +20 -0
  133. package/dist/templates/web/micro-saas/template/src/app/layout.tsx +27 -0
  134. package/dist/templates/web/micro-saas/template/src/app/login/page.tsx +87 -0
  135. package/dist/templates/web/micro-saas/template/src/app/page.tsx +137 -0
  136. package/dist/templates/web/micro-saas/template/src/app/signup/page.tsx +108 -0
  137. package/dist/templates/web/micro-saas/template/src/components/providers/app-providers.tsx +24 -0
  138. package/dist/templates/web/micro-saas/template/src/lib/auth-server.ts +33 -0
  139. package/dist/templates/web/micro-saas/template/src/lib/supabase/client.ts +8 -0
  140. package/dist/templates/web/micro-saas/template/src/lib/supabase/server.ts +29 -0
  141. package/dist/templates/web/micro-saas/template/src/lib/utils.ts +6 -0
  142. package/dist/templates/web/micro-saas/template/tsconfig.json +27 -0
  143. package/package.json +5 -4
  144. package/src/templates/infrastructure/kubernetes/base/template/README.md +253 -0
  145. package/src/templates/infrastructure/kubernetes/base/template/configmap.yaml +12 -0
  146. package/src/templates/infrastructure/kubernetes/base/template/deployment.yaml +123 -0
  147. package/src/templates/infrastructure/kubernetes/base/template/hpa.yaml +45 -0
  148. package/src/templates/infrastructure/kubernetes/base/template/ingress.yaml +31 -0
  149. package/src/templates/infrastructure/kubernetes/base/template/kustomization.yaml +25 -0
  150. package/src/templates/infrastructure/kubernetes/base/template/namespace.yaml +8 -0
  151. package/src/templates/infrastructure/kubernetes/base/template/networkpolicy.yaml +48 -0
  152. package/src/templates/infrastructure/kubernetes/base/template/pdb.yaml +14 -0
  153. package/src/templates/infrastructure/kubernetes/base/template/secret.yaml +17 -0
  154. package/src/templates/infrastructure/kubernetes/base/template/service.yaml +19 -0
  155. package/src/templates/infrastructure/kubernetes/base/template/serviceaccount.yaml +9 -0
  156. package/src/templates/infrastructure/kubernetes/production/template/kustomization.yaml +92 -0
  157. package/src/templates/infrastructure/terraform/aws/template/README.md +156 -0
  158. package/src/templates/infrastructure/terraform/aws/template/main.tf +343 -0
  159. package/src/templates/infrastructure/terraform/aws/template/outputs.tf +66 -0
  160. package/src/templates/infrastructure/terraform/aws/template/terraform.tfvars.example +28 -0
  161. package/src/templates/infrastructure/terraform/aws/template/variables.tf +110 -0
  162. package/src/templates/infrastructure/terraform/gcp/template/README.md +165 -0
  163. package/src/templates/infrastructure/terraform/gcp/template/main.tf +397 -0
  164. package/src/templates/infrastructure/terraform/gcp/template/outputs.tf +51 -0
  165. package/src/templates/infrastructure/terraform/gcp/template/terraform.tfvars.example +29 -0
  166. package/src/templates/infrastructure/terraform/gcp/template/variables.tf +115 -0
  167. package/src/templates/shared/admin/web/app/admin/layout.tsx +34 -0
  168. package/src/templates/shared/admin/web/components/admin-nav.tsx +48 -0
  169. package/src/templates/shared/audit/web/lib/audit.ts +24 -0
  170. package/src/templates/shared/auth/keycloak/web/app/api/auth/federated-logout/route.ts +173 -0
  171. package/src/templates/shared/auth/keycloak/web/auth.config.ts +84 -0
  172. package/src/templates/shared/auth/keycloak/web/auth.ts +26 -0
  173. package/src/templates/shared/beta/web/app/api/beta-settings/route.ts +25 -0
  174. package/src/templates/shared/beta/web/app/api/validate-beta-code/route.ts +67 -0
  175. package/src/templates/shared/beta/web/lib/beta/settings.ts +31 -0
  176. package/src/templates/shared/cache/web/lib/cache.ts +44 -0
  177. package/src/templates/shared/config/web/lib/config.ts +112 -0
  178. package/src/templates/shared/config/web/next.config.mjs +62 -0
  179. package/src/templates/shared/contact/web/app/api/contact/route.ts +113 -0
  180. package/src/templates/shared/contact/web/app/contact/page.tsx +195 -0
  181. package/src/templates/shared/cookie-consent/web/components/cookie-consent.tsx +54 -0
  182. package/src/templates/shared/database/postgresql/web/drizzle.config.ts +16 -0
  183. package/src/templates/shared/database/postgresql/web/lib/db/drizzle.ts +39 -0
  184. package/src/templates/shared/database/postgresql/web/lib/db/schema.ts +33 -0
  185. package/src/templates/shared/database/supabase/web/lib/supabase/client.ts +12 -0
  186. package/src/templates/shared/database/supabase/web/lib/supabase/server.ts +31 -0
  187. package/src/templates/shared/database/supabase/web/lib/supabase/service.ts +15 -0
  188. package/src/templates/shared/email/web/lib/email/branding.ts +18 -0
  189. package/src/templates/shared/email/web/lib/email/client.ts +96 -0
  190. package/src/templates/shared/error-pages/web/app/error.tsx +70 -0
  191. package/src/templates/shared/error-pages/web/app/global-error.tsx +102 -0
  192. package/src/templates/shared/error-pages/web/app/not-found.tsx +39 -0
  193. package/src/templates/shared/health/web/app/api/health/route.ts +68 -0
  194. package/src/templates/shared/legal/web/app/(legal)/privacy/page.tsx +205 -0
  195. package/src/templates/shared/legal/web/app/(legal)/terms/page.tsx +154 -0
  196. package/src/templates/shared/legal/web/lib/legal-config.ts +50 -0
  197. package/src/templates/shared/loading/web/app/loading.tsx +5 -0
  198. package/src/templates/shared/loading/web/components/skeleton.tsx +95 -0
  199. package/src/templates/shared/middleware/web/middleware.ts +68 -0
  200. package/src/templates/shared/observability/web/lib/observability.ts +135 -0
  201. package/src/templates/shared/payments/web/app/api/webhooks/stripe/route.ts +109 -0
  202. package/src/templates/shared/platform/web/lib/platform.ts +37 -0
  203. package/src/templates/shared/redis/web/lib/rate-limit-store.ts +18 -0
  204. package/src/templates/shared/redis/web/lib/redis.ts +48 -0
  205. package/src/templates/shared/security/web/lib/api-security.ts +318 -0
  206. package/src/templates/shared/seo/web/app/api/og/route.tsx +97 -0
  207. package/src/templates/shared/seo/web/app/robots.ts +53 -0
  208. package/src/templates/shared/seo/web/app/sitemap.ts +53 -0
  209. package/src/templates/shared/utils/web/lib/api-response.ts +71 -0
  210. package/src/templates/shared/utils/web/lib/utils.ts +85 -0
  211. package/src/templates/web/ai-platform/template/.env.example +16 -0
  212. package/src/templates/web/ai-platform/template/README.md +84 -0
  213. package/src/templates/web/ai-platform/template/middleware.ts +55 -0
  214. package/src/templates/web/ai-platform/template/next.config.js +14 -0
  215. package/src/templates/web/ai-platform/template/package.json +55 -0
  216. package/src/templates/web/ai-platform/template/src/app/api/chat/route.ts +54 -0
  217. package/src/templates/web/ai-platform/template/src/app/chat/page.tsx +235 -0
  218. package/src/templates/web/ai-platform/template/src/app/dashboard/page.tsx +142 -0
  219. package/src/templates/web/ai-platform/template/src/app/globals.css +34 -0
  220. package/src/templates/web/ai-platform/template/src/app/layout.tsx +27 -0
  221. package/src/templates/web/ai-platform/template/src/app/page.tsx +203 -0
  222. package/src/templates/web/ai-platform/template/src/components/providers/app-providers.tsx +27 -0
  223. package/src/templates/web/ai-platform/template/src/lib/auth-server.ts +33 -0
  224. package/src/templates/web/ai-platform/template/src/lib/supabase/client.ts +8 -0
  225. package/src/templates/web/ai-platform/template/src/lib/supabase/server.ts +27 -0
  226. package/src/templates/web/ai-platform/template/src/lib/utils.ts +6 -0
  227. package/src/templates/web/ai-platform/template/tsconfig.json +27 -0
  228. package/src/templates/web/iot-dashboard/template/.env.example +12 -0
  229. package/src/templates/web/iot-dashboard/template/README.md +101 -0
  230. package/src/templates/web/iot-dashboard/template/middleware.ts +56 -0
  231. package/src/templates/web/iot-dashboard/template/next.config.js +14 -0
  232. package/src/templates/web/iot-dashboard/template/package.json +49 -0
  233. package/src/templates/web/iot-dashboard/template/src/app/dashboard/page.tsx +229 -0
  234. package/src/templates/web/iot-dashboard/template/src/app/globals.css +20 -0
  235. package/src/templates/web/iot-dashboard/template/src/app/layout.tsx +27 -0
  236. package/src/templates/web/iot-dashboard/template/src/app/page.tsx +191 -0
  237. package/src/templates/web/iot-dashboard/template/src/components/providers/app-providers.tsx +24 -0
  238. package/src/templates/web/iot-dashboard/template/src/lib/auth-server.ts +33 -0
  239. package/src/templates/web/iot-dashboard/template/src/lib/supabase/client.ts +8 -0
  240. package/src/templates/web/iot-dashboard/template/src/lib/supabase/server.ts +27 -0
  241. package/src/templates/web/iot-dashboard/template/src/lib/utils.ts +25 -0
  242. package/src/templates/web/iot-dashboard/template/tsconfig.json +27 -0
  243. package/src/templates/web/marketplace/template/.env.example +12 -0
  244. package/src/templates/web/marketplace/template/README.md +66 -0
  245. package/src/templates/web/marketplace/template/middleware.ts +56 -0
  246. package/src/templates/web/marketplace/template/next.config.js +14 -0
  247. package/src/templates/web/marketplace/template/package.json +51 -0
  248. package/src/templates/web/marketplace/template/src/app/cart/page.tsx +147 -0
  249. package/src/templates/web/marketplace/template/src/app/dashboard/page.tsx +149 -0
  250. package/src/templates/web/marketplace/template/src/app/globals.css +20 -0
  251. package/src/templates/web/marketplace/template/src/app/layout.tsx +27 -0
  252. package/src/templates/web/marketplace/template/src/app/page.tsx +167 -0
  253. package/src/templates/web/marketplace/template/src/app/products/page.tsx +129 -0
  254. package/src/templates/web/marketplace/template/src/components/providers/app-providers.tsx +27 -0
  255. package/src/templates/web/marketplace/template/src/lib/auth-server.ts +33 -0
  256. package/src/templates/web/marketplace/template/src/lib/supabase/client.ts +8 -0
  257. package/src/templates/web/marketplace/template/src/lib/supabase/server.ts +27 -0
  258. package/src/templates/web/marketplace/template/src/lib/utils.ts +19 -0
  259. package/src/templates/web/marketplace/template/tsconfig.json +27 -0
  260. package/src/templates/web/micro-saas/template/.env.example +10 -0
  261. package/src/templates/web/micro-saas/template/README.md +63 -0
  262. package/src/templates/web/micro-saas/template/middleware.ts +53 -0
  263. package/src/templates/web/micro-saas/template/next.config.js +14 -0
  264. package/src/templates/web/micro-saas/template/package.json +41 -0
  265. package/src/templates/web/micro-saas/template/src/app/dashboard/page.tsx +117 -0
  266. package/src/templates/web/micro-saas/template/src/app/globals.css +20 -0
  267. package/src/templates/web/micro-saas/template/src/app/layout.tsx +27 -0
  268. package/src/templates/web/micro-saas/template/src/app/login/page.tsx +87 -0
  269. package/src/templates/web/micro-saas/template/src/app/page.tsx +137 -0
  270. package/src/templates/web/micro-saas/template/src/app/signup/page.tsx +108 -0
  271. package/src/templates/web/micro-saas/template/src/components/providers/app-providers.tsx +24 -0
  272. package/src/templates/web/micro-saas/template/src/lib/auth-server.ts +33 -0
  273. package/src/templates/web/micro-saas/template/src/lib/supabase/client.ts +8 -0
  274. package/src/templates/web/micro-saas/template/src/lib/supabase/server.ts +29 -0
  275. package/src/templates/web/micro-saas/template/src/lib/utils.ts +6 -0
  276. package/src/templates/web/micro-saas/template/tsconfig.json +27 -0
  277. package/dist/cli/commands/add.d.ts +0 -6
  278. package/dist/cli/commands/add.d.ts.map +0 -1
  279. package/dist/cli/commands/add.js +0 -39
  280. package/dist/cli/commands/add.js.map +0 -1
  281. package/dist/cli/commands/create.d.ts +0 -45
  282. package/dist/cli/commands/create.d.ts.map +0 -1
  283. package/dist/cli/commands/create.js +0 -175
  284. package/dist/cli/commands/create.js.map +0 -1
  285. package/dist/cli/commands/index.d.ts +0 -4
  286. package/dist/cli/commands/index.d.ts.map +0 -1
  287. package/dist/cli/commands/index.js +0 -20
  288. package/dist/cli/commands/index.js.map +0 -1
  289. package/dist/cli/commands/update.d.ts +0 -6
  290. package/dist/cli/commands/update.d.ts.map +0 -1
  291. package/dist/cli/commands/update.js +0 -68
  292. package/dist/cli/commands/update.js.map +0 -1
  293. package/dist/cli/index.d.ts +0 -4
  294. package/dist/cli/index.d.ts.map +0 -1
  295. package/dist/cli/index.js +0 -61
  296. package/dist/cli/index.js.map +0 -1
  297. package/dist/cli/prompts/index.d.ts +0 -2
  298. package/dist/cli/prompts/index.d.ts.map +0 -1
  299. package/dist/cli/prompts/index.js +0 -18
  300. package/dist/cli/prompts/index.js.map +0 -1
  301. package/dist/cli/prompts/project-setup.d.ts +0 -5
  302. package/dist/cli/prompts/project-setup.d.ts.map +0 -1
  303. package/dist/cli/prompts/project-setup.js +0 -316
  304. package/dist/cli/prompts/project-setup.js.map +0 -1
  305. package/dist/cli/utils/git.d.ts +0 -9
  306. package/dist/cli/utils/git.d.ts.map +0 -1
  307. package/dist/cli/utils/git.js +0 -77
  308. package/dist/cli/utils/git.js.map +0 -1
  309. package/dist/cli/utils/index.d.ts +0 -5
  310. package/dist/cli/utils/index.d.ts.map +0 -1
  311. package/dist/cli/utils/index.js +0 -21
  312. package/dist/cli/utils/index.js.map +0 -1
  313. package/dist/cli/utils/logger.d.ts +0 -16
  314. package/dist/cli/utils/logger.d.ts.map +0 -1
  315. package/dist/cli/utils/logger.js +0 -55
  316. package/dist/cli/utils/logger.js.map +0 -1
  317. package/dist/cli/utils/package-manager.d.ts +0 -8
  318. package/dist/cli/utils/package-manager.d.ts.map +0 -1
  319. package/dist/cli/utils/package-manager.js +0 -92
  320. package/dist/cli/utils/package-manager.js.map +0 -1
  321. package/dist/cli/utils/spinner.d.ts +0 -7
  322. package/dist/cli/utils/spinner.d.ts.map +0 -1
  323. package/dist/cli/utils/spinner.js +0 -48
  324. package/dist/cli/utils/spinner.js.map +0 -1
  325. package/dist/cli/validators/dependencies.d.ts +0 -15
  326. package/dist/cli/validators/dependencies.d.ts.map +0 -1
  327. package/dist/cli/validators/dependencies.js +0 -108
  328. package/dist/cli/validators/dependencies.js.map +0 -1
  329. package/dist/cli/validators/index.d.ts +0 -3
  330. package/dist/cli/validators/index.d.ts.map +0 -1
  331. package/dist/cli/validators/index.js +0 -19
  332. package/dist/cli/validators/index.js.map +0 -1
  333. package/dist/cli/validators/project-name.d.ts +0 -5
  334. package/dist/cli/validators/project-name.d.ts.map +0 -1
  335. package/dist/cli/validators/project-name.js +0 -151
  336. package/dist/cli/validators/project-name.js.map +0 -1
  337. package/dist/generators/file-processor.d.ts +0 -28
  338. package/dist/generators/file-processor.d.ts.map +0 -1
  339. package/dist/generators/file-processor.js +0 -224
  340. package/dist/generators/file-processor.js.map +0 -1
  341. package/dist/generators/index.d.ts +0 -4
  342. package/dist/generators/index.d.ts.map +0 -1
  343. package/dist/generators/index.js +0 -20
  344. package/dist/generators/index.js.map +0 -1
  345. package/dist/generators/package-installer.d.ts +0 -29
  346. package/dist/generators/package-installer.d.ts.map +0 -1
  347. package/dist/generators/package-installer.js +0 -177
  348. package/dist/generators/package-installer.js.map +0 -1
package/README.md CHANGED
@@ -1,891 +1,975 @@
1
- # @digilogiclabs/create-saas-app
2
-
3
- **Create production-ready SaaS applications with AI capabilities in seconds.** This CLI tool generates modern web applications with authentication, payments, AI integration, and AI-powered development workflows.
4
-
5
- [![npm version](https://badge.fury.io/js/%40digilogiclabs%2Fcreate-saas-app.svg)](https://badge.fury.io/js/%40digilogiclabs%2Fcreate-saas-app)
6
- [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
7
-
8
- ## ⚡ **Quick Start - High-Value Templates**
9
-
10
- Get started instantly with our most popular, production-ready templates:
11
-
12
- ### **🎯 Recommended Templates**
13
-
14
- ```bash
15
- # 💳 Complete SaaS Foundation (Payments + Auth)
16
- npx @digilogiclabs/create-saas-app create web ui-auth-payments my-saas-app
17
-
18
- # 🤖 AI-Powered SaaS Platform (Text, Audio, Video AI)
19
- npx @digilogiclabs/create-saas-app create web ui-auth-payments-ai ai-platform --with-ai=all
20
-
21
- # 🧠 AI Knowledge Base & RAG System (v4.0.0)
22
- npx @digilogiclabs/create-saas-app create web ui-auth-payments-ai-rag knowledge-app --with-ai=rag
23
-
24
- # 🎵 Audio Streaming SaaS (Music/Podcast Platform)
25
- npx @digilogiclabs/create-saas-app create web ui-auth-payments-audio music-platform
26
-
27
- # 🎬 Video Streaming SaaS (Video Platform)
28
- npx @digilogiclabs/create-saas-app create web ui-auth-payments-video video-studio
29
-
30
- # 📱 Mobile AI SaaS (React Native + Expo)
31
- npx @digilogiclabs/create-saas-app create mobile ui-auth-payments-ai mobile-ai-app --with-ai=all
32
-
33
- # 📱 Mobile RAG Knowledge App
34
- npx @digilogiclabs/create-saas-app create mobile ui-auth-payments-ai-rag knowledge-mobile --with-ai=rag
35
- ```
36
-
37
- ## 🚀 Complete Template Reference
38
-
39
- ### **Quick Command Reference**
40
-
41
- ```bash
42
- # Interactive mode (recommended for beginners)
43
- npx @digilogiclabs/create-saas-app create
44
-
45
- # Direct command format
46
- npx @digilogiclabs/create-saas-app create <platform> <template> <project-name> [options]
47
-
48
- # Get help anytime
49
- npx @digilogiclabs/create-saas-app --help
50
- npx @digilogiclabs/create-saas-app create --help
51
- ```
52
-
53
- ### **📋 All Available Templates (16 Total)**
54
-
55
- #### **🌐 Web Templates (11)**
56
-
57
- **💎 Premium SaaS Templates**
58
- | Template | Description | Features | Command |
59
- |----------|-------------|----------|---------|
60
- | `ui-auth-payments` | **Complete SaaS Foundation** | Auth + Payments + Dashboard | `npx @digilogiclabs/create-saas-app create web ui-auth-payments my-saas` |
61
- | `ui-auth-payments-ai` | **AI-Powered SaaS Platform** | Full AI Suite (Text, Audio, Video) | `npx @digilogiclabs/create-saas-app create web ui-auth-payments-ai ai-platform --with-ai=all` |
62
- | `ui-auth-payments-ai-rag` | **🧠 AI Knowledge Base & RAG** | Smart Document Processing v4.0.0 | `npx @digilogiclabs/create-saas-app create web ui-auth-payments-ai-rag knowledge-app --with-ai=rag` |
63
- | `ui-auth-payments-audio` | **🎵 Audio Streaming SaaS** | Music/Podcast Platform | `npx @digilogiclabs/create-saas-app create web ui-auth-payments-audio music-platform` |
64
- | `ui-auth-payments-video` | **🎬 Video Streaming SaaS** | Video Platform & Studio | `npx @digilogiclabs/create-saas-app create web ui-auth-payments-video video-studio` |
65
-
66
- **🚀 Starter Templates**
67
- | Template | Description | Features | Command |
68
- |----------|-------------|----------|---------|
69
- | `base` | Clean Next.js 15 starter | Minimal setup | `npx @digilogiclabs/create-saas-app create web base my-app` |
70
- | `ui-only` | Component library showcase | Design system | `npx @digilogiclabs/create-saas-app create web ui-only design-system` |
71
- | `ui-auth` | Authentication flow | Auth + Dashboard | `npx @digilogiclabs/create-saas-app create web ui-auth auth-app` |
72
- | `ui-auth-ai` | Text & chat AI platform | Basic AI features | `npx @digilogiclabs/create-saas-app create web ui-auth-ai text-ai-app --with-ai=text` |
73
- | `ui-package-test` | Component testing env | Development testing | `npx @digilogiclabs/create-saas-app create web ui-package-test component-test` |
74
-
75
- #### **📱 Mobile Templates (5)**
76
-
77
- **💎 Premium Mobile SaaS**
78
- | Template | Description | Features | Command |
79
- |----------|-------------|----------|---------|
80
- | `ui-auth-payments` | **Full Mobile SaaS** | Auth + Payments + Native UI | `npx @digilogiclabs/create-saas-app create mobile ui-auth-payments mobile-saas` |
81
- | `ui-auth-payments-ai` | **📱 Mobile AI SaaS** | Native AI with Voice/Camera | `npx @digilogiclabs/create-saas-app create mobile ui-auth-payments-ai ai-mobile-app --with-ai=all` |
82
- | `ui-auth-payments-ai-rag` | **📱 Mobile Knowledge App** | Offline RAG + Document Scanning | `npx @digilogiclabs/create-saas-app create mobile ui-auth-payments-ai-rag knowledge-mobile --with-ai=rag` |
83
-
84
- **🚀 Mobile Starters**
85
- | Template | Description | Features | Command |
86
- |----------|-------------|----------|---------|
87
- | `base` | React Native + Expo starter | Minimal mobile setup | `npx @digilogiclabs/create-saas-app create mobile base mobile-app` |
88
-
89
- ### **🤖 AI Capabilities Reference**
90
-
91
- **AI Template Options (`--with-ai`)**
92
- | Capability | Description | Includes | Best For |
93
- |------------|-------------|----------|----------|
94
- | `text` | Text generation & chat | OpenAI GPT, Claude, Gemini | Content creation, chatbots |
95
- | `audio` | Audio processing & generation | Speech-to-text, text-to-speech, music | Podcasts, music platforms |
96
- | `video` | Video processing & generation | Video editing, generation, streaming | Video platforms, content creation |
97
- | `rag` | **🧠 RAG Knowledge System v4.0.0** | Vector search, document processing, Q&A | Knowledge bases, AI assistants |
98
- | `all` | Complete AI suite | All above capabilities | Full AI platforms |
99
-
100
- **Available AI Providers (`--ai-provider`)**
101
- - `openai` (default) - GPT-4, DALL-E, Whisper
102
- - `anthropic` - Claude Sonnet/Haiku
103
- - `gemini` - Google Gemini Pro
104
-
105
- ### **🛠 CLI Options**
106
-
107
- #### **Core Arguments**
108
- ```bash
109
- <platform> # web | mobile | both
110
- <template> # Template name (see table above)
111
- <project-name> # Your project name (kebab-case recommended)
112
- ```
113
-
114
- #### **Configuration Flags**
115
- ```bash
116
- -a, --auth <provider> # firebase | supabase (default: supabase)
117
- -d, --database <provider> # supabase | firebase (default: supabase)
118
- -t, --theme <theme> # default | corporate | startup (default: default)
119
- -c, --theme-color <color> # blue | green | purple | orange | red | slate (default: blue)
120
- --default-theme <mode> # light | dark | system (default: system)
121
- --with-ai [capabilities] # text | audio | video | text,audio | all (for AI templates)
122
- --ai-provider <provider> # openai | anthropic | gemini (default: openai)
123
- --no-install # Skip package installation
124
- --no-git # Skip git initialization
125
- -y, --yes # Skip interactive prompts
126
- ```
127
-
128
- ### **💡 Real-World Examples**
129
-
130
- #### **🚀 Beginner: Interactive Mode**
131
- ```bash
132
- # Let the CLI guide you through all options
133
- npx @digilogiclabs/create-saas-app create
134
- ```
135
-
136
- #### **🎯 Business Use Cases**
137
-
138
- **💼 SaaS Startup**
139
- ```bash
140
- # Complete SaaS foundation with payments
141
- npx @digilogiclabs/create-saas-app create web ui-auth-payments my-startup \
142
- --theme=startup \
143
- --theme-color=purple \
144
- --auth=supabase \
145
- --database=supabase
146
- ```
147
-
148
- **🤖 AI Content Platform**
149
- ```bash
150
- # Full AI platform with all capabilities
151
- npx @digilogiclabs/create-saas-app create web ui-auth-payments-ai content-ai \
152
- --with-ai=all \
153
- --ai-provider=openai \
154
- --theme=corporate \
155
- --theme-color=blue
156
- ```
157
-
158
- **🧠 Knowledge Base & AI Assistant**
159
- ```bash
160
- # RAG-powered knowledge platform
161
- npx @digilogiclabs/create-saas-app create web ui-auth-payments-ai-rag knowledge-base \
162
- --with-ai=rag \
163
- --ai-provider=anthropic \
164
- --theme=startup \
165
- --theme-color=green
166
- ```
167
-
168
- **🎵 Music Streaming Platform**
169
- ```bash
170
- # Audio streaming SaaS like Spotify
171
- npx @digilogiclabs/create-saas-app create web ui-auth-payments-audio music-stream \
172
- --theme=default \
173
- --theme-color=orange \
174
- --auth=supabase
175
- ```
176
-
177
- **📱 Mobile-First AI App**
178
- ```bash
179
- # Native mobile AI app with offline capabilities
180
- npx @digilogiclabs/create-saas-app create mobile ui-auth-payments-ai mobile-ai \
181
- --with-ai=all \
182
- --theme=corporate \
183
- --theme-color=blue \
184
- --no-git
185
-
186
- # Cross-platform SaaS with Firebase
187
- npx @digilogiclabs/create-saas-app create both ui-auth-payments fullstack-saas \
188
- --auth=firebase \
189
- --database=firebase \
190
- --theme=default \
191
- --default-theme=dark
192
-
193
- # Quick prototyping (no deps install)
194
- npx @digilogiclabs/create-saas-app create web ui-auth-payments prototype \
195
- --no-install \
196
- --no-git \
197
- --yes
198
- ```
199
-
200
- ### **🎯 Template Selection Guide**
201
-
202
- #### **Choose by Use Case**
203
- - **Learning/Prototyping**: `base` or `ui-only`
204
- - **Authentication App**: `ui-auth`
205
- - **SaaS with Billing**: `ui-auth-payments`
206
- - **AI Applications**: `ui-auth-payments-ai` or `ui-auth-ai`
207
- - **Media Platforms**: `ui-auth-payments-audio` or `ui-auth-payments-video`
208
- - **Mobile Apps**: Mobile versions of above
209
- - **Full-Stack**: `both` platform with any template
210
-
211
- #### **Choose by Complexity**
212
- 1. **Simple**: `base`, `ui-only`
213
- 2. **Medium**: `ui-auth`, `ui-auth-payments`
214
- 3. **Advanced**: `ui-auth-payments-ai`, `ui-auth-payments-audio`, `ui-auth-payments-video`
215
-
216
- #### **Choose by Platform**
217
- - **Web Only**: Use `web` platform
218
- - **Mobile Only**: Use `mobile` platform
219
- - **Universal**: Use `both` platform (web + mobile)
220
-
221
- ## 🎉 What's New in v1.13.0
222
-
223
- ### 🤖 **Complete AI Integration**
224
- - **Ready-to-Use Components** - AIChat, AITextGenerator, AIAudioGenerator, AIVideoGenerator now available
225
- - **Client-Side Configuration** - NEXT_PUBLIC_ environment variables for seamless setup
226
- - **Configuration Validation** - AISetupStatus component guides users through setup
227
- - **Enhanced TypeScript** - Complete type definitions and IntelliSense support
228
-
229
- ### 🎨 **Enhanced UI Library**
230
- - **6 New Components** - Switch, Slider, Textarea, Accordion, Breadcrumbs, EmptyState
231
- - **Fixed Glassmorphism API** - Proper `border` and `accent` properties now available
232
- - **Cross-Platform Ready** - Single codebase supports Next.js + React Native/Expo
233
- - **Node.js 18+ Support** - Broader compatibility for more environments
234
-
235
- ### 🔐 **Expanded Authentication**
236
- - **12 OAuth Providers** - Added Microsoft, LinkedIn, Spotify, Twitch, Slack, Notion
237
- - **Enhanced User Types** - Comprehensive profiles with extended role system
238
- - **Beautiful Provider UI** - Proper branding and SVG icons for all providers
239
-
240
- ### 💳 **Improved Payments**
241
- - **Enhanced Type System** - Better TypeScript definitions and error handling
242
- - **Future-Ready Foundation** - Prepared for PayPal, Apple Pay, and analytics features
243
-
244
- ## 🚀 Quick Start
245
-
246
- ```bash
247
- # Interactive mode (recommended)
248
- npx @digilogiclabs/create-saas-app create
249
-
250
- # Or create directly with popular templates
251
- npx @digilogiclabs/create-saas-app create web ui-auth-payments-ai my-ai-saas --with-ai=all
252
- npx @digilogiclabs/create-saas-app create mobile ui-auth-payments-ai mobile-ai-app --with-ai=all
253
- npx @digilogiclabs/create-saas-app create web ui-auth-payments saas-app
254
- ```
255
-
256
- > 💡 **New to the CLI?** See the complete [Template Generator Guide](#-template-generator-guide) above for all options and examples.
257
-
258
- ## What You Get
259
-
260
- ### 🤖 **AI-First Development**
261
- - **Claude CLI integration** - AI assistant configured for your specific template
262
- - **Template-aware context** - AI understands your packages and architecture
263
- - **Auto-generated documentation** - Context files and development guides
264
- - **AI-powered components** - Text, audio, and video generation ready to use
265
-
266
- ### 🏗️ **Production-Ready Stack**
267
- - **Next.js 15.3** with App Router and Server Components
268
- - **TypeScript** throughout with strict typing
269
- - **Supabase** for database, auth, and real-time features
270
- - **Stripe** for payments and subscriptions
271
- - **Tailwind CSS v4** with glassmorphism design system
272
-
273
- ### 🎯 **Developer Experience**
274
- - **Setup guides** with copy-paste configurations
275
- - **Deployment guides** for Vercel, Netlify, Railway, and Docker
276
- - **Environment validation** and troubleshooting
277
- - **Package documentation** and code examples
278
-
279
- ## 🎨 Template Gallery
280
-
281
- > 📋 **Quick Reference?** See the [Template Generator Guide](#-template-generator-guide) at the top for a complete table of all templates and commands.
282
-
283
- Choose from **12 production-ready templates** across web and mobile platforms:
284
-
285
- ### 🌐 **Web Templates (9 Available)**
286
-
287
- #### **Core Templates**
288
-
289
- ##### **Base Template** (`base`)
290
- Clean Next.js 15 starter with minimal dependencies
291
- - **Next.js 15.3** - App Router with Server Components
292
- - **TypeScript** - Strict typing throughout
293
- - **Tailwind CSS v4** - Modern utility-first styling
294
- - **Essential setup** - Perfect foundation for custom builds
295
-
296
- ```bash
297
- npx @digilogiclabs/create-saas-app create web base my-app
298
- ```
299
-
300
- ##### **UI Only Template** (`ui-only`)
301
- Components library showcase without authentication
302
- - **Component gallery** - All @digilogiclabs/saas-factory-ui components
303
- - **Design system** - Glassmorphism and modern patterns
304
- - **No auth required** - Perfect for design system demos
305
- - **Storybook-style** - Interactive component documentation
306
-
307
- ```bash
308
- npx @digilogiclabs/create-saas-app create web ui-only design-system
309
- ```
310
-
311
- #### **Authentication Templates**
312
-
313
- ##### **UI + Auth** (`ui-auth`)
314
- Modern authentication flow with beautiful UI
315
- - **User management** - Sign up, login, profile management
316
- - **12 OAuth providers** - Google, GitHub, Microsoft, LinkedIn, Spotify, and more
317
- - **Protected routes** - Authentication-gated content
318
- - **Email verification** - Secure account activation
319
-
320
- ```bash
321
- npx @digilogiclabs/create-saas-app create web ui-auth auth-app
322
- ```
323
-
324
- ##### **UI + Auth + Payments** (`ui-auth-payments`)
325
- Complete SaaS foundation with billing
326
- - **Subscription management** - Stripe integration with webhooks
327
- - **User dashboards** - Account management and billing portal
328
- - **Team features** - Multi-user support and permissions
329
- - **Analytics** - Revenue and usage tracking
330
-
331
- ```bash
332
- npx @digilogiclabs/create-saas-app create web ui-auth-payments saas-platform
333
- ```
334
-
335
- #### **AI-Powered Templates**
336
-
337
- ##### **AI + Auth** (`ui-auth-ai`)
338
- Text and chat AI integration platform
339
- - **Text generation** - OpenAI GPT-4 integration
340
- - **AI chat interface** - Interactive conversation UI
341
- - **Content management** - Save and organize AI outputs
342
- - **Usage tracking** - Monitor API consumption
343
-
344
- ```bash
345
- npx @digilogiclabs/create-saas-app create web ui-auth-ai text-ai-app --with-ai=text
346
- ```
347
-
348
- ##### **AI + Auth + Payments** (`ui-auth-payments-ai`)
349
- Full AI SaaS platform with multi-modal generation
350
- - **Multi-modal AI** - Text, audio, and video generation
351
- - **AI Dashboard** - Generation history and usage analytics
352
- - **Smart UI** - Tabbed interface for different AI tools
353
- - **Real-time features** - Live generation status and updates
354
-
355
- ```bash
356
- npx @digilogiclabs/create-saas-app create web ui-auth-payments-ai ai-platform --with-ai=all
357
- ```
358
-
359
- #### **Media Templates**
360
-
361
- ##### **Audio SaaS** (`ui-auth-payments-audio`)
362
- Music streaming and audio processing platform
363
- - **Audio streaming** - Playlist management and playback
364
- - **Audio generation** - AI-powered voice synthesis
365
- - **Waveform visualization** - Real-time audio analysis
366
- - **Offline support** - Cached playback and PWA features
367
-
368
- ```bash
369
- npx @digilogiclabs/create-saas-app create web ui-auth-payments-audio music-platform
370
- ```
371
-
372
- ##### **Video SaaS** (`ui-auth-payments-video`)
373
- Video streaming and media platform
374
- - **Video streaming** - Quality selection and adaptive bitrate
375
- - **Video generation** - AI-powered video creation
376
- - **Content management** - Upload, process, and organize videos
377
- - **Analytics dashboard** - View counts and engagement metrics
378
-
379
- ```bash
380
- npx @digilogiclabs/create-saas-app create web ui-auth-payments-video video-studio
381
- ```
382
-
383
- #### **Development Templates**
384
-
385
- ##### **UI Package Test** (`ui-package-test`)
386
- Component testing environment for package development
387
- - **Component testing** - Isolated testing environment
388
- - **Package validation** - Test UI components before release
389
- - **Development tools** - Hot reload and debugging setup
390
- - **Documentation** - Auto-generated component docs
391
-
392
- ```bash
393
- npx @digilogiclabs/create-saas-app create web ui-package-test component-test
394
- ```
395
-
396
- ### 📱 **Mobile Templates (5 Available)**
397
-
398
- #### **Base Mobile** (`base`)
399
- React Native + Expo starter for mobile development
400
- - **Expo 50** - Modern React Native development platform
401
- - **TypeScript** - Full type safety for mobile
402
- - **Navigation** - React Navigation v6 setup
403
- - **Cross-platform** - iOS and Android support
404
-
405
- ```bash
406
- npx @digilogiclabs/create-saas-app create mobile base mobile-app
407
- ```
408
-
409
- #### **Mobile SaaS** (`ui-auth-payments`)
410
- Full mobile SaaS platform with native UI v0.27.0
411
- - **Native UI components** - 240+ components with enhanced mobile features
412
- - **Authentication** - Supabase Auth v1.0.4 with biometric support
413
- - **Payments** - Stripe React Native v0.28.0 integration
414
- - **Advanced features** - Onboarding, tours, offline support, haptic feedback
415
- - **Updated Dependencies** - Latest package versions for stability
416
-
417
- ```bash
418
- npx @digilogiclabs/create-saas-app create mobile ui-auth-payments mobile-saas
419
- ```
420
-
421
- #### **Mobile AI SaaS** (`ui-auth-payments-ai`)
422
- Complete mobile AI platform with generation capabilities
423
- - **AI Generation Suite** - Text, audio, and video AI generation
424
- - **Native AI Components** - AITextGenerator, AIAudioGenerator, AIVideoGenerator, AIChat
425
- - **AI Dashboard** - Usage statistics and generation history
426
- - **Multi-modal AI** - OpenAI, ElevenLabs, Replicate integration
427
- - **Mobile-optimized** - Touch-friendly AI interfaces with haptic feedback
428
- - **Offline AI Cache** - Cached responses for better mobile experience
429
- - **Enhanced TypeScript** - bundler moduleResolution for better compatibility
430
-
431
- ```bash
432
- npx @digilogiclabs/create-saas-app create mobile ui-auth-payments-ai ai-mobile-app --with-ai=all
433
- ```
434
-
435
- #### **Mobile RAG Knowledge App** (`ui-auth-payments-ai-rag`)
436
- Advanced mobile knowledge base with RAG capabilities
437
- - **RAG Integration** - Vector search and document processing
438
- - **Offline RAG** - Local knowledge base for mobile-first experience
439
- - **Document Scanning** - Native camera integration for document capture
440
- - **Knowledge Management** - Organize and search through personal knowledge
441
- - **AI-Powered Q&A** - Intelligent question answering from documents
442
- - **Complete Mobile Setup** - All required config files and dependencies
443
-
444
- ```bash
445
- npx @digilogiclabs/create-saas-app create mobile ui-auth-payments-ai-rag knowledge-mobile --with-ai=rag
446
- ```
447
-
448
- ### 🚀 **Cross-Platform Templates**
449
-
450
- #### **Full Stack Platform** (`ui-auth-payments`)
451
- Web + Mobile SaaS platform
452
- - **Shared codebase** - Unified components and logic
453
- - **Web dashboard** - Full-featured admin interface
454
- - **Mobile app** - Native mobile experience
455
- - **Real-time sync** - Cross-platform data synchronization
456
-
457
- ```bash
458
- npx @digilogiclabs/create-saas-app create both ui-auth-payments fullstack-platform
459
- ```
460
-
461
- #### **AI Full Stack** (`ui-auth-payments-ai`)
462
- Web + Mobile AI platform
463
- - **AI everywhere** - Consistent AI features across platforms
464
- - **Mobile-optimized** - Touch-friendly AI interfaces
465
- - **Cloud sync** - AI generations sync across devices
466
- - **Offline capable** - Cached AI responses for mobile
467
-
468
- ```bash
469
- npx @digilogiclabs/create-saas-app create both ui-auth-payments-ai ai-fullstack --with-ai=all
470
- ```
471
-
472
- ## 🤖 AI Development Workflow
473
-
474
- Every template includes **Claude AI integration** for enhanced development:
475
-
476
- ### 🎯 **Instant AI Setup**
477
- ```bash
478
- # Create your app
479
- npx @digilogiclabs/create-saas-app create web ui-auth-payments-ai my-app --with-ai=all
480
-
481
- # Navigate to setup
482
- cd my-app && open http://localhost:3000/dev-setup
483
-
484
- # Copy .claude configuration (auto-generated)
485
- # Copy context.md documentation (auto-generated)
486
-
487
- # Start coding with AI assistance
488
- claude "Help me add a new AI feature"
489
- claude "Create a user profile component"
490
- claude "Debug this authentication error"
491
- ```
492
-
493
- ### 📚 **Smart AI Context**
494
- Each template generates intelligent context for Claude:
495
- - **Package integration guides** - How to use each Digi Logic Labs package
496
- - **Architecture documentation** - Next.js patterns and best practices
497
- - **Code examples** - Common patterns for auth, payments, AI
498
- - **Environment setup** - Configuration and troubleshooting
499
-
500
- ### **AI-Powered Components** (v3.1.1)
501
- Templates with `--with-ai` include complete component library:
502
- ```typescript
503
- import {
504
- AIProvider,
505
- AIChat,
506
- AITextGenerator,
507
- AIAudioGenerator,
508
- AIVideoGenerator,
509
- AISetupStatus,
510
- getAIConfigFromEnv
511
- } from '@digilogiclabs/saas-factory-ai'
512
-
513
- function App() {
514
- const config = getAIConfigFromEnv()
515
-
516
- return (
517
- <AIProvider config={config}>
518
- {/* Configuration validation */}
519
- <AISetupStatus />
520
-
521
- {/* Text generation */}
522
- <AITextGenerator
523
- placeholder="Generate blog content..."
524
- templates={['Blog post', 'Email', 'Social media']}
525
- showWordCount={true}
526
- maxLength={2000}
527
- />
528
-
529
- {/* AI chat interface */}
530
- <AIChat
531
- placeholder="Ask me anything..."
532
- showTypingIndicator={true}
533
- enableFileUpload={true}
534
- maxMessages={50}
535
- />
536
-
537
- {/* Audio generation */}
538
- <AIAudioGenerator
539
- placeholder="Describe the audio..."
540
- supportedFormats={['mp3', 'wav', 'ogg']}
541
- showWaveform={true}
542
- maxDuration={300}
543
- />
544
-
545
- {/* Video generation */}
546
- <AIVideoGenerator
547
- placeholder="Describe the video..."
548
- supportedFormats={['mp4', 'webm']}
549
- resolution="1080p"
550
- showPreview={true}
551
- maxDuration={60}
552
- />
553
- </AIProvider>
554
- )
555
- }
556
- ```
557
-
558
- ## 🚀 Deployment Made Simple
559
-
560
- Every template includes **comprehensive deployment guides**:
561
-
562
- ### 📋 **Multiple Hosting Options**
563
-
564
- #### **Vercel (Recommended)**
565
- ```bash
566
- # One-command deployment
567
- vercel --prod
568
-
569
- # Automatic HTTPS, edge functions, preview deployments
570
- ```
571
-
572
- #### **Netlify**
573
- ```bash
574
- # Git-based deployment with form handling
575
- npm run build && netlify deploy --prod
576
- ```
577
-
578
- #### **Railway**
579
- ```bash
580
- # Full-stack with integrated database
581
- railway init && railway up
582
- ```
583
-
584
- #### **Docker + Cloud Run**
585
- ```bash
586
- # Containerized deployment with auto-scaling
587
- gcloud run deploy --source .
588
- ```
589
-
590
- ### ✅ **Pre-Deployment Checklist**
591
- Built-in validation ensures your app is deployment-ready:
592
- - ✅ Environment variables configured
593
- - Database tables created and RLS enabled
594
- - Stripe webhooks configured (if using payments)
595
- - ✅ Build succeeds locally
596
- - ✅ Tests pass
597
-
598
- ## 🎛️ Advanced Configuration
599
-
600
- ### 🤖 **AI Capabilities**
601
- ```bash
602
- # Enable specific AI capabilities
603
- --with-ai=text # Text generation only
604
- --with-ai=audio # Audio generation only
605
- --with-ai=video # Video generation only
606
- --with-ai=text,audio # Text and audio
607
- --with-ai=all # All AI capabilities
608
-
609
- # Specify AI provider
610
- --ai-provider=openai # OpenAI (default)
611
- --ai-provider=anthropic # Anthropic Claude
612
- --ai-provider=gemini # Google Gemini
613
- ```
614
-
615
- ### 🎨 **Theming & Styling**
616
- ```bash
617
- # Theme options
618
- --theme=default # Clean and modern
619
- --theme=corporate # Professional blue
620
- --theme=startup # Bold purple
621
-
622
- # Theme colors
623
- --theme-color=blue # Blue accents (default)
624
- --theme-color=purple # Purple accents
625
- --theme-color=green # Green accents
626
-
627
- # Default theme mode
628
- --default-theme=system # Follow system (default)
629
- --default-theme=light # Always light
630
- --default-theme=dark # Always dark
631
- ```
632
-
633
- ### 🔐 **Service Providers**
634
- ```bash
635
- # Authentication
636
- --auth=supabase # Supabase Auth (default)
637
- --auth=firebase # Firebase Auth
638
-
639
- # Database
640
- --database=supabase # Supabase (default)
641
- --database=firebase # Firebase Firestore
642
- ```
643
-
644
- ## 📦 Package Ecosystem
645
-
646
- ### 🎨 **UI & Design** (v0.27.1)
647
- - **@digilogiclabs/saas-factory-ui** - 240+ components with mobile-first design
648
- - **75% Component Increase** - From 140+ to 240+ components in v0.22.0
649
- - **Cross-Platform Support** - Single codebase for Next.js + React Native/Expo
650
- - **Native Mobile Components** - AppShell, BottomTabBar, NativeTour, VirtualScrollList
651
- - **Advanced Features** - Haptic feedback, gesture support, offline capabilities
652
- - **Enhanced Glassmorphism** - Fixed API with proper `border` and `accent` properties
653
- - **Next.js 15.3** - App Router with Server Components
654
- - **Tailwind CSS v4** - Design tokens and utility classes
655
- - **Node.js 18+ Support** - Broader compatibility range
656
-
657
- ### 🔐 **Authentication** (v1.0.5)
658
- - **@digilogiclabs/saas-factory-auth** - Enhanced Supabase Auth integration
659
- - **12 OAuth Providers** - Google, GitHub, Microsoft, LinkedIn, Spotify, Twitch, Slack, Notion + more
660
- - **Enhanced TypeScript Types** - Comprehensive user profiles and metadata
661
- - **Beautiful UI Components** - Proper branding and SVG icons for all providers
662
- - **Extended User Roles** - owner, editor, viewer, contributor, manager, developer, analyst, support
663
- - **Row Level Security** - Database-level permissions
664
- - **Email verification** - Secure account management
665
-
666
- ### 💳 **Payments** (v1.2.6)
667
- - **@digilogiclabs/saas-factory-payments** - Enhanced Stripe integration
668
- - **Improved Type System** - Better TypeScript definitions with cross-platform compatibility
669
- - **Enhanced Error Handling** - Expanded error types for comprehensive management
670
- - **Better Subscription Management** - Enhanced types with additional compatibility fields
671
- - **Future-Ready Architecture** - Foundation for PayPal, Apple Pay, and analytics
672
- - **Webhook handling** - Secure payment event processing
673
- - **Customer portal** - Self-service billing management
674
-
675
- ### 🤖 **AI Platform** (v3.1.1)
676
- - **@digilogiclabs/saas-factory-ai** - Complete React component library
677
- - **Ready-to-Use Components** - AIChat, AITextGenerator, AIAudioGenerator, AIVideoGenerator, AIProvider
678
- - **@digilogiclabs/saas-factory-ai-types** - Complete TypeScript definitions
679
- - **Client-Side Configuration** - NEXT_PUBLIC_ environment variable support
680
- - **Configuration Validation** - AISetupStatus component and validateAIConfig() helper
681
- - **Environment Helpers** - getAIConfigFromEnv() for seamless setup
682
- - **OpenAI integration** - GPT-4 for text and audio
683
- - **ElevenLabs integration** - High-quality voice synthesis
684
- - **Replicate integration** - Video and image generation
685
-
686
- ## 🛠️ Command Reference
687
-
688
- ### 📋 **Create Command**
689
- ```bash
690
- npx @digilogiclabs/create-saas-app create <platform> [template] [name] [options]
691
-
692
- # Arguments
693
- platform # web, mobile, or both
694
- template # ui-auth-payments-ai, ui-auth-payments, ui-auth, etc.
695
- name # your-project-name
696
-
697
- # Options
698
- -a, --auth <provider> # firebase, supabase
699
- -d, --database <provider> # supabase, firebase
700
- -t, --theme <theme> # default, corporate, startup
701
- -c, --theme-color <color> # blue, green, purple, orange, red, slate
702
- --default-theme <mode> # light, dark, system
703
- --with-ai [capabilities] # text,audio,video or all
704
- --ai-provider <provider> # openai, anthropic, gemini
705
- --no-install # Skip package installation
706
- --no-git # Skip git initialization
707
- -y, --yes # Skip interactive prompts
708
- ```
709
-
710
- ### ➕ **Add Features** (Coming Soon)
711
- ```bash
712
- # Add features to existing projects
713
- npx @digilogiclabs/create-saas-app add billing --provider=stripe
714
- npx @digilogiclabs/create-saas-app add analytics --provider=mixpanel
715
- npx @digilogiclabs/create-saas-app add ai --capabilities=text,audio
716
- ```
717
-
718
- ### 🔄 **Update Command** (Coming Soon)
719
- ```bash
720
- # Check for package updates
721
- npx @digilogiclabs/create-saas-app update --check
722
-
723
- # Update all Digi Logic Labs packages
724
- npx @digilogiclabs/create-saas-app update
725
- ```
726
-
727
- ## 🌟 Examples
728
-
729
- ### 🤖 **AI-Powered SaaS**
730
- ```bash
731
- # Full AI platform with all capabilities
732
- npx @digilogiclabs/create-saas-app create web ui-auth-payments-ai \
733
- my-ai-platform \
734
- --with-ai=all \
735
- --ai-provider=openai \
736
- --theme=startup \
737
- --theme-color=purple
738
- ```
739
-
740
- ### 🎵 **Music Streaming Platform**
741
- ```bash
742
- # Audio platform with Supabase and corporate theme
743
- npx @digilogiclabs/create-saas-app create web ui-auth-payments-audio \
744
- music-streaming \
745
- --auth=supabase \
746
- --database=supabase \
747
- --theme=corporate \
748
- --theme-color=blue
749
- ```
750
-
751
- ### 🎬 **Video Creation Studio**
752
- ```bash
753
- # Video platform with AI generation capabilities
754
- npx @digilogiclabs/create-saas-app create web ui-auth-payments-video \
755
- video-studio \
756
- --with-ai=video \
757
- --ai-provider=replicate \
758
- --theme=startup \
759
- --default-theme=dark
760
- ```
761
-
762
- ## 📚 Getting Started Guide
763
-
764
- ### 1. **Create Your App**
765
- ```bash
766
- npx @digilogiclabs/create-saas-app create web ui-auth-payments-ai my-saas --with-ai=all
767
- cd my-saas
768
- ```
769
-
770
- ### 2. **Follow Setup Guide**
771
- ```bash
772
- npm run dev
773
- # Open http://localhost:3000/setup
774
- # Configure Supabase, Stripe, and AI providers
775
- ```
776
-
777
- ### 3. **Set Up Development Workflow**
778
- ```bash
779
- # Visit http://localhost:3000/dev-setup
780
- # Copy .claude configuration
781
- # Copy context.md documentation
782
- # Install Claude CLI: npm install -g @anthropic-ai/claude-cli
783
- ```
784
-
785
- ### 4. **Start Building with AI**
786
- ```bash
787
- claude "Help me add a user profile page"
788
- claude "Create a subscription management component"
789
- claude "Add error handling to the payment flow"
790
- ```
791
-
792
- ### 5. **Deploy to Production**
793
- ```bash
794
- # Follow deployment guide at /dev-setup
795
- vercel --prod # One-command deployment
796
- ```
797
-
798
- ## 🔧 Development
799
-
800
- ### 📋 **Requirements**
801
- - **Node.js**: 18.0.0 or higher
802
- - **Package Manager**: npm, yarn, or pnpm
803
- - **Git**: For repository initialization
804
-
805
- ### 🛠️ **Local Development**
806
- ```bash
807
- # Clone repository
808
- git clone https://github.com/DigiLogicLabs/create-saas-app.git
809
- cd create-saas-app
810
-
811
- # Install dependencies
812
- npm install
813
-
814
- # Build CLI
815
- npm run build
816
-
817
- # Test locally
818
- node bin/index.js create web ui-auth-payments-ai test-app --with-ai=all
819
- ```
820
-
821
- ## 🐛 Troubleshooting
822
-
823
- ### **Common Issues**
824
-
825
- #### CLI Command Not Found
826
- ```bash
827
- # Use npx (recommended)
828
- npx @digilogiclabs/create-saas-app
829
-
830
- # Or install globally
831
- npm install -g @digilogiclabs/create-saas-app
832
- ```
833
-
834
- #### Template Generation Fails
835
- ```bash
836
- # Check Node.js version (18.0.0+ required)
837
- node --version
838
-
839
- # Clear npm cache
840
- npm cache clean --force
841
-
842
- # Try with --no-install flag
843
- npx @digilogiclabs/create-saas-app create web ui-auth test-app --no-install
844
- ```
845
-
846
- #### Environment Variables Issues
847
- ```bash
848
- # Check setup guide in your app
849
- open http://localhost:3000/setup
850
-
851
- # Copy environment variables from setup page
852
- # Verify all required services are configured
853
- ```
854
-
855
- #### AI Integration Issues
856
- ```bash
857
- # Verify AI API keys in .env.local
858
- OPENAI_API_KEY=your_openai_key
859
- ELEVENLABS_API_KEY=your_elevenlabs_key
860
- REPLICATE_API_TOKEN=your_replicate_token
861
-
862
- # Check AI setup guide
863
- open http://localhost:3000/dev-setup
864
- ```
865
-
866
- ## 📄 License
867
-
868
- MIT © [Digi Logic Labs](https://digilogiclabs.com)
869
-
870
- ## 🆘 Support & Community
871
-
872
- - 💬 **Discord**: [Join our community](https://discord.gg/digilogiclabs)
873
- - 📖 **Documentation**: [docs.digilogiclabs.com](https://docs.digilogiclabs.com)
874
- - 🐛 **Issues**: [GitHub Issues](https://github.com/DigiLogicLabs/create-saas-app/issues)
875
- - 💡 **Feature Requests**: [GitHub Discussions](https://github.com/DigiLogicLabs/create-saas-app/discussions)
876
- - 📧 **Email**: support@digilogiclabs.com
877
-
878
- ## 🚀 What's Next?
879
-
880
- - 📱 **Enhanced Mobile Templates** - Additional React Native templates with specialized features
881
- - 🔌 **Plugin System** - Extensible architecture for custom features
882
- - 🤖 **More AI Providers** - Anthropic, Google, and custom model support
883
- - 📊 **Analytics Integration** - Built-in analytics and monitoring
884
- - 🌍 **Internationalization** - Multi-language support out of the box
885
- - 🎨 **Theme Marketplace** - Community-contributed themes and components
886
-
887
- ---
888
-
889
- **Built with ❤️ by [Digi Logic Labs](https://digilogiclabs.com)**
890
-
891
- *Creating the future of SaaS development, one template at a time.*
1
+ # @digilogiclabs/create-saas-app
2
+
3
+ **Create production-ready SaaS applications with AI capabilities in seconds.** This CLI tool generates modern web applications with authentication, payments, AI integration, and AI-powered development workflows.
4
+
5
+ [![npm version](https://badge.fury.io/js/%40digilogiclabs%2Fcreate-saas-app.svg)](https://badge.fury.io/js/%40digilogiclabs%2Fcreate-saas-app)
6
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
7
+
8
+ ## ⚡ **Quick Start - High-Value Templates**
9
+
10
+ Get started instantly with our most popular, production-ready templates:
11
+
12
+ ### **🎯 Recommended Templates**
13
+
14
+ ```bash
15
+ # 💳 Complete SaaS Foundation (Payments + Auth)
16
+ npx @digilogiclabs/create-saas-app create web ui-auth-payments my-saas-app
17
+
18
+ # 🤖 AI-Powered SaaS Platform (Text, Audio, Video AI)
19
+ npx @digilogiclabs/create-saas-app create web ui-auth-payments-ai ai-platform --with-ai=all
20
+
21
+ # 🧠 AI Knowledge Base & RAG System (v4.0.0)
22
+ npx @digilogiclabs/create-saas-app create web ui-auth-payments-ai-rag knowledge-app --with-ai=rag
23
+
24
+ # 🎵 Audio Streaming SaaS (Music/Podcast Platform)
25
+ npx @digilogiclabs/create-saas-app create web ui-auth-payments-audio music-platform
26
+
27
+ # 🎬 Video Streaming SaaS (Video Platform)
28
+ npx @digilogiclabs/create-saas-app create web ui-auth-payments-video video-studio
29
+
30
+ # 📱 Mobile AI SaaS (React Native + Expo)
31
+ npx @digilogiclabs/create-saas-app create mobile ui-auth-payments-ai mobile-ai-app --with-ai=all
32
+
33
+ # 📱 Mobile RAG Knowledge App
34
+ npx @digilogiclabs/create-saas-app create mobile ui-auth-payments-ai-rag knowledge-mobile --with-ai=rag
35
+ ```
36
+
37
+ ## 🚀 Complete Template Reference
38
+
39
+ ### **Quick Command Reference**
40
+
41
+ ```bash
42
+ # Interactive mode (recommended for beginners)
43
+ npx @digilogiclabs/create-saas-app create
44
+
45
+ # Direct command format
46
+ npx @digilogiclabs/create-saas-app create <platform> <template> <project-name> [options]
47
+
48
+ # Get help anytime
49
+ npx @digilogiclabs/create-saas-app --help
50
+ npx @digilogiclabs/create-saas-app create --help
51
+ ```
52
+
53
+ ### **📋 All Available Templates (16 Total)**
54
+
55
+ #### **🌐 Web Templates (11)**
56
+
57
+ **💎 Premium SaaS Templates**
58
+ | Template | Description | Features | Command |
59
+ |----------|-------------|----------|---------|
60
+ | `ui-auth-payments` | **Complete SaaS Foundation** | Auth + Payments + Dashboard | `npx @digilogiclabs/create-saas-app create web ui-auth-payments my-saas` |
61
+ | `ui-auth-payments-ai` | **AI-Powered SaaS Platform** | Full AI Suite (Text, Audio, Video) | `npx @digilogiclabs/create-saas-app create web ui-auth-payments-ai ai-platform --with-ai=all` |
62
+ | `ui-auth-payments-ai-rag` | **🧠 AI Knowledge Base & RAG** | Smart Document Processing v4.0.0 | `npx @digilogiclabs/create-saas-app create web ui-auth-payments-ai-rag knowledge-app --with-ai=rag` |
63
+ | `ui-auth-payments-audio` | **🎵 Audio Streaming SaaS** | Music/Podcast Platform | `npx @digilogiclabs/create-saas-app create web ui-auth-payments-audio music-platform` |
64
+ | `ui-auth-payments-video` | **🎬 Video Streaming SaaS** | Video Platform & Studio | `npx @digilogiclabs/create-saas-app create web ui-auth-payments-video video-studio` |
65
+
66
+ **🚀 Starter Templates**
67
+ | Template | Description | Features | Command |
68
+ |----------|-------------|----------|---------|
69
+ | `base` | Clean Next.js 15 starter | Minimal setup | `npx @digilogiclabs/create-saas-app create web base my-app` |
70
+ | `ui-only` | Component library showcase | Design system | `npx @digilogiclabs/create-saas-app create web ui-only design-system` |
71
+ | `ui-auth` | Authentication flow | Auth + Dashboard | `npx @digilogiclabs/create-saas-app create web ui-auth auth-app` |
72
+ | `ui-auth-ai` | Text & chat AI platform | Basic AI features | `npx @digilogiclabs/create-saas-app create web ui-auth-ai text-ai-app --with-ai=text` |
73
+ | `ui-package-test` | Component testing env | Development testing | `npx @digilogiclabs/create-saas-app create web ui-package-test component-test` |
74
+
75
+ #### **📱 Mobile Templates (5)**
76
+
77
+ **💎 Premium Mobile SaaS**
78
+ | Template | Description | Features | Command |
79
+ |----------|-------------|----------|---------|
80
+ | `ui-auth-payments` | **Full Mobile SaaS** | Auth + Payments + Native UI | `npx @digilogiclabs/create-saas-app create mobile ui-auth-payments mobile-saas` |
81
+ | `ui-auth-payments-ai` | **📱 Mobile AI SaaS** | Native AI with Voice/Camera | `npx @digilogiclabs/create-saas-app create mobile ui-auth-payments-ai ai-mobile-app --with-ai=all` |
82
+ | `ui-auth-payments-ai-rag` | **📱 Mobile Knowledge App** | Offline RAG + Document Scanning | `npx @digilogiclabs/create-saas-app create mobile ui-auth-payments-ai-rag knowledge-mobile --with-ai=rag` |
83
+
84
+ **🚀 Mobile Starters**
85
+ | Template | Description | Features | Command |
86
+ |----------|-------------|----------|---------|
87
+ | `base` | React Native + Expo starter | Minimal mobile setup | `npx @digilogiclabs/create-saas-app create mobile base mobile-app` |
88
+
89
+ ### **🤖 AI Capabilities Reference**
90
+
91
+ **AI Template Options (`--with-ai`)**
92
+ | Capability | Description | Includes | Best For |
93
+ |------------|-------------|----------|----------|
94
+ | `text` | Text generation & chat | OpenAI GPT, Claude, Gemini | Content creation, chatbots |
95
+ | `audio` | Audio processing & generation | Speech-to-text, text-to-speech, music | Podcasts, music platforms |
96
+ | `video` | Video processing & generation | Video editing, generation, streaming | Video platforms, content creation |
97
+ | `rag` | **🧠 RAG Knowledge System v4.0.0** | Vector search, document processing, Q&A | Knowledge bases, AI assistants |
98
+ | `all` | Complete AI suite | All above capabilities | Full AI platforms |
99
+
100
+ **Available AI Providers (`--ai-provider`)**
101
+
102
+ - `openai` (default) - GPT-4, DALL-E, Whisper
103
+ - `anthropic` - Claude Sonnet/Haiku
104
+ - `gemini` - Google Gemini Pro
105
+
106
+ ### **🛠 CLI Options**
107
+
108
+ #### **Core Arguments**
109
+
110
+ ```bash
111
+ <platform> # web | mobile | both
112
+ <template> # Template name (see table above)
113
+ <project-name> # Your project name (kebab-case recommended)
114
+ ```
115
+
116
+ #### **Configuration Flags**
117
+
118
+ ```bash
119
+ -a, --auth <provider> # firebase | supabase (default: supabase)
120
+ -d, --database <provider> # supabase | firebase (default: supabase)
121
+ -t, --theme <theme> # default | corporate | startup (default: default)
122
+ -c, --theme-color <color> # blue | green | purple | orange | red | slate (default: blue)
123
+ --default-theme <mode> # light | dark | system (default: system)
124
+ --with-ai [capabilities] # text | audio | video | text,audio | all (for AI templates)
125
+ --ai-provider <provider> # openai | anthropic | gemini (default: openai)
126
+ --no-install # Skip package installation
127
+ --no-git # Skip git initialization
128
+ -y, --yes # Skip interactive prompts
129
+ ```
130
+
131
+ ### **💡 Real-World Examples**
132
+
133
+ #### **🚀 Beginner: Interactive Mode**
134
+
135
+ ```bash
136
+ # Let the CLI guide you through all options
137
+ npx @digilogiclabs/create-saas-app create
138
+ ```
139
+
140
+ #### **🎯 Business Use Cases**
141
+
142
+ **💼 SaaS Startup**
143
+
144
+ ```bash
145
+ # Complete SaaS foundation with payments
146
+ npx @digilogiclabs/create-saas-app create web ui-auth-payments my-startup \
147
+ --theme=startup \
148
+ --theme-color=purple \
149
+ --auth=supabase \
150
+ --database=supabase
151
+ ```
152
+
153
+ **🤖 AI Content Platform**
154
+
155
+ ```bash
156
+ # Full AI platform with all capabilities
157
+ npx @digilogiclabs/create-saas-app create web ui-auth-payments-ai content-ai \
158
+ --with-ai=all \
159
+ --ai-provider=openai \
160
+ --theme=corporate \
161
+ --theme-color=blue
162
+ ```
163
+
164
+ **🧠 Knowledge Base & AI Assistant**
165
+
166
+ ```bash
167
+ # RAG-powered knowledge platform
168
+ npx @digilogiclabs/create-saas-app create web ui-auth-payments-ai-rag knowledge-base \
169
+ --with-ai=rag \
170
+ --ai-provider=anthropic \
171
+ --theme=startup \
172
+ --theme-color=green
173
+ ```
174
+
175
+ **🎵 Music Streaming Platform**
176
+
177
+ ```bash
178
+ # Audio streaming SaaS like Spotify
179
+ npx @digilogiclabs/create-saas-app create web ui-auth-payments-audio music-stream \
180
+ --theme=default \
181
+ --theme-color=orange \
182
+ --auth=supabase
183
+ ```
184
+
185
+ **📱 Mobile-First AI App**
186
+
187
+ ```bash
188
+ # Native mobile AI app with offline capabilities
189
+ npx @digilogiclabs/create-saas-app create mobile ui-auth-payments-ai mobile-ai \
190
+ --with-ai=all \
191
+ --theme=corporate \
192
+ --theme-color=blue \
193
+ --no-git
194
+
195
+ # Cross-platform SaaS with Firebase
196
+ npx @digilogiclabs/create-saas-app create both ui-auth-payments fullstack-saas \
197
+ --auth=firebase \
198
+ --database=firebase \
199
+ --theme=default \
200
+ --default-theme=dark
201
+
202
+ # Quick prototyping (no deps install)
203
+ npx @digilogiclabs/create-saas-app create web ui-auth-payments prototype \
204
+ --no-install \
205
+ --no-git \
206
+ --yes
207
+ ```
208
+
209
+ ### **🎯 Template Selection Guide**
210
+
211
+ #### **Choose by Use Case**
212
+
213
+ - **Learning/Prototyping**: `base` or `ui-only`
214
+ - **Authentication App**: `ui-auth`
215
+ - **SaaS with Billing**: `ui-auth-payments`
216
+ - **AI Applications**: `ui-auth-payments-ai` or `ui-auth-ai`
217
+ - **Media Platforms**: `ui-auth-payments-audio` or `ui-auth-payments-video`
218
+ - **Mobile Apps**: Mobile versions of above
219
+ - **Full-Stack**: `both` platform with any template
220
+
221
+ #### **Choose by Complexity**
222
+
223
+ 1. **Simple**: `base`, `ui-only`
224
+ 2. **Medium**: `ui-auth`, `ui-auth-payments`
225
+ 3. **Advanced**: `ui-auth-payments-ai`, `ui-auth-payments-audio`, `ui-auth-payments-video`
226
+
227
+ #### **Choose by Platform**
228
+
229
+ - **Web Only**: Use `web` platform
230
+ - **Mobile Only**: Use `mobile` platform
231
+ - **Universal**: Use `both` platform (web + mobile)
232
+
233
+ ## 🎉 What's New in v1.13.0
234
+
235
+ ### 🤖 **Complete AI Integration**
236
+
237
+ - **Ready-to-Use Components** - AIChat, AITextGenerator, AIAudioGenerator, AIVideoGenerator now available
238
+ - **Client-Side Configuration** - NEXT*PUBLIC* environment variables for seamless setup
239
+ - **Configuration Validation** - AISetupStatus component guides users through setup
240
+ - **Enhanced TypeScript** - Complete type definitions and IntelliSense support
241
+
242
+ ### 🎨 **Enhanced UI Library**
243
+
244
+ - **6 New Components** - Switch, Slider, Textarea, Accordion, Breadcrumbs, EmptyState
245
+ - **Fixed Glassmorphism API** - Proper `border` and `accent` properties now available
246
+ - **Cross-Platform Ready** - Single codebase supports Next.js + React Native/Expo
247
+ - **Node.js 18+ Support** - Broader compatibility for more environments
248
+
249
+ ### 🔐 **Expanded Authentication**
250
+
251
+ - **12 OAuth Providers** - Added Microsoft, LinkedIn, Spotify, Twitch, Slack, Notion
252
+ - **Enhanced User Types** - Comprehensive profiles with extended role system
253
+ - **Beautiful Provider UI** - Proper branding and SVG icons for all providers
254
+
255
+ ### 💳 **Improved Payments**
256
+
257
+ - **Enhanced Type System** - Better TypeScript definitions and error handling
258
+ - **Future-Ready Foundation** - Prepared for PayPal, Apple Pay, and analytics features
259
+
260
+ ## 🚀 Quick Start
261
+
262
+ ```bash
263
+ # Interactive mode (recommended)
264
+ npx @digilogiclabs/create-saas-app create
265
+
266
+ # Or create directly with popular templates
267
+ npx @digilogiclabs/create-saas-app create web ui-auth-payments-ai my-ai-saas --with-ai=all
268
+ npx @digilogiclabs/create-saas-app create mobile ui-auth-payments-ai mobile-ai-app --with-ai=all
269
+ npx @digilogiclabs/create-saas-app create web ui-auth-payments saas-app
270
+ ```
271
+
272
+ > 💡 **New to the CLI?** See the complete [Template Generator Guide](#-template-generator-guide) above for all options and examples.
273
+
274
+ ## What You Get
275
+
276
+ ### 🤖 **AI-First Development**
277
+
278
+ - **Claude CLI integration** - AI assistant configured for your specific template
279
+ - **Template-aware context** - AI understands your packages and architecture
280
+ - **Auto-generated documentation** - Context files and development guides
281
+ - **AI-powered components** - Text, audio, and video generation ready to use
282
+
283
+ ### 🏗️ **Production-Ready Stack**
284
+
285
+ - **Next.js 15.3** with App Router and Server Components
286
+ - **TypeScript** throughout with strict typing
287
+ - **Supabase** for database, auth, and real-time features
288
+ - **Stripe** for payments and subscriptions
289
+ - **Tailwind CSS v4** with glassmorphism design system
290
+
291
+ ### 🎯 **Developer Experience**
292
+
293
+ - **Setup guides** with copy-paste configurations
294
+ - **Deployment guides** for Vercel, Netlify, Railway, and Docker
295
+ - **Environment validation** and troubleshooting
296
+ - **Package documentation** and code examples
297
+
298
+ ## 🎨 Template Gallery
299
+
300
+ > 📋 **Quick Reference?** See the [Template Generator Guide](#-template-generator-guide) at the top for a complete table of all templates and commands.
301
+
302
+ Choose from **12 production-ready templates** across web and mobile platforms:
303
+
304
+ ### 🌐 **Web Templates (9 Available)**
305
+
306
+ #### **Core Templates**
307
+
308
+ ##### **Base Template** (`base`)
309
+
310
+ Clean Next.js 15 starter with minimal dependencies
311
+
312
+ - **Next.js 15.3** - App Router with Server Components
313
+ - **TypeScript** - Strict typing throughout
314
+ - **Tailwind CSS v4** - Modern utility-first styling
315
+ - **Essential setup** - Perfect foundation for custom builds
316
+
317
+ ```bash
318
+ npx @digilogiclabs/create-saas-app create web base my-app
319
+ ```
320
+
321
+ ##### **UI Only Template** (`ui-only`)
322
+
323
+ Components library showcase without authentication
324
+
325
+ - **Component gallery** - All @digilogiclabs/saas-factory-ui components
326
+ - **Design system** - Glassmorphism and modern patterns
327
+ - **No auth required** - Perfect for design system demos
328
+ - **Storybook-style** - Interactive component documentation
329
+
330
+ ```bash
331
+ npx @digilogiclabs/create-saas-app create web ui-only design-system
332
+ ```
333
+
334
+ #### **Authentication Templates**
335
+
336
+ ##### **UI + Auth** (`ui-auth`)
337
+
338
+ Modern authentication flow with beautiful UI
339
+
340
+ - **User management** - Sign up, login, profile management
341
+ - **12 OAuth providers** - Google, GitHub, Microsoft, LinkedIn, Spotify, and more
342
+ - **Protected routes** - Authentication-gated content
343
+ - **Email verification** - Secure account activation
344
+
345
+ ```bash
346
+ npx @digilogiclabs/create-saas-app create web ui-auth auth-app
347
+ ```
348
+
349
+ ##### **UI + Auth + Payments** (`ui-auth-payments`)
350
+
351
+ Complete SaaS foundation with billing
352
+
353
+ - **Subscription management** - Stripe integration with webhooks
354
+ - **User dashboards** - Account management and billing portal
355
+ - **Team features** - Multi-user support and permissions
356
+ - **Analytics** - Revenue and usage tracking
357
+
358
+ ```bash
359
+ npx @digilogiclabs/create-saas-app create web ui-auth-payments saas-platform
360
+ ```
361
+
362
+ #### **AI-Powered Templates**
363
+
364
+ ##### **AI + Auth** (`ui-auth-ai`)
365
+
366
+ Text and chat AI integration platform
367
+
368
+ - **Text generation** - OpenAI GPT-4 integration
369
+ - **AI chat interface** - Interactive conversation UI
370
+ - **Content management** - Save and organize AI outputs
371
+ - **Usage tracking** - Monitor API consumption
372
+
373
+ ```bash
374
+ npx @digilogiclabs/create-saas-app create web ui-auth-ai text-ai-app --with-ai=text
375
+ ```
376
+
377
+ ##### **AI + Auth + Payments** (`ui-auth-payments-ai`)
378
+
379
+ Full AI SaaS platform with multi-modal generation
380
+
381
+ - **Multi-modal AI** - Text, audio, and video generation
382
+ - **AI Dashboard** - Generation history and usage analytics
383
+ - **Smart UI** - Tabbed interface for different AI tools
384
+ - **Real-time features** - Live generation status and updates
385
+
386
+ ```bash
387
+ npx @digilogiclabs/create-saas-app create web ui-auth-payments-ai ai-platform --with-ai=all
388
+ ```
389
+
390
+ #### **Media Templates**
391
+
392
+ ##### **Audio SaaS** (`ui-auth-payments-audio`)
393
+
394
+ Music streaming and audio processing platform
395
+
396
+ - **Audio streaming** - Playlist management and playback
397
+ - **Audio generation** - AI-powered voice synthesis
398
+ - **Waveform visualization** - Real-time audio analysis
399
+ - **Offline support** - Cached playback and PWA features
400
+
401
+ ```bash
402
+ npx @digilogiclabs/create-saas-app create web ui-auth-payments-audio music-platform
403
+ ```
404
+
405
+ ##### **Video SaaS** (`ui-auth-payments-video`)
406
+
407
+ Video streaming and media platform
408
+
409
+ - **Video streaming** - Quality selection and adaptive bitrate
410
+ - **Video generation** - AI-powered video creation
411
+ - **Content management** - Upload, process, and organize videos
412
+ - **Analytics dashboard** - View counts and engagement metrics
413
+
414
+ ```bash
415
+ npx @digilogiclabs/create-saas-app create web ui-auth-payments-video video-studio
416
+ ```
417
+
418
+ #### **Development Templates**
419
+
420
+ ##### **UI Package Test** (`ui-package-test`)
421
+
422
+ Component testing environment for package development
423
+
424
+ - **Component testing** - Isolated testing environment
425
+ - **Package validation** - Test UI components before release
426
+ - **Development tools** - Hot reload and debugging setup
427
+ - **Documentation** - Auto-generated component docs
428
+
429
+ ```bash
430
+ npx @digilogiclabs/create-saas-app create web ui-package-test component-test
431
+ ```
432
+
433
+ ### 📱 **Mobile Templates (5 Available)**
434
+
435
+ #### **Base Mobile** (`base`)
436
+
437
+ React Native + Expo starter for mobile development
438
+
439
+ - **Expo 50** - Modern React Native development platform
440
+ - **TypeScript** - Full type safety for mobile
441
+ - **Navigation** - React Navigation v6 setup
442
+ - **Cross-platform** - iOS and Android support
443
+
444
+ ```bash
445
+ npx @digilogiclabs/create-saas-app create mobile base mobile-app
446
+ ```
447
+
448
+ #### **Mobile SaaS** (`ui-auth-payments`)
449
+
450
+ Full mobile SaaS platform with native UI v0.27.0
451
+
452
+ - **Native UI components** - 240+ components with enhanced mobile features
453
+ - **Authentication** - Supabase Auth v1.0.4 with biometric support
454
+ - **Payments** - Stripe React Native v0.28.0 integration
455
+ - **Advanced features** - Onboarding, tours, offline support, haptic feedback
456
+ - **Updated Dependencies** - Latest package versions for stability
457
+
458
+ ```bash
459
+ npx @digilogiclabs/create-saas-app create mobile ui-auth-payments mobile-saas
460
+ ```
461
+
462
+ #### **Mobile AI SaaS** (`ui-auth-payments-ai`)
463
+
464
+ Complete mobile AI platform with generation capabilities
465
+
466
+ - **AI Generation Suite** - Text, audio, and video AI generation
467
+ - **Native AI Components** - AITextGenerator, AIAudioGenerator, AIVideoGenerator, AIChat
468
+ - **AI Dashboard** - Usage statistics and generation history
469
+ - **Multi-modal AI** - OpenAI, ElevenLabs, Replicate integration
470
+ - **Mobile-optimized** - Touch-friendly AI interfaces with haptic feedback
471
+ - **Offline AI Cache** - Cached responses for better mobile experience
472
+ - **Enhanced TypeScript** - bundler moduleResolution for better compatibility
473
+
474
+ ```bash
475
+ npx @digilogiclabs/create-saas-app create mobile ui-auth-payments-ai ai-mobile-app --with-ai=all
476
+ ```
477
+
478
+ #### **Mobile RAG Knowledge App** (`ui-auth-payments-ai-rag`)
479
+
480
+ Advanced mobile knowledge base with RAG capabilities
481
+
482
+ - **RAG Integration** - Vector search and document processing
483
+ - **Offline RAG** - Local knowledge base for mobile-first experience
484
+ - **Document Scanning** - Native camera integration for document capture
485
+ - **Knowledge Management** - Organize and search through personal knowledge
486
+ - **AI-Powered Q&A** - Intelligent question answering from documents
487
+ - **Complete Mobile Setup** - All required config files and dependencies
488
+
489
+ ```bash
490
+ npx @digilogiclabs/create-saas-app create mobile ui-auth-payments-ai-rag knowledge-mobile --with-ai=rag
491
+ ```
492
+
493
+ ### 🚀 **Cross-Platform Templates**
494
+
495
+ #### **Full Stack Platform** (`ui-auth-payments`)
496
+
497
+ Web + Mobile SaaS platform
498
+
499
+ - **Shared codebase** - Unified components and logic
500
+ - **Web dashboard** - Full-featured admin interface
501
+ - **Mobile app** - Native mobile experience
502
+ - **Real-time sync** - Cross-platform data synchronization
503
+
504
+ ```bash
505
+ npx @digilogiclabs/create-saas-app create both ui-auth-payments fullstack-platform
506
+ ```
507
+
508
+ #### **AI Full Stack** (`ui-auth-payments-ai`)
509
+
510
+ Web + Mobile AI platform
511
+
512
+ - **AI everywhere** - Consistent AI features across platforms
513
+ - **Mobile-optimized** - Touch-friendly AI interfaces
514
+ - **Cloud sync** - AI generations sync across devices
515
+ - **Offline capable** - Cached AI responses for mobile
516
+
517
+ ```bash
518
+ npx @digilogiclabs/create-saas-app create both ui-auth-payments-ai ai-fullstack --with-ai=all
519
+ ```
520
+
521
+ ## 🤖 AI Development Workflow
522
+
523
+ Every template includes **Claude AI integration** for enhanced development:
524
+
525
+ ### 🎯 **Instant AI Setup**
526
+
527
+ ```bash
528
+ # Create your app
529
+ npx @digilogiclabs/create-saas-app create web ui-auth-payments-ai my-app --with-ai=all
530
+
531
+ # Navigate to setup
532
+ cd my-app && open http://localhost:3000/dev-setup
533
+
534
+ # Copy .claude configuration (auto-generated)
535
+ # Copy context.md documentation (auto-generated)
536
+
537
+ # Start coding with AI assistance
538
+ claude "Help me add a new AI feature"
539
+ claude "Create a user profile component"
540
+ claude "Debug this authentication error"
541
+ ```
542
+
543
+ ### 📚 **Smart AI Context**
544
+
545
+ Each template generates intelligent context for Claude:
546
+
547
+ - **Package integration guides** - How to use each Digi Logic Labs package
548
+ - **Architecture documentation** - Next.js patterns and best practices
549
+ - **Code examples** - Common patterns for auth, payments, AI
550
+ - **Environment setup** - Configuration and troubleshooting
551
+
552
+ ### ⚡ **AI-Powered Components** (v3.1.1)
553
+
554
+ Templates with `--with-ai` include complete component library:
555
+
556
+ ```typescript
557
+ import {
558
+ AIProvider,
559
+ AIChat,
560
+ AITextGenerator,
561
+ AIAudioGenerator,
562
+ AIVideoGenerator,
563
+ AISetupStatus,
564
+ getAIConfigFromEnv
565
+ } from '@digilogiclabs/saas-factory-ai'
566
+
567
+ function App() {
568
+ const config = getAIConfigFromEnv()
569
+
570
+ return (
571
+ <AIProvider config={config}>
572
+ {/* Configuration validation */}
573
+ <AISetupStatus />
574
+
575
+ {/* Text generation */}
576
+ <AITextGenerator
577
+ placeholder="Generate blog content..."
578
+ templates={['Blog post', 'Email', 'Social media']}
579
+ showWordCount={true}
580
+ maxLength={2000}
581
+ />
582
+
583
+ {/* AI chat interface */}
584
+ <AIChat
585
+ placeholder="Ask me anything..."
586
+ showTypingIndicator={true}
587
+ enableFileUpload={true}
588
+ maxMessages={50}
589
+ />
590
+
591
+ {/* Audio generation */}
592
+ <AIAudioGenerator
593
+ placeholder="Describe the audio..."
594
+ supportedFormats={['mp3', 'wav', 'ogg']}
595
+ showWaveform={true}
596
+ maxDuration={300}
597
+ />
598
+
599
+ {/* Video generation */}
600
+ <AIVideoGenerator
601
+ placeholder="Describe the video..."
602
+ supportedFormats={['mp4', 'webm']}
603
+ resolution="1080p"
604
+ showPreview={true}
605
+ maxDuration={60}
606
+ />
607
+ </AIProvider>
608
+ )
609
+ }
610
+ ```
611
+
612
+ ## 🚀 Deployment Made Simple
613
+
614
+ Every template includes **comprehensive deployment guides**:
615
+
616
+ ### 📋 **Multiple Hosting Options**
617
+
618
+ #### **Vercel (Recommended)**
619
+
620
+ ```bash
621
+ # One-command deployment
622
+ vercel --prod
623
+
624
+ # Automatic HTTPS, edge functions, preview deployments
625
+ ```
626
+
627
+ #### **Netlify**
628
+
629
+ ```bash
630
+ # Git-based deployment with form handling
631
+ npm run build && netlify deploy --prod
632
+ ```
633
+
634
+ #### **Railway**
635
+
636
+ ```bash
637
+ # Full-stack with integrated database
638
+ railway init && railway up
639
+ ```
640
+
641
+ #### **Docker + Cloud Run**
642
+
643
+ ```bash
644
+ # Containerized deployment with auto-scaling
645
+ gcloud run deploy --source .
646
+ ```
647
+
648
+ ### **Pre-Deployment Checklist**
649
+
650
+ Built-in validation ensures your app is deployment-ready:
651
+
652
+ - Environment variables configured
653
+ - Database tables created and RLS enabled
654
+ - Stripe webhooks configured (if using payments)
655
+ - Build succeeds locally
656
+ - ✅ Tests pass
657
+
658
+ ## 🎛️ Advanced Configuration
659
+
660
+ ### 🤖 **AI Capabilities**
661
+
662
+ ```bash
663
+ # Enable specific AI capabilities
664
+ --with-ai=text # Text generation only
665
+ --with-ai=audio # Audio generation only
666
+ --with-ai=video # Video generation only
667
+ --with-ai=text,audio # Text and audio
668
+ --with-ai=all # All AI capabilities
669
+
670
+ # Specify AI provider
671
+ --ai-provider=openai # OpenAI (default)
672
+ --ai-provider=anthropic # Anthropic Claude
673
+ --ai-provider=gemini # Google Gemini
674
+ ```
675
+
676
+ ### 🎨 **Theming & Styling**
677
+
678
+ ```bash
679
+ # Theme options
680
+ --theme=default # Clean and modern
681
+ --theme=corporate # Professional blue
682
+ --theme=startup # Bold purple
683
+
684
+ # Theme colors
685
+ --theme-color=blue # Blue accents (default)
686
+ --theme-color=purple # Purple accents
687
+ --theme-color=green # Green accents
688
+
689
+ # Default theme mode
690
+ --default-theme=system # Follow system (default)
691
+ --default-theme=light # Always light
692
+ --default-theme=dark # Always dark
693
+ ```
694
+
695
+ ### 🔐 **Service Providers**
696
+
697
+ ```bash
698
+ # Authentication
699
+ --auth=supabase # Supabase Auth (default)
700
+ --auth=firebase # Firebase Auth
701
+
702
+ # Database
703
+ --database=supabase # Supabase (default)
704
+ --database=firebase # Firebase Firestore
705
+ ```
706
+
707
+ ## 📦 Package Ecosystem
708
+
709
+ ### 🎨 **UI & Design** (v0.27.1)
710
+
711
+ - **@digilogiclabs/saas-factory-ui** - 240+ components with mobile-first design
712
+ - **75% Component Increase** - From 140+ to 240+ components in v0.22.0
713
+ - **Cross-Platform Support** - Single codebase for Next.js + React Native/Expo
714
+ - **Native Mobile Components** - AppShell, BottomTabBar, NativeTour, VirtualScrollList
715
+ - **Advanced Features** - Haptic feedback, gesture support, offline capabilities
716
+ - **Enhanced Glassmorphism** - Fixed API with proper `border` and `accent` properties
717
+ - **Next.js 15.3** - App Router with Server Components
718
+ - **Tailwind CSS v4** - Design tokens and utility classes
719
+ - **Node.js 18+ Support** - Broader compatibility range
720
+
721
+ ### 🔐 **Authentication** (v1.0.5)
722
+
723
+ - **@digilogiclabs/saas-factory-auth** - Enhanced Supabase Auth integration
724
+ - **12 OAuth Providers** - Google, GitHub, Microsoft, LinkedIn, Spotify, Twitch, Slack, Notion + more
725
+ - **Enhanced TypeScript Types** - Comprehensive user profiles and metadata
726
+ - **Beautiful UI Components** - Proper branding and SVG icons for all providers
727
+ - **Extended User Roles** - owner, editor, viewer, contributor, manager, developer, analyst, support
728
+ - **Row Level Security** - Database-level permissions
729
+ - **Email verification** - Secure account management
730
+
731
+ ### 💳 **Payments** (v1.2.6)
732
+
733
+ - **@digilogiclabs/saas-factory-payments** - Enhanced Stripe integration
734
+ - **Improved Type System** - Better TypeScript definitions with cross-platform compatibility
735
+ - **Enhanced Error Handling** - Expanded error types for comprehensive management
736
+ - **Better Subscription Management** - Enhanced types with additional compatibility fields
737
+ - **Future-Ready Architecture** - Foundation for PayPal, Apple Pay, and analytics
738
+ - **Webhook handling** - Secure payment event processing
739
+ - **Customer portal** - Self-service billing management
740
+
741
+ ### 🤖 **AI Platform** (v3.1.1)
742
+
743
+ - **@digilogiclabs/saas-factory-ai** - Complete React component library
744
+ - **Ready-to-Use Components** - AIChat, AITextGenerator, AIAudioGenerator, AIVideoGenerator, AIProvider
745
+ - **@digilogiclabs/saas-factory-ai-types** - Complete TypeScript definitions
746
+ - **Client-Side Configuration** - NEXT*PUBLIC* environment variable support
747
+ - **Configuration Validation** - AISetupStatus component and validateAIConfig() helper
748
+ - **Environment Helpers** - getAIConfigFromEnv() for seamless setup
749
+ - **OpenAI integration** - GPT-4 for text and audio
750
+ - **ElevenLabs integration** - High-quality voice synthesis
751
+ - **Replicate integration** - Video and image generation
752
+
753
+ ## 🛠️ Command Reference
754
+
755
+ ### 📋 **Create Command**
756
+
757
+ ```bash
758
+ npx @digilogiclabs/create-saas-app create <platform> [template] [name] [options]
759
+
760
+ # Arguments
761
+ platform # web, mobile, or both
762
+ template # ui-auth-payments-ai, ui-auth-payments, ui-auth, etc.
763
+ name # your-project-name
764
+
765
+ # Options
766
+ -a, --auth <provider> # firebase, supabase
767
+ -d, --database <provider> # supabase, firebase
768
+ -t, --theme <theme> # default, corporate, startup
769
+ -c, --theme-color <color> # blue, green, purple, orange, red, slate
770
+ --default-theme <mode> # light, dark, system
771
+ --with-ai [capabilities] # text,audio,video or all
772
+ --ai-provider <provider> # openai, anthropic, gemini
773
+ --no-install # Skip package installation
774
+ --no-git # Skip git initialization
775
+ -y, --yes # Skip interactive prompts
776
+ ```
777
+
778
+ ### ➕ **Add Features** (Coming Soon)
779
+
780
+ ```bash
781
+ # Add features to existing projects
782
+ npx @digilogiclabs/create-saas-app add billing --provider=stripe
783
+ npx @digilogiclabs/create-saas-app add analytics --provider=mixpanel
784
+ npx @digilogiclabs/create-saas-app add ai --capabilities=text,audio
785
+ ```
786
+
787
+ ### 🔄 **Update Command** (Coming Soon)
788
+
789
+ ```bash
790
+ # Check for package updates
791
+ npx @digilogiclabs/create-saas-app update --check
792
+
793
+ # Update all Digi Logic Labs packages
794
+ npx @digilogiclabs/create-saas-app update
795
+ ```
796
+
797
+ ## 🌟 Examples
798
+
799
+ ### 🤖 **AI-Powered SaaS**
800
+
801
+ ```bash
802
+ # Full AI platform with all capabilities
803
+ npx @digilogiclabs/create-saas-app create web ui-auth-payments-ai \
804
+ my-ai-platform \
805
+ --with-ai=all \
806
+ --ai-provider=openai \
807
+ --theme=startup \
808
+ --theme-color=purple
809
+ ```
810
+
811
+ ### 🎵 **Music Streaming Platform**
812
+
813
+ ```bash
814
+ # Audio platform with Supabase and corporate theme
815
+ npx @digilogiclabs/create-saas-app create web ui-auth-payments-audio \
816
+ music-streaming \
817
+ --auth=supabase \
818
+ --database=supabase \
819
+ --theme=corporate \
820
+ --theme-color=blue
821
+ ```
822
+
823
+ ### 🎬 **Video Creation Studio**
824
+
825
+ ```bash
826
+ # Video platform with AI generation capabilities
827
+ npx @digilogiclabs/create-saas-app create web ui-auth-payments-video \
828
+ video-studio \
829
+ --with-ai=video \
830
+ --ai-provider=replicate \
831
+ --theme=startup \
832
+ --default-theme=dark
833
+ ```
834
+
835
+ ## 📚 Getting Started Guide
836
+
837
+ ### 1. **Create Your App**
838
+
839
+ ```bash
840
+ npx @digilogiclabs/create-saas-app create web ui-auth-payments-ai my-saas --with-ai=all
841
+ cd my-saas
842
+ ```
843
+
844
+ ### 2. **Follow Setup Guide**
845
+
846
+ ```bash
847
+ npm run dev
848
+ # Open http://localhost:3000/setup
849
+ # Configure Supabase, Stripe, and AI providers
850
+ ```
851
+
852
+ ### 3. **Set Up Development Workflow**
853
+
854
+ ```bash
855
+ # Visit http://localhost:3000/dev-setup
856
+ # Copy .claude configuration
857
+ # Copy context.md documentation
858
+ # Install Claude CLI: npm install -g @anthropic-ai/claude-cli
859
+ ```
860
+
861
+ ### 4. **Start Building with AI**
862
+
863
+ ```bash
864
+ claude "Help me add a user profile page"
865
+ claude "Create a subscription management component"
866
+ claude "Add error handling to the payment flow"
867
+ ```
868
+
869
+ ### 5. **Deploy to Production**
870
+
871
+ ```bash
872
+ # Follow deployment guide at /dev-setup
873
+ vercel --prod # One-command deployment
874
+ ```
875
+
876
+ ## 🔧 Development
877
+
878
+ ### 📋 **Requirements**
879
+
880
+ - **Node.js**: 18.0.0 or higher
881
+ - **Package Manager**: npm, yarn, or pnpm
882
+ - **Git**: For repository initialization
883
+
884
+ ### 🛠️ **Local Development**
885
+
886
+ ```bash
887
+ # Clone repository
888
+ git clone https://github.com/DigiLogicLabs/create-saas-app.git
889
+ cd create-saas-app
890
+
891
+ # Install dependencies
892
+ npm install
893
+
894
+ # Build CLI
895
+ npm run build
896
+
897
+ # Test locally
898
+ node bin/index.js create web ui-auth-payments-ai test-app --with-ai=all
899
+ ```
900
+
901
+ ## 🐛 Troubleshooting
902
+
903
+ ### ❓ **Common Issues**
904
+
905
+ #### CLI Command Not Found
906
+
907
+ ```bash
908
+ # Use npx (recommended)
909
+ npx @digilogiclabs/create-saas-app
910
+
911
+ # Or install globally
912
+ npm install -g @digilogiclabs/create-saas-app
913
+ ```
914
+
915
+ #### Template Generation Fails
916
+
917
+ ```bash
918
+ # Check Node.js version (18.0.0+ required)
919
+ node --version
920
+
921
+ # Clear npm cache
922
+ npm cache clean --force
923
+
924
+ # Try with --no-install flag
925
+ npx @digilogiclabs/create-saas-app create web ui-auth test-app --no-install
926
+ ```
927
+
928
+ #### Environment Variables Issues
929
+
930
+ ```bash
931
+ # Check setup guide in your app
932
+ open http://localhost:3000/setup
933
+
934
+ # Copy environment variables from setup page
935
+ # Verify all required services are configured
936
+ ```
937
+
938
+ #### AI Integration Issues
939
+
940
+ ```bash
941
+ # Verify AI API keys in .env.local
942
+ OPENAI_API_KEY=your_openai_key
943
+ ELEVENLABS_API_KEY=your_elevenlabs_key
944
+ REPLICATE_API_TOKEN=your_replicate_token
945
+
946
+ # Check AI setup guide
947
+ open http://localhost:3000/dev-setup
948
+ ```
949
+
950
+ ## 📄 License
951
+
952
+ MIT © [Digi Logic Labs](https://digilogiclabs.com)
953
+
954
+ ## 🆘 Support & Community
955
+
956
+ - 💬 **Discord**: [Join our community](https://discord.gg/digilogiclabs)
957
+ - 📖 **Documentation**: [docs.digilogiclabs.com](https://docs.digilogiclabs.com)
958
+ - 🐛 **Issues**: [GitHub Issues](https://github.com/DigiLogicLabs/create-saas-app/issues)
959
+ - 💡 **Feature Requests**: [GitHub Discussions](https://github.com/DigiLogicLabs/create-saas-app/discussions)
960
+ - 📧 **Email**: support@digilogiclabs.com
961
+
962
+ ## 🚀 What's Next?
963
+
964
+ - 📱 **Enhanced Mobile Templates** - Additional React Native templates with specialized features
965
+ - 🔌 **Plugin System** - Extensible architecture for custom features
966
+ - 🤖 **More AI Providers** - Anthropic, Google, and custom model support
967
+ - 📊 **Analytics Integration** - Built-in analytics and monitoring
968
+ - 🌍 **Internationalization** - Multi-language support out of the box
969
+ - 🎨 **Theme Marketplace** - Community-contributed themes and components
970
+
971
+ ---
972
+
973
+ **Built with ❤️ by [Digi Logic Labs](https://digilogiclabs.com)**
974
+
975
+ _Creating the future of SaaS development, one template at a time._