@digilogiclabs/create-saas-app 2.4.0 → 2.5.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 (215) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/.tsbuildinfo +1 -1
  3. package/dist/generators/template-generator.d.ts.map +1 -1
  4. package/dist/generators/template-generator.js +2 -11
  5. package/dist/generators/template-generator.js.map +1 -1
  6. package/dist/templates/mobile/base/template/App.tsx +8 -13
  7. package/dist/templates/mobile/base/template/app/(auth)/login.tsx +1 -2
  8. package/dist/templates/mobile/base/template/app/(auth)/signup.tsx +1 -2
  9. package/dist/templates/mobile/base/template/app/checkout.tsx +2 -2
  10. package/dist/templates/mobile/base/template/package.json +0 -2
  11. package/dist/templates/mobile/ui-auth-payments/template/app/(tabs)/_layout.tsx +1 -1
  12. package/dist/templates/mobile/ui-auth-payments/template/app/(tabs)/billing.tsx +1 -1
  13. package/dist/templates/mobile/ui-auth-payments/template/app/(tabs)/index.tsx +1 -1
  14. package/dist/templates/mobile/ui-auth-payments/template/app/(tabs)/profile.tsx +1 -1
  15. package/dist/templates/mobile/ui-auth-payments/template/app/_layout.tsx +4 -14
  16. package/dist/templates/mobile/ui-auth-payments/template/app/auth/login.tsx +1 -1
  17. package/dist/templates/mobile/ui-auth-payments/template/app/auth/signup.tsx +1 -1
  18. package/dist/templates/mobile/ui-auth-payments/template/package.json +1 -3
  19. package/dist/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/_layout.tsx +1 -1
  20. package/dist/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/billing.tsx +1 -1
  21. package/dist/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/index.tsx +1 -1
  22. package/dist/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/profile.tsx +1 -1
  23. package/dist/templates/mobile/ui-auth-payments-ai/template/app/_layout.tsx +4 -14
  24. package/dist/templates/mobile/ui-auth-payments-ai/template/app/auth/login.tsx +1 -1
  25. package/dist/templates/mobile/ui-auth-payments-ai/template/app/auth/signup.tsx +1 -1
  26. package/dist/templates/mobile/ui-auth-payments-ai/template/package.json +0 -2
  27. package/dist/templates/mobile/ui-auth-payments-ai-rag/template/app/_layout.tsx +5 -15
  28. package/dist/templates/mobile/ui-auth-payments-ai-rag/template/package.json +0 -2
  29. package/dist/templates/web/ai-platform/template/package.json +0 -2
  30. package/dist/templates/web/base/template/package.json +0 -2
  31. package/dist/templates/web/base/template/src/app/checkout/page.tsx +2 -2
  32. package/dist/templates/web/base/template/src/app/dashboard/page.tsx +1 -1
  33. package/dist/templates/web/base/template/src/app/login/page.tsx +1 -2
  34. package/dist/templates/web/base/template/src/app/page.tsx +1 -1
  35. package/dist/templates/web/base/template/src/app/signup/page.tsx +1 -2
  36. package/dist/templates/web/base/template/src/components/providers/app-providers.tsx +14 -19
  37. package/dist/templates/web/base/template/src/components/shared/header.tsx +1 -1
  38. package/dist/templates/web/base/template/src/lib/platform.ts +0 -25
  39. package/dist/templates/web/base/template/src/test/setup.ts +3 -8
  40. package/dist/templates/web/iot-dashboard/template/package.json +0 -1
  41. package/dist/templates/web/marketplace/template/package.json +0 -2
  42. package/dist/templates/web/micro-saas/template/package.json +0 -1
  43. package/dist/templates/web/ui-auth/template/.claude +1 -1
  44. package/dist/templates/web/ui-auth/template/context.md +5 -5
  45. package/dist/templates/web/ui-auth/template/package.json +0 -1
  46. package/dist/templates/web/ui-auth/template/src/app/dev-setup/page.tsx +3 -3
  47. package/dist/templates/web/ui-auth/template/src/app/login/page.tsx +1 -1
  48. package/dist/templates/web/ui-auth/template/src/app/page.tsx +1 -1
  49. package/dist/templates/web/ui-auth/template/src/app/signup/page.tsx +1 -1
  50. package/dist/templates/web/ui-auth/template/src/components/providers/app-providers.tsx +3 -3
  51. package/dist/templates/web/ui-auth/template/src/lib/platform.ts +0 -16
  52. package/dist/templates/web/ui-auth/template/src/test/setup.ts +3 -8
  53. package/dist/templates/web/ui-auth-ai/template/package.json +0 -1
  54. package/dist/templates/web/ui-auth-payments/template/package.json +0 -2
  55. package/dist/templates/web/ui-auth-payments/template/src/app/billing/page.tsx +2 -1
  56. package/dist/templates/web/ui-auth-payments/template/src/app/checkout/page.tsx +2 -1
  57. package/dist/templates/web/ui-auth-payments/template/src/app/dev-setup/page.tsx +3 -3
  58. package/dist/templates/web/ui-auth-payments/template/src/app/login/page.tsx +1 -1
  59. package/dist/templates/web/ui-auth-payments/template/src/app/page.tsx +1 -1
  60. package/dist/templates/web/ui-auth-payments/template/src/app/signup/page.tsx +1 -1
  61. package/dist/templates/web/ui-auth-payments/template/src/components/client/auth-status.tsx +1 -1
  62. package/dist/templates/web/ui-auth-payments/template/src/components/client/login-form.tsx +1 -1
  63. package/dist/templates/web/ui-auth-payments/template/src/components/client/signup-form.tsx +1 -1
  64. package/dist/templates/web/ui-auth-payments/template/src/components/providers/app-providers.tsx +7 -10
  65. package/dist/templates/web/ui-auth-payments/template/src/components/shared/header.tsx +1 -1
  66. package/dist/templates/web/ui-auth-payments/template/src/lib/platform.ts +0 -25
  67. package/dist/templates/web/ui-auth-payments/template/src/test/setup.ts +3 -8
  68. package/dist/templates/web/ui-auth-payments-ai/template/.claude +1 -1
  69. package/dist/templates/web/ui-auth-payments-ai/template/context.md +11 -11
  70. package/dist/templates/web/ui-auth-payments-ai/template/package.json +0 -2
  71. package/dist/templates/web/ui-auth-payments-ai/template/src/app/ai/page.tsx +1 -1
  72. package/dist/templates/web/ui-auth-payments-ai/template/src/app/billing/page.tsx +2 -1
  73. package/dist/templates/web/ui-auth-payments-ai/template/src/app/checkout/page.tsx +2 -1
  74. package/dist/templates/web/ui-auth-payments-ai/template/src/app/dev-setup/page.tsx +3 -3
  75. package/dist/templates/web/ui-auth-payments-ai/template/src/app/onboarding/page.tsx +1 -1
  76. package/dist/templates/web/ui-auth-payments-ai/template/src/app/page.tsx +1 -1
  77. package/dist/templates/web/ui-auth-payments-ai/template/src/app/settings/page.tsx +1 -1
  78. package/dist/templates/web/ui-auth-payments-ai/template/src/components/client/auth-status.tsx +1 -1
  79. package/dist/templates/web/ui-auth-payments-ai/template/src/components/client/login-form.tsx +1 -1
  80. package/dist/templates/web/ui-auth-payments-ai/template/src/components/client/signup-form.tsx +1 -1
  81. package/dist/templates/web/ui-auth-payments-ai/template/src/components/providers/app-providers.tsx +7 -10
  82. package/dist/templates/web/ui-auth-payments-ai/template/src/components/shared/header.tsx +1 -1
  83. package/dist/templates/web/ui-auth-payments-ai/template/src/lib/platform.ts +0 -18
  84. package/dist/templates/web/ui-auth-payments-ai/template/src/test/setup.ts +3 -8
  85. package/dist/templates/web/ui-auth-payments-ai-rag/template/package.json +0 -2
  86. package/dist/templates/web/ui-auth-payments-ai-rag/template/src/app/ai/page.tsx +1 -1
  87. package/dist/templates/web/ui-auth-payments-audio/template/package.json +0 -2
  88. package/dist/templates/web/ui-auth-payments-audio/template/src/app/billing/page.tsx +2 -1
  89. package/dist/templates/web/ui-auth-payments-audio/template/src/app/checkout/page.tsx +2 -1
  90. package/dist/templates/web/ui-auth-payments-audio/template/src/app/page.tsx +1 -1
  91. package/dist/templates/web/ui-auth-payments-audio/template/src/components/client/auth-status.tsx +1 -1
  92. package/dist/templates/web/ui-auth-payments-audio/template/src/components/client/login-form.tsx +1 -1
  93. package/dist/templates/web/ui-auth-payments-audio/template/src/components/client/signup-form.tsx +1 -1
  94. package/dist/templates/web/ui-auth-payments-audio/template/src/components/providers/app-providers.tsx +7 -10
  95. package/dist/templates/web/ui-auth-payments-audio/template/src/components/shared/header.tsx +1 -1
  96. package/dist/templates/web/ui-auth-payments-audio/template/src/test/setup.ts +3 -8
  97. package/dist/templates/web/ui-auth-payments-video/template/package.json +0 -2
  98. package/dist/templates/web/ui-auth-payments-video/template/src/app/billing/page.tsx +2 -1
  99. package/dist/templates/web/ui-auth-payments-video/template/src/app/checkout/page.tsx +2 -1
  100. package/dist/templates/web/ui-auth-payments-video/template/src/app/login/page.tsx +1 -1
  101. package/dist/templates/web/ui-auth-payments-video/template/src/app/page.tsx +1 -1
  102. package/dist/templates/web/ui-auth-payments-video/template/src/app/signup/page.tsx +1 -1
  103. package/dist/templates/web/ui-auth-payments-video/template/src/components/providers/app-providers.tsx +7 -10
  104. package/dist/templates/web/ui-auth-payments-video/template/src/components/shared/header.tsx +1 -1
  105. package/dist/templates/web/ui-auth-payments-video/template/src/test/setup.ts +3 -8
  106. package/dist/templates/web/ui-only/template/src/test/setup.ts +3 -8
  107. package/package.json +1 -1
  108. package/src/templates/mobile/base/template/App.tsx +8 -13
  109. package/src/templates/mobile/base/template/app/(auth)/login.tsx +1 -2
  110. package/src/templates/mobile/base/template/app/(auth)/signup.tsx +1 -2
  111. package/src/templates/mobile/base/template/app/checkout.tsx +2 -2
  112. package/src/templates/mobile/base/template/package.json +0 -2
  113. package/src/templates/mobile/ui-auth-payments/template/app/(tabs)/_layout.tsx +1 -1
  114. package/src/templates/mobile/ui-auth-payments/template/app/(tabs)/billing.tsx +1 -1
  115. package/src/templates/mobile/ui-auth-payments/template/app/(tabs)/index.tsx +1 -1
  116. package/src/templates/mobile/ui-auth-payments/template/app/(tabs)/profile.tsx +1 -1
  117. package/src/templates/mobile/ui-auth-payments/template/app/_layout.tsx +4 -14
  118. package/src/templates/mobile/ui-auth-payments/template/app/auth/login.tsx +1 -1
  119. package/src/templates/mobile/ui-auth-payments/template/app/auth/signup.tsx +1 -1
  120. package/src/templates/mobile/ui-auth-payments/template/package.json +1 -3
  121. package/src/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/_layout.tsx +1 -1
  122. package/src/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/billing.tsx +1 -1
  123. package/src/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/index.tsx +1 -1
  124. package/src/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/profile.tsx +1 -1
  125. package/src/templates/mobile/ui-auth-payments-ai/template/app/_layout.tsx +4 -14
  126. package/src/templates/mobile/ui-auth-payments-ai/template/app/auth/login.tsx +1 -1
  127. package/src/templates/mobile/ui-auth-payments-ai/template/app/auth/signup.tsx +1 -1
  128. package/src/templates/mobile/ui-auth-payments-ai/template/package.json +0 -2
  129. package/src/templates/mobile/ui-auth-payments-ai-rag/template/app/_layout.tsx +5 -15
  130. package/src/templates/mobile/ui-auth-payments-ai-rag/template/package.json +0 -2
  131. package/src/templates/web/ai-platform/template/package.json +0 -2
  132. package/src/templates/web/base/template/package.json +0 -2
  133. package/src/templates/web/base/template/src/app/checkout/page.tsx +2 -2
  134. package/src/templates/web/base/template/src/app/dashboard/page.tsx +1 -1
  135. package/src/templates/web/base/template/src/app/login/page.tsx +1 -2
  136. package/src/templates/web/base/template/src/app/page.tsx +1 -1
  137. package/src/templates/web/base/template/src/app/signup/page.tsx +1 -2
  138. package/src/templates/web/base/template/src/components/providers/app-providers.tsx +14 -19
  139. package/src/templates/web/base/template/src/components/shared/header.tsx +1 -1
  140. package/src/templates/web/base/template/src/lib/platform.ts +0 -25
  141. package/src/templates/web/base/template/src/test/setup.ts +3 -8
  142. package/src/templates/web/iot-dashboard/template/package.json +0 -1
  143. package/src/templates/web/marketplace/template/package.json +0 -2
  144. package/src/templates/web/micro-saas/template/package.json +0 -1
  145. package/src/templates/web/ui-auth/template/.claude +1 -1
  146. package/src/templates/web/ui-auth/template/context.md +5 -5
  147. package/src/templates/web/ui-auth/template/package.json +0 -1
  148. package/src/templates/web/ui-auth/template/src/app/dev-setup/page.tsx +3 -3
  149. package/src/templates/web/ui-auth/template/src/app/login/page.tsx +1 -1
  150. package/src/templates/web/ui-auth/template/src/app/page.tsx +1 -1
  151. package/src/templates/web/ui-auth/template/src/app/signup/page.tsx +1 -1
  152. package/src/templates/web/ui-auth/template/src/components/providers/app-providers.tsx +3 -3
  153. package/src/templates/web/ui-auth/template/src/lib/platform.ts +0 -16
  154. package/src/templates/web/ui-auth/template/src/test/setup.ts +3 -8
  155. package/src/templates/web/ui-auth-ai/template/package.json +0 -1
  156. package/src/templates/web/ui-auth-payments/template/package.json +0 -2
  157. package/src/templates/web/ui-auth-payments/template/src/app/billing/page.tsx +2 -1
  158. package/src/templates/web/ui-auth-payments/template/src/app/checkout/page.tsx +2 -1
  159. package/src/templates/web/ui-auth-payments/template/src/app/dev-setup/page.tsx +3 -3
  160. package/src/templates/web/ui-auth-payments/template/src/app/login/page.tsx +1 -1
  161. package/src/templates/web/ui-auth-payments/template/src/app/page.tsx +1 -1
  162. package/src/templates/web/ui-auth-payments/template/src/app/signup/page.tsx +1 -1
  163. package/src/templates/web/ui-auth-payments/template/src/components/client/auth-status.tsx +1 -1
  164. package/src/templates/web/ui-auth-payments/template/src/components/client/login-form.tsx +1 -1
  165. package/src/templates/web/ui-auth-payments/template/src/components/client/signup-form.tsx +1 -1
  166. package/src/templates/web/ui-auth-payments/template/src/components/providers/app-providers.tsx +7 -10
  167. package/src/templates/web/ui-auth-payments/template/src/components/shared/header.tsx +1 -1
  168. package/src/templates/web/ui-auth-payments/template/src/lib/platform.ts +0 -25
  169. package/src/templates/web/ui-auth-payments/template/src/test/setup.ts +3 -8
  170. package/src/templates/web/ui-auth-payments-ai/template/.claude +1 -1
  171. package/src/templates/web/ui-auth-payments-ai/template/context.md +11 -11
  172. package/src/templates/web/ui-auth-payments-ai/template/package.json +0 -2
  173. package/src/templates/web/ui-auth-payments-ai/template/src/app/ai/page.tsx +1 -1
  174. package/src/templates/web/ui-auth-payments-ai/template/src/app/billing/page.tsx +2 -1
  175. package/src/templates/web/ui-auth-payments-ai/template/src/app/checkout/page.tsx +2 -1
  176. package/src/templates/web/ui-auth-payments-ai/template/src/app/dev-setup/page.tsx +3 -3
  177. package/src/templates/web/ui-auth-payments-ai/template/src/app/onboarding/page.tsx +1 -1
  178. package/src/templates/web/ui-auth-payments-ai/template/src/app/page.tsx +1 -1
  179. package/src/templates/web/ui-auth-payments-ai/template/src/app/settings/page.tsx +1 -1
  180. package/src/templates/web/ui-auth-payments-ai/template/src/components/client/auth-status.tsx +1 -1
  181. package/src/templates/web/ui-auth-payments-ai/template/src/components/client/login-form.tsx +1 -1
  182. package/src/templates/web/ui-auth-payments-ai/template/src/components/client/signup-form.tsx +1 -1
  183. package/src/templates/web/ui-auth-payments-ai/template/src/components/providers/app-providers.tsx +7 -10
  184. package/src/templates/web/ui-auth-payments-ai/template/src/components/shared/header.tsx +1 -1
  185. package/src/templates/web/ui-auth-payments-ai/template/src/lib/platform.ts +0 -18
  186. package/src/templates/web/ui-auth-payments-ai/template/src/test/setup.ts +3 -8
  187. package/src/templates/web/ui-auth-payments-ai-rag/template/package.json +0 -2
  188. package/src/templates/web/ui-auth-payments-ai-rag/template/src/app/ai/page.tsx +1 -1
  189. package/src/templates/web/ui-auth-payments-audio/template/package.json +0 -2
  190. package/src/templates/web/ui-auth-payments-audio/template/src/app/billing/page.tsx +2 -1
  191. package/src/templates/web/ui-auth-payments-audio/template/src/app/checkout/page.tsx +2 -1
  192. package/src/templates/web/ui-auth-payments-audio/template/src/app/page.tsx +1 -1
  193. package/src/templates/web/ui-auth-payments-audio/template/src/components/client/auth-status.tsx +1 -1
  194. package/src/templates/web/ui-auth-payments-audio/template/src/components/client/login-form.tsx +1 -1
  195. package/src/templates/web/ui-auth-payments-audio/template/src/components/client/signup-form.tsx +1 -1
  196. package/src/templates/web/ui-auth-payments-audio/template/src/components/providers/app-providers.tsx +7 -10
  197. package/src/templates/web/ui-auth-payments-audio/template/src/components/shared/header.tsx +1 -1
  198. package/src/templates/web/ui-auth-payments-audio/template/src/test/setup.ts +3 -8
  199. package/src/templates/web/ui-auth-payments-video/template/package.json +0 -2
  200. package/src/templates/web/ui-auth-payments-video/template/src/app/billing/page.tsx +2 -1
  201. package/src/templates/web/ui-auth-payments-video/template/src/app/checkout/page.tsx +2 -1
  202. package/src/templates/web/ui-auth-payments-video/template/src/app/login/page.tsx +1 -1
  203. package/src/templates/web/ui-auth-payments-video/template/src/app/page.tsx +1 -1
  204. package/src/templates/web/ui-auth-payments-video/template/src/app/signup/page.tsx +1 -1
  205. package/src/templates/web/ui-auth-payments-video/template/src/components/providers/app-providers.tsx +7 -10
  206. package/src/templates/web/ui-auth-payments-video/template/src/components/shared/header.tsx +1 -1
  207. package/src/templates/web/ui-auth-payments-video/template/src/test/setup.ts +3 -8
  208. package/src/templates/web/ui-only/template/src/test/setup.ts +3 -8
  209. package/src/templates/web/base/template.backup/.env.example +0 -15
  210. package/src/templates/web/ui-auth/template.backup/.env.example +0 -15
  211. package/src/templates/web/ui-auth-payments-ai/template/src/app/page.tsx.backup +0 -391
  212. package/src/templates/web/ui-auth-payments-ai/template/src/app/page.tsx.bak +0 -391
  213. package/src/templates/web/ui-auth-payments-audio/template/src/app/page.tsx.backup +0 -391
  214. package/src/templates/web/ui-auth-payments-audio/template/src/app/page.tsx.bak +0 -391
  215. package/src/templates/web/ui-only/template.backup/.env.example +0 -15
@@ -18,7 +18,6 @@
18
18
  "react-dom": "^19.0.0",
19
19
  "@digilogiclabs/platform-core": "^1.13.0",
20
20
  "@digilogiclabs/app-sdk": "^1.0.0",
21
- "@digilogiclabs/saas-factory-auth": "^1.0.7",
22
21
  "@digilogiclabs/saas-factory-ui": "^1.4.0",
23
22
  "tailwindcss": "^4.0.0",
24
23
  "clsx": "^2.0.0",
@@ -18,8 +18,6 @@
18
18
  "react-dom": "^19.0.0",
19
19
  "@digilogiclabs/platform-core": "^1.13.0",
20
20
  "@digilogiclabs/app-sdk": "^1.0.0",
21
- "@digilogiclabs/saas-factory-auth": "^1.0.7",
22
- "@digilogiclabs/saas-factory-payments": "^1.2.9",
23
21
  "@digilogiclabs/saas-factory-ui": "^1.4.0",
24
22
  "stripe": "^16.12.0",
25
23
  "@stripe/react-stripe-js": "^2.8.0",
@@ -16,7 +16,6 @@
16
16
  "react-dom": "^19.0.0",
17
17
  "@digilogiclabs/platform-core": "^1.13.0",
18
18
  "@digilogiclabs/app-sdk": "^1.0.0",
19
- "@digilogiclabs/saas-factory-auth": "^1.0.7",
20
19
  "@digilogiclabs/saas-factory-ui": "^1.4.0",
21
20
  "tailwindcss": "^4.0.0",
22
21
  "clsx": "^2.0.0",
@@ -17,5 +17,5 @@
17
17
  "*.log",
18
18
  ".claude"
19
19
  ],
20
- "instructions": "You are helping develop an Authentication Platform using Next.js 15, TypeScript, and Digi Logic Labs packages.\n\n## Project Architecture\n- **Framework**: Next.js 15.3 with App Router\n- **Database**: Supabase (PostgreSQL with real-time features)\n- **Styling**: Tailwind CSS v4 with glassmorphism design system\n- **Authentication**: Supabase Auth with @digilogiclabs/saas-factory-auth\n\n## Key Packages\n- **@digilogiclabs/saas-factory-auth**: Authentication components and hooks with Supabase integration\n- **@digilogiclabs/saas-factory-ui**: Modern UI components with glassmorphism and responsive design\n\n## Development Guidelines\n1. Follow Next.js 15 best practices with Server Components by default\n2. Use TypeScript strictly - all components should be typed\n3. Implement proper error boundaries and loading states\n4. Follow the glassmorphism design system from saas-factory-ui\n5. Use Server Actions for mutations and API routes for complex logic\n6. Always check authentication state with useAuth hook\n\n## File Organization\n- Components in /src/components with feature-based folders\n- Server actions in /src/server/actions\n- API routes in /src/app/api\n- Database queries in /src/server/queries\n- Types in /src/types\n\n## Testing\n- Use Vitest for unit tests\n- Test business logic and error states\n- Mock external services (Supabase)\n\nRemember to consult the context.md file for detailed package documentation and examples."
20
+ "instructions": "You are helping develop an Authentication Platform using Next.js 15, TypeScript, and Digi Logic Labs packages.\n\n## Project Architecture\n- **Framework**: Next.js 15.3 with App Router\n- **Database**: Supabase (PostgreSQL with real-time features)\n- **Styling**: Tailwind CSS v4 with glassmorphism design system\n- **Authentication**: Supabase Auth with @digilogiclabs/app-sdk\n\n## Key Packages\n- **@digilogiclabs/app-sdk**: Authentication components and hooks with Supabase integration\n- **@digilogiclabs/saas-factory-ui**: Modern UI components with glassmorphism and responsive design\n\n## Development Guidelines\n1. Follow Next.js 15 best practices with Server Components by default\n2. Use TypeScript strictly - all components should be typed\n3. Implement proper error boundaries and loading states\n4. Follow the glassmorphism design system from saas-factory-ui\n5. Use Server Actions for mutations and API routes for complex logic\n6. Always check authentication state with useAuth hook\n\n## File Organization\n- Components in /src/components with feature-based folders\n- Server actions in /src/server/actions\n- API routes in /src/app/api\n- Database queries in /src/server/queries\n- Types in /src/types\n\n## Testing\n- Use Vitest for unit tests\n- Test business logic and error states\n- Mock external services (Supabase)\n\nRemember to consult the context.md file for detailed package documentation and examples."
21
21
  }
@@ -12,11 +12,11 @@ This project is an Authentication Platform built with modern technologies and Di
12
12
 
13
13
  ### Package Integration
14
14
 
15
- #### @digilogiclabs/saas-factory-auth
16
- Authentication components and hooks with Supabase integration
15
+ #### @digilogiclabs/app-sdk
16
+ Unified application SDK with auth and payments hooks
17
17
 
18
- **Key Exports**: useAuth, AuthProvider, LoginForm, SignupForm
19
- **Documentation**: https://docs.digilogiclabs.com/packages/auth
18
+ **Key Exports**: useAuth, usePayments, DLLProvider, usePlatform
19
+ **Documentation**: https://docs.digilogiclabs.com/packages/app-sdk
20
20
 
21
21
  #### @digilogiclabs/saas-factory-ui
22
22
  Modern UI components with glassmorphism and responsive design
@@ -42,7 +42,7 @@ Key tables:
42
42
 
43
43
  ### Authentication Flow
44
44
  ```typescript
45
- import { useAuth } from '@digilogiclabs/saas-factory-auth'
45
+ import { useAuth } from '@digilogiclabs/app-sdk'
46
46
 
47
47
  export function ProtectedComponent() {
48
48
  const { user, loading } = useAuth()
@@ -19,7 +19,6 @@
19
19
  "react-dom": "^19.0.0",
20
20
  "@digilogiclabs/platform-core": "^1.13.0",
21
21
  "@digilogiclabs/saas-factory-ui": "^1.4.0",
22
- "@digilogiclabs/saas-factory-auth": "^1.0.6",
23
22
  "tailwindcss": "^3.3.0",
24
23
  "autoprefixer": "^10.4.16",
25
24
  "postcss": "^8.4.31",
@@ -201,7 +201,7 @@ ${hasVideo ? '- **video_content**: Generated video files and metadata' : ''}
201
201
 
202
202
  ### Authentication Flow
203
203
  ${hasAuth ? `\`\`\`typescript
204
- import { useAuth } from '@digilogiclabs/saas-factory-auth'
204
+ import { useAuth } from '@digilogiclabs/app-sdk'
205
205
 
206
206
  export function ProtectedComponent() {
207
207
  const { user, loading } = useAuth()
@@ -237,10 +237,10 @@ export function ExampleComponent() {
237
237
 
238
238
  ${hasPayments ? `### Payment Integration
239
239
  \`\`\`typescript
240
- import { useStripe, PaymentForm } from '@digilogiclabs/saas-factory-payments'
240
+ import { usePayments } from '@digilogiclabs/app-sdk'
241
241
 
242
242
  export function CheckoutPage() {
243
- const { createCheckoutSession, loading } = useStripe()
243
+ const { createCheckoutSession, loading } = usePayments()
244
244
 
245
245
  const handlePayment = async (priceId: string) => {
246
246
  const { url } = await createCheckoutSession({ priceId })
@@ -2,7 +2,7 @@
2
2
 
3
3
  import React, { useState } from 'react';
4
4
  import { Button, Card, Input, Label } from '@digilogiclabs/saas-factory-ui';
5
- import { useAuth } from '@digilogiclabs/saas-factory-auth';
5
+ import { useAuth } from '@digilogiclabs/app-sdk';
6
6
  import { useRouter } from 'next/navigation';
7
7
 
8
8
  export default function LoginPage() {
@@ -14,7 +14,7 @@ import {
14
14
  useOfflineState
15
15
  } from '@digilogiclabs/saas-factory-ui'
16
16
  import { ArrowRight, Zap, Shield, Rocket, CheckCircle, LogOut, User, Wifi, WifiOff, Smartphone } from 'lucide-react'
17
- import { useAuth } from '@digilogiclabs/saas-factory-auth'
17
+ import { useAuth } from '@digilogiclabs/app-sdk'
18
18
  import Link from 'next/link'
19
19
 
20
20
  export default function Home() {
@@ -2,7 +2,7 @@
2
2
 
3
3
  import React, { useState } from 'react';
4
4
  import { Button, Card, Input, Label } from '@digilogiclabs/saas-factory-ui';
5
- import { useAuth } from '@digilogiclabs/saas-factory-auth';
5
+ import { useAuth } from '@digilogiclabs/app-sdk';
6
6
  import { useRouter } from 'next/navigation';
7
7
 
8
8
  export default function SignupPage() {
@@ -2,7 +2,7 @@
2
2
 
3
3
  import React from 'react'
4
4
  import { ThemeProvider } from 'next-themes'
5
- import { AuthProvider } from '@digilogiclabs/saas-factory-auth'
5
+ import { DLLProvider } from '@digilogiclabs/app-sdk'
6
6
  import { Toaster } from '@digilogiclabs/saas-factory-ui'
7
7
  import { AppThemeProvider } from './theme-provider'
8
8
 
@@ -19,12 +19,12 @@ export function AppProviders({ children }: AppProvidersProps) {
19
19
  disableTransitionOnChange
20
20
  storageKey="{{packageName}}-theme"
21
21
  >
22
- <AuthProvider>
22
+ <DLLProvider>
23
23
  <AppThemeProvider themeColor="{{themeColor}}">
24
24
  {children}
25
25
  <Toaster />
26
26
  </AppThemeProvider>
27
- </AuthProvider>
27
+ </DLLProvider>
28
28
  </ThemeProvider>
29
29
  )
30
30
  }
@@ -15,7 +15,6 @@
15
15
  */
16
16
 
17
17
  import { createPlatform, createPlatformAsync, type IPlatform } from '@digilogiclabs/platform-core';
18
- import { setPlatform as setAuthPlatform } from '@digilogiclabs/saas-factory-auth';
19
18
 
20
19
  // Singleton platform instance
21
20
  let platformInstance: IPlatform | null = null;
@@ -35,7 +34,6 @@ let platformInstance: IPlatform | null = null;
35
34
  export function getPlatform(): IPlatform {
36
35
  if (!platformInstance) {
37
36
  platformInstance = createPlatform();
38
- initializePackageIntegrations(platformInstance);
39
37
  }
40
38
  return platformInstance;
41
39
  }
@@ -60,24 +58,10 @@ export async function initializePlatform(): Promise<IPlatform> {
60
58
  // Use createPlatformAsync for production adapters
61
59
  // Falls back to memory adapters if env vars are not set
62
60
  platformInstance = await createPlatformAsync();
63
- initializePackageIntegrations(platformInstance);
64
61
 
65
62
  return platformInstance;
66
63
  }
67
64
 
68
- /**
69
- * Initialize package integrations with platform services
70
- */
71
- function initializePackageIntegrations(platform: IPlatform): void {
72
- // Connect saas-factory-auth to platform-core
73
- // Enables: logging, metrics, and email for auth events
74
- setAuthPlatform({
75
- email: platform.email,
76
- logger: platform.logger,
77
- metrics: platform.metrics,
78
- });
79
- }
80
-
81
65
  /**
82
66
  * Reset platform instance (useful for testing)
83
67
  */
@@ -15,8 +15,8 @@ vi.mock('next/navigation', () => ({
15
15
  usePathname: () => '/',
16
16
  }))
17
17
 
18
- // Mock SaaS Factory Auth (optional - only if testing auth components)
19
- vi.mock('@digilogiclabs/saas-factory-auth', () => ({
18
+ // Mock App SDK (optional - only if testing auth/payment components)
19
+ vi.mock('@digilogiclabs/app-sdk', () => ({
20
20
  useAuth: () => ({
21
21
  user: null,
22
22
  loading: false,
@@ -26,18 +26,13 @@ vi.mock('@digilogiclabs/saas-factory-auth', () => ({
26
26
  signOut: vi.fn(),
27
27
  signInWithOAuth: vi.fn(),
28
28
  }),
29
- AuthProvider: ({ children }: { children: React.ReactNode }) => children,
30
- }))
31
-
32
- // Mock SaaS Factory Payments (optional - only if testing payment components)
33
- vi.mock('@digilogiclabs/saas-factory-payments', () => ({
34
29
  usePayments: () => ({
35
30
  createCheckoutSession: vi.fn(),
36
31
  createPortalSession: vi.fn(),
37
32
  subscription: null,
38
33
  loading: false,
39
34
  }),
40
- PaymentsProvider: ({ children }: { children: React.ReactNode }) => children,
35
+ DLLProvider: ({ children }: { children: React.ReactNode }) => children,
41
36
  }))
42
37
 
43
38
  // Global test utilities
@@ -10,7 +10,6 @@
10
10
  },
11
11
  "dependencies": {
12
12
  "@digilogiclabs/saas-factory-ui": "^1.4.0",
13
- "@digilogiclabs/saas-factory-auth": "^1.0.3",
14
13
  "next": "^15.0.0",
15
14
  "react": "^19.0.0",
16
15
  "react-dom": "^19.0.0",
@@ -19,8 +19,6 @@
19
19
  "react-dom": "^19.0.0",
20
20
  "@digilogiclabs/platform-core": "^1.13.0",
21
21
  "@digilogiclabs/saas-factory-ui": "^1.4.0",
22
- "@digilogiclabs/saas-factory-auth": "^1.0.6",
23
- "@digilogiclabs/saas-factory-payments": "^1.2.8",
24
22
  "stripe": "^14.0.0",
25
23
  "@stripe/react-stripe-js": "^2.0.0",
26
24
  "@stripe/stripe-js": "^2.0.0",
@@ -1,7 +1,8 @@
1
1
  'use client';
2
2
 
3
3
  import React from 'react';
4
- import { usePayments, formatCurrency, formatDate } from '@digilogiclabs/saas-factory-payments';
4
+ import { usePayments } from '@digilogiclabs/app-sdk';
5
+ import { formatCurrency, formatDate } from '@/lib/utils';
5
6
  import { Button, Card } from '@digilogiclabs/saas-factory-ui';
6
7
 
7
8
  export default function BillingPage() {
@@ -1,7 +1,8 @@
1
1
  'use client';
2
2
 
3
3
  import React, { useState } from 'react';
4
- import { usePayments, formatCurrency } from '@digilogiclabs/saas-factory-payments';
4
+ import { usePayments } from '@digilogiclabs/app-sdk';
5
+ import { formatCurrency } from '@/lib/utils';
5
6
  import {
6
7
  Button,
7
8
  Card,
@@ -201,7 +201,7 @@ ${hasVideo ? '- **video_content**: Generated video files and metadata' : ''}
201
201
 
202
202
  ### Authentication Flow
203
203
  ${hasAuth ? `\`\`\`typescript
204
- import { useAuth } from '@digilogiclabs/saas-factory-auth'
204
+ import { useAuth } from '@digilogiclabs/app-sdk'
205
205
 
206
206
  export function ProtectedComponent() {
207
207
  const { user, loading } = useAuth()
@@ -237,10 +237,10 @@ export function ExampleComponent() {
237
237
 
238
238
  ${hasPayments ? `### Payment Integration
239
239
  \`\`\`typescript
240
- import { useStripe, PaymentForm } from '@digilogiclabs/saas-factory-payments'
240
+ import { usePayments } from '@digilogiclabs/app-sdk'
241
241
 
242
242
  export function CheckoutPage() {
243
- const { createCheckoutSession, loading } = useStripe()
243
+ const { createCheckoutSession, loading } = usePayments()
244
244
 
245
245
  const handlePayment = async (priceId: string) => {
246
246
  const { url } = await createCheckoutSession({ priceId })
@@ -2,7 +2,7 @@
2
2
 
3
3
  import React, { useState } from 'react';
4
4
  import { Button, Card, Input, Label } from '@digilogiclabs/saas-factory-ui';
5
- import { useAuth } from '@digilogiclabs/saas-factory-auth';
5
+ import { useAuth } from '@digilogiclabs/app-sdk';
6
6
  import { useRouter } from 'next/navigation';
7
7
 
8
8
  export default function LoginPage() {
@@ -16,7 +16,7 @@ import {
16
16
  useOfflineState
17
17
  } from '@digilogiclabs/saas-factory-ui'
18
18
  import { ArrowRight, Zap, Shield, Rocket, CheckCircle, LogOut, User, Wifi, WifiOff, CreditCard, Smartphone } from 'lucide-react'
19
- import { useAuth } from '@digilogiclabs/saas-factory-auth'
19
+ import { useAuth } from '@digilogiclabs/app-sdk'
20
20
  import Link from 'next/link'
21
21
  import { useState } from 'react'
22
22
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  import React, { useState } from 'react';
4
4
  import { Button, Card, Input, Label } from '@digilogiclabs/saas-factory-ui';
5
- import { useAuth } from '@digilogiclabs/saas-factory-auth';
5
+ import { useAuth } from '@digilogiclabs/app-sdk';
6
6
  import { useRouter } from 'next/navigation';
7
7
 
8
8
  export default function SignupPage() {
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { Button } from '@digilogiclabs/saas-factory-ui'
4
4
  import { LogOut, User } from 'lucide-react'
5
- import { useAuth } from '@digilogiclabs/saas-factory-auth'
5
+ import { useAuth } from '@digilogiclabs/app-sdk'
6
6
  import Link from 'next/link'
7
7
 
8
8
  export function AuthStatus() {
@@ -2,7 +2,7 @@
2
2
 
3
3
  import React, { useState, useActionState } from 'react'
4
4
  import { Button, Card, Input, Label } from '@digilogiclabs/saas-factory-ui'
5
- import { useAuth } from '@digilogiclabs/saas-factory-auth'
5
+ import { useAuth } from '@digilogiclabs/app-sdk'
6
6
  import { useRouter } from 'next/navigation'
7
7
  import { signInAction } from '@/lib/actions/auth'
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  import React, { useState, useActionState } from 'react'
4
4
  import { Button, Card, Input, Label } from '@digilogiclabs/saas-factory-ui'
5
- import { useAuth } from '@digilogiclabs/saas-factory-auth'
5
+ import { useAuth } from '@digilogiclabs/app-sdk'
6
6
  import { useRouter } from 'next/navigation'
7
7
  import { signUpAction } from '@/lib/actions/auth'
8
8
 
@@ -2,8 +2,7 @@
2
2
 
3
3
  import React from 'react'
4
4
  import { ThemeProvider } from 'next-themes'
5
- import { AuthProvider } from '@digilogiclabs/saas-factory-auth'
6
- import { PaymentsProvider } from '@digilogiclabs/saas-factory-payments'
5
+ import { DLLProvider } from '@digilogiclabs/app-sdk'
7
6
  import { Toaster } from '@digilogiclabs/saas-factory-ui'
8
7
  import { AppThemeProvider } from './theme-provider'
9
8
 
@@ -20,14 +19,12 @@ export function AppProviders({ children }: AppProvidersProps) {
20
19
  disableTransitionOnChange
21
20
  storageKey="{{packageName}}-theme"
22
21
  >
23
- <AuthProvider>
24
- <PaymentsProvider>
25
- <AppThemeProvider themeColor="{{themeColor}}">
26
- {children}
27
- <Toaster />
28
- </AppThemeProvider>
29
- </PaymentsProvider>
30
- </AuthProvider>
22
+ <DLLProvider>
23
+ <AppThemeProvider themeColor="{{themeColor}}">
24
+ {children}
25
+ <Toaster />
26
+ </AppThemeProvider>
27
+ </DLLProvider>
31
28
  </ThemeProvider>
32
29
  )
33
30
  }
@@ -3,7 +3,7 @@
3
3
  import React, { useState } from 'react';
4
4
  import Link from 'next/link';
5
5
  import { LogOut, CreditCard, User, Settings, Home, Menu, X, Info } from 'lucide-react';
6
- import { useAuth } from '@digilogiclabs/saas-factory-auth';
6
+ import { useAuth } from '@digilogiclabs/app-sdk';
7
7
  import {
8
8
  ResponsiveHeader,
9
9
  MobileNavigation,
@@ -15,8 +15,6 @@
15
15
  */
16
16
 
17
17
  import { createPlatform, createPlatformAsync, type IPlatform } from '@digilogiclabs/platform-core';
18
- import { setPlatform as setAuthPlatform } from '@digilogiclabs/saas-factory-auth';
19
- import { setPlatform as setPaymentsPlatform } from '@digilogiclabs/saas-factory-payments';
20
18
 
21
19
  // Singleton platform instance
22
20
  let platformInstance: IPlatform | null = null;
@@ -36,7 +34,6 @@ let platformInstance: IPlatform | null = null;
36
34
  export function getPlatform(): IPlatform {
37
35
  if (!platformInstance) {
38
36
  platformInstance = createPlatform();
39
- initializePackageIntegrations(platformInstance);
40
37
  }
41
38
  return platformInstance;
42
39
  }
@@ -61,32 +58,10 @@ export async function initializePlatform(): Promise<IPlatform> {
61
58
  // Use createPlatformAsync for production adapters
62
59
  // Falls back to memory adapters if env vars are not set
63
60
  platformInstance = await createPlatformAsync();
64
- initializePackageIntegrations(platformInstance);
65
61
 
66
62
  return platformInstance;
67
63
  }
68
64
 
69
- /**
70
- * Initialize package integrations with platform services
71
- */
72
- function initializePackageIntegrations(platform: IPlatform): void {
73
- // Connect saas-factory-auth to platform-core
74
- // Enables: logging, metrics, and email for auth events
75
- setAuthPlatform({
76
- email: platform.email,
77
- logger: platform.logger,
78
- metrics: platform.metrics,
79
- });
80
-
81
- // Connect saas-factory-payments to platform-core
82
- // Enables: logging, metrics, and caching for payment events
83
- setPaymentsPlatform({
84
- logger: platform.logger,
85
- metrics: platform.metrics,
86
- cache: platform.cache,
87
- });
88
- }
89
-
90
65
  /**
91
66
  * Reset platform instance (useful for testing)
92
67
  */
@@ -15,8 +15,8 @@ vi.mock('next/navigation', () => ({
15
15
  usePathname: () => '/',
16
16
  }))
17
17
 
18
- // Mock SaaS Factory Auth (optional - only if testing auth components)
19
- vi.mock('@digilogiclabs/saas-factory-auth', () => ({
18
+ // Mock App SDK (optional - only if testing auth/payment components)
19
+ vi.mock('@digilogiclabs/app-sdk', () => ({
20
20
  useAuth: () => ({
21
21
  user: null,
22
22
  loading: false,
@@ -26,18 +26,13 @@ vi.mock('@digilogiclabs/saas-factory-auth', () => ({
26
26
  signOut: vi.fn(),
27
27
  signInWithOAuth: vi.fn(),
28
28
  }),
29
- AuthProvider: ({ children }: { children: React.ReactNode }) => children,
30
- }))
31
-
32
- // Mock SaaS Factory Payments (optional - only if testing payment components)
33
- vi.mock('@digilogiclabs/saas-factory-payments', () => ({
34
29
  usePayments: () => ({
35
30
  createCheckoutSession: vi.fn(),
36
31
  createPortalSession: vi.fn(),
37
32
  subscription: null,
38
33
  loading: false,
39
34
  }),
40
- PaymentsProvider: ({ children }: { children: React.ReactNode }) => children,
35
+ DLLProvider: ({ children }: { children: React.ReactNode }) => children,
41
36
  }))
42
37
 
43
38
  // Global test utilities
@@ -17,5 +17,5 @@
17
17
  "*.log",
18
18
  ".claude"
19
19
  ],
20
- "instructions": "You are helping develop a Full-Stack AI Platform using Next.js 15, TypeScript, and Digi Logic Labs packages.\n\n## Project Architecture\n- **Framework**: Next.js 15.3 with App Router\n- **Database**: Supabase (PostgreSQL with real-time features)\n- **Styling**: Tailwind CSS v4 with glassmorphism design system\n- **Authentication**: Supabase Auth with @digilogiclabs/saas-factory-auth\n- **Payments**: Stripe integration with @digilogiclabs/saas-factory-payments\n- **AI Platform**: Multi-modal AI with @digilogiclabs/saas-factory-ai\n\n## Key Packages\n- **@digilogiclabs/saas-factory-auth**: Authentication components and hooks with Supabase integration\n- **@digilogiclabs/saas-factory-ui**: Modern UI components with glassmorphism and responsive design\n- **@digilogiclabs/saas-factory-payments**: Stripe integration for subscriptions and payments\n- **@digilogiclabs/saas-factory-ai**: AI platform with text, audio, and video generation capabilities\n- **@digilogiclabs/saas-factory-ai-types**: TypeScript types and interfaces for AI operations\n\n## Development Guidelines\n1. Follow Next.js 15 best practices with Server Components by default\n2. Use TypeScript strictly - all components should be typed\n3. Implement proper error boundaries and loading states\n4. Follow the glassmorphism design system from saas-factory-ui\n5. Use Server Actions for mutations and API routes for complex logic\n6. Always check authentication state with useAuth hook\n7. Handle payment states and subscription status properly\n8. Implement proper AI generation state management and error handling\n\n## File Organization\n- Components in /src/components with feature-based folders\n- Server actions in /src/server/actions\n- API routes in /src/app/api\n- Database queries in /src/server/queries\n- Types in /src/types\n\n## Testing\n- Use Vitest for unit tests\n- Test business logic and error states\n- Mock external services (Supabase, Stripe, AI providers)\n\nRemember to consult the context.md file for detailed package documentation and examples."
20
+ "instructions": "You are helping develop a Full-Stack AI Platform using Next.js 15, TypeScript, and Digi Logic Labs packages.\n\n## Project Architecture\n- **Framework**: Next.js 15.3 with App Router\n- **Database**: Supabase (PostgreSQL with real-time features)\n- **Styling**: Tailwind CSS v4 with glassmorphism design system\n- **Authentication**: Supabase Auth with @digilogiclabs/app-sdk\n- **Payments**: Stripe integration with @digilogiclabs/app-sdk\n- **AI Platform**: Multi-modal AI with @digilogiclabs/saas-factory-ai\n\n## Key Packages\n- **@digilogiclabs/app-sdk**: Authentication components and hooks with Supabase integration\n- **@digilogiclabs/saas-factory-ui**: Modern UI components with glassmorphism and responsive design\n- **@digilogiclabs/app-sdk**: Stripe integration for subscriptions and payments\n- **@digilogiclabs/saas-factory-ai**: AI platform with text, audio, and video generation capabilities\n- **@digilogiclabs/saas-factory-ai-types**: TypeScript types and interfaces for AI operations\n\n## Development Guidelines\n1. Follow Next.js 15 best practices with Server Components by default\n2. Use TypeScript strictly - all components should be typed\n3. Implement proper error boundaries and loading states\n4. Follow the glassmorphism design system from saas-factory-ui\n5. Use Server Actions for mutations and API routes for complex logic\n6. Always check authentication state with useAuth hook\n7. Handle payment states and subscription status properly\n8. Implement proper AI generation state management and error handling\n\n## File Organization\n- Components in /src/components with feature-based folders\n- Server actions in /src/server/actions\n- API routes in /src/app/api\n- Database queries in /src/server/queries\n- Types in /src/types\n\n## Testing\n- Use Vitest for unit tests\n- Test business logic and error states\n- Mock external services (Supabase, Stripe, AI providers)\n\nRemember to consult the context.md file for detailed package documentation and examples."
21
21
  }
@@ -12,11 +12,11 @@ This project is a Full-Stack AI Platform built with modern technologies and Digi
12
12
 
13
13
  ### Package Integration
14
14
 
15
- #### @digilogiclabs/saas-factory-auth
16
- Authentication components and hooks with Supabase integration
15
+ #### @digilogiclabs/app-sdk
16
+ Unified application SDK with auth and payments hooks
17
17
 
18
- **Key Exports**: useAuth, AuthProvider, LoginForm, SignupForm
19
- **Documentation**: https://docs.digilogiclabs.com/packages/auth
18
+ **Key Exports**: useAuth, usePayments, DLLProvider, usePlatform
19
+ **Documentation**: https://docs.digilogiclabs.com/packages/app-sdk
20
20
 
21
21
  #### @digilogiclabs/saas-factory-ui
22
22
  Modern UI components with glassmorphism and responsive design
@@ -24,11 +24,11 @@ Modern UI components with glassmorphism and responsive design
24
24
  **Key Exports**: Button, Card, MobileContainer, PageTransition, ResponsiveGrid
25
25
  **Documentation**: https://docs.digilogiclabs.com/packages/ui
26
26
 
27
- #### @digilogiclabs/saas-factory-payments
28
- Stripe integration for subscriptions and payments
27
+ #### @digilogiclabs/app-sdk (payments)
28
+ Payments hooks are also exported from the app-sdk
29
29
 
30
- **Key Exports**: useStripe, PaymentForm, SubscriptionManager, BillingPortal
31
- **Documentation**: https://docs.digilogiclabs.com/packages/payments
30
+ **Key Exports**: usePayments (via app-sdk), PaymentForm, SubscriptionManager, BillingPortal
31
+ **Documentation**: https://docs.digilogiclabs.com/packages/app-sdk
32
32
 
33
33
  #### @digilogiclabs/saas-factory-ai
34
34
  AI platform with text, audio, and video generation capabilities
@@ -66,7 +66,7 @@ Key tables:
66
66
 
67
67
  ### Authentication Flow
68
68
  ```typescript
69
- import { useAuth } from '@digilogiclabs/saas-factory-auth'
69
+ import { useAuth } from '@digilogiclabs/app-sdk'
70
70
 
71
71
  export function ProtectedComponent() {
72
72
  const { user, loading } = useAuth()
@@ -102,10 +102,10 @@ export function ExampleComponent() {
102
102
 
103
103
  ### Payment Integration
104
104
  ```typescript
105
- import { useStripe, PaymentForm } from '@digilogiclabs/saas-factory-payments'
105
+ import { usePayments } from '@digilogiclabs/app-sdk'
106
106
 
107
107
  export function CheckoutPage() {
108
- const { createCheckoutSession, loading } = useStripe()
108
+ const { createCheckoutSession, loading } = usePayments()
109
109
 
110
110
  const handlePayment = async (priceId: string) => {
111
111
  const { url } = await createCheckoutSession({ priceId })
@@ -19,8 +19,6 @@
19
19
  "react-dom": "^19.0.0",
20
20
  "@digilogiclabs/platform-core": "^1.13.0",
21
21
  "@digilogiclabs/saas-factory-ui": "^1.4.0",
22
- "@digilogiclabs/saas-factory-auth": "^1.0.6",
23
- "@digilogiclabs/saas-factory-payments": "^1.2.8",
24
22
  "@digilogiclabs/saas-factory-ai": "^4.0.4",
25
23
  "stripe": "^14.0.0",
26
24
  "@stripe/react-stripe-js": "^2.0.0",
@@ -22,7 +22,7 @@ import {
22
22
  Heart,
23
23
  MoreHorizontal
24
24
  } from 'lucide-react'
25
- import { useAuth } from '@digilogiclabs/saas-factory-auth'
25
+ import { useAuth } from '@digilogiclabs/app-sdk'
26
26
  import Link from 'next/link'
27
27
  import { useState, useEffect } from 'react'
28
28
 
@@ -1,7 +1,8 @@
1
1
  'use client';
2
2
 
3
3
  import React, { useState } from 'react';
4
- import { usePayments, formatCurrency, formatDate } from '@digilogiclabs/saas-factory-payments';
4
+ import { usePayments } from '@digilogiclabs/app-sdk';
5
+ import { formatCurrency, formatDate } from '@/lib/utils';
5
6
  import {
6
7
  Button,
7
8
  Card,
@@ -1,7 +1,8 @@
1
1
  'use client';
2
2
 
3
3
  import React from 'react';
4
- import { usePayments, formatCurrency } from '@digilogiclabs/saas-factory-payments';
4
+ import { usePayments } from '@digilogiclabs/app-sdk';
5
+ import { formatCurrency } from '@/lib/utils';
5
6
  import { Button, Card } from '@digilogiclabs/saas-factory-ui';
6
7
 
7
8
  export default function CheckoutPage() {
@@ -201,7 +201,7 @@ ${hasVideo ? '- **video_content**: Generated video files and metadata' : ''}
201
201
 
202
202
  ### Authentication Flow
203
203
  ${hasAuth ? `\`\`\`typescript
204
- import { useAuth } from '@digilogiclabs/saas-factory-auth'
204
+ import { useAuth } from '@digilogiclabs/app-sdk'
205
205
 
206
206
  export function ProtectedComponent() {
207
207
  const { user, loading } = useAuth()
@@ -237,10 +237,10 @@ export function ExampleComponent() {
237
237
 
238
238
  ${hasPayments ? `### Payment Integration
239
239
  \`\`\`typescript
240
- import { useStripe, PaymentForm } from '@digilogiclabs/saas-factory-payments'
240
+ import { usePayments } from '@digilogiclabs/app-sdk'
241
241
 
242
242
  export function CheckoutPage() {
243
- const { createCheckoutSession, loading } = useStripe()
243
+ const { createCheckoutSession, loading } = usePayments()
244
244
 
245
245
  const handlePayment = async (priceId: string) => {
246
246
  const { url } = await createCheckoutSession({ priceId })
@@ -10,7 +10,7 @@ import {
10
10
  MobileContainer,
11
11
  PageTransition
12
12
  } from '@digilogiclabs/saas-factory-ui'
13
- import { useAuth } from '@digilogiclabs/saas-factory-auth'
13
+ import { useAuth } from '@digilogiclabs/app-sdk'
14
14
  import { useRouter } from 'next/navigation'
15
15
  import {
16
16
  User,
@@ -35,7 +35,7 @@ import {
35
35
  Monitor,
36
36
  FileText
37
37
  } from 'lucide-react'
38
- import { useAuth } from '@digilogiclabs/saas-factory-auth'
38
+ import { useAuth } from '@digilogiclabs/app-sdk'
39
39
  import {
40
40
  AIProvider,
41
41
  AIChat,