@cimplify/sdk 0.40.1 → 0.42.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 (352) hide show
  1. package/dist/cli/commands/deploy.mjs +561 -0
  2. package/dist/cli/commands/dev.mjs +434 -0
  3. package/dist/cli/commands/domains.mjs +479 -0
  4. package/dist/cli/commands/env.mjs +610 -0
  5. package/dist/cli/commands/link.mjs +325 -0
  6. package/dist/cli/commands/login.mjs +515 -0
  7. package/dist/cli/commands/logout.mjs +54 -0
  8. package/dist/cli/commands/logs.mjs +358 -0
  9. package/dist/cli/commands/projects.mjs +327 -0
  10. package/dist/cli/commands/rollback.mjs +477 -0
  11. package/dist/cli/commands/status.mjs +380 -0
  12. package/dist/cli/commands/unlink.mjs +58 -0
  13. package/dist/cli/commands/whoami.mjs +234 -0
  14. package/dist/dispatcher.mjs +94 -2
  15. package/dist/styles.css +1 -1
  16. package/package.json +1 -1
  17. package/templates/storefront-bakery/.env.example +5 -0
  18. package/templates/storefront-bakery/AGENTS.md +57 -0
  19. package/templates/storefront-bakery/app/about/page.tsx +21 -44
  20. package/templates/storefront-bakery/app/accessibility/page.tsx +11 -0
  21. package/templates/storefront-bakery/app/account/addresses/page.tsx +21 -0
  22. package/templates/storefront-bakery/app/account/orders/page.tsx +21 -0
  23. package/templates/storefront-bakery/app/account/page.tsx +22 -0
  24. package/templates/storefront-bakery/app/account/settings/page.tsx +21 -0
  25. package/templates/storefront-bakery/app/categories/[slug]/page.tsx +2 -1
  26. package/templates/storefront-bakery/app/collections/[slug]/page.tsx +2 -1
  27. package/templates/storefront-bakery/app/contact/contact-form.tsx +109 -0
  28. package/templates/storefront-bakery/app/contact/page.tsx +54 -0
  29. package/templates/storefront-bakery/app/error.tsx +60 -0
  30. package/templates/storefront-bakery/app/faq/page.tsx +13 -89
  31. package/templates/storefront-bakery/app/layout.tsx +37 -2
  32. package/templates/storefront-bakery/app/llms.txt/route.ts +94 -0
  33. package/templates/storefront-bakery/app/login/page.tsx +17 -0
  34. package/templates/storefront-bakery/app/not-found.tsx +39 -0
  35. package/templates/storefront-bakery/app/opensearch.xml/route.ts +37 -0
  36. package/templates/storefront-bakery/app/page.tsx +6 -6
  37. package/templates/storefront-bakery/app/privacy/page.tsx +24 -68
  38. package/templates/storefront-bakery/app/returns/page.tsx +11 -0
  39. package/templates/storefront-bakery/app/robots.ts +18 -0
  40. package/templates/storefront-bakery/app/search/page.tsx +38 -0
  41. package/templates/storefront-bakery/app/search/search-client.tsx +7 -0
  42. package/templates/storefront-bakery/app/shipping/page.tsx +16 -0
  43. package/templates/storefront-bakery/app/shop/page.tsx +3 -2
  44. package/templates/storefront-bakery/app/signup/page.tsx +17 -0
  45. package/templates/storefront-bakery/app/sitemap-page/page.tsx +167 -0
  46. package/templates/storefront-bakery/app/sitemap.ts +62 -0
  47. package/templates/storefront-bakery/app/terms/page.tsx +24 -82
  48. package/templates/storefront-bakery/app/track-order/page.tsx +24 -0
  49. package/templates/storefront-bakery/app/track-order/track-order-form.tsx +69 -0
  50. package/templates/storefront-bakery/components/account-iframe.tsx +13 -0
  51. package/templates/storefront-bakery/components/footer.tsx +88 -130
  52. package/templates/storefront-bakery/components/header.tsx +8 -16
  53. package/templates/storefront-bakery/components/policy-page.tsx +49 -0
  54. package/templates/storefront-bakery/lib/brand.ts +568 -0
  55. package/templates/storefront-fashion/.env.example +16 -0
  56. package/templates/storefront-fashion/AGENTS.md +52 -0
  57. package/templates/storefront-fashion/README.md +77 -0
  58. package/templates/storefront-fashion/app/about/page.tsx +41 -0
  59. package/templates/storefront-fashion/app/accessibility/page.tsx +11 -0
  60. package/templates/storefront-fashion/app/account/addresses/page.tsx +21 -0
  61. package/templates/storefront-fashion/app/account/orders/page.tsx +21 -0
  62. package/templates/storefront-fashion/app/account/page.tsx +22 -0
  63. package/templates/storefront-fashion/app/account/settings/page.tsx +21 -0
  64. package/templates/storefront-fashion/app/cart/page.tsx +9 -0
  65. package/templates/storefront-fashion/app/categories/[slug]/listing-client.tsx +19 -0
  66. package/templates/storefront-fashion/app/categories/[slug]/page.tsx +130 -0
  67. package/templates/storefront-fashion/app/checkout/page.tsx +17 -0
  68. package/templates/storefront-fashion/app/collections/[slug]/listing-client.tsx +20 -0
  69. package/templates/storefront-fashion/app/collections/[slug]/page.tsx +130 -0
  70. package/templates/storefront-fashion/app/contact/contact-form.tsx +109 -0
  71. package/templates/storefront-fashion/app/contact/page.tsx +54 -0
  72. package/templates/storefront-fashion/app/error.tsx +61 -0
  73. package/templates/storefront-fashion/app/faq/page.tsx +46 -0
  74. package/templates/storefront-fashion/app/globals.css +46 -0
  75. package/templates/storefront-fashion/app/layout.tsx +76 -0
  76. package/templates/storefront-fashion/app/llms.txt/route.ts +94 -0
  77. package/templates/storefront-fashion/app/login/page.tsx +17 -0
  78. package/templates/storefront-fashion/app/lookbook/page.tsx +132 -0
  79. package/templates/storefront-fashion/app/not-found.tsx +39 -0
  80. package/templates/storefront-fashion/app/opensearch.xml/route.ts +37 -0
  81. package/templates/storefront-fashion/app/orders/[id]/page.tsx +24 -0
  82. package/templates/storefront-fashion/app/page.tsx +183 -0
  83. package/templates/storefront-fashion/app/privacy/page.tsx +44 -0
  84. package/templates/storefront-fashion/app/products/[slug]/page.tsx +165 -0
  85. package/templates/storefront-fashion/app/products/[slug]/product-detail.tsx +71 -0
  86. package/templates/storefront-fashion/app/returns/page.tsx +11 -0
  87. package/templates/storefront-fashion/app/robots.ts +18 -0
  88. package/templates/storefront-fashion/app/search/page.tsx +38 -0
  89. package/templates/storefront-fashion/app/search/search-client.tsx +7 -0
  90. package/templates/storefront-fashion/app/shipping/page.tsx +16 -0
  91. package/templates/storefront-fashion/app/shop/page.tsx +63 -0
  92. package/templates/storefront-fashion/app/shop/shop-client.tsx +32 -0
  93. package/templates/storefront-fashion/app/signup/page.tsx +17 -0
  94. package/templates/storefront-fashion/app/sitemap-page/page.tsx +167 -0
  95. package/templates/storefront-fashion/app/sitemap.ts +59 -0
  96. package/templates/storefront-fashion/app/size-guide/page.tsx +155 -0
  97. package/templates/storefront-fashion/app/terms/page.tsx +44 -0
  98. package/templates/storefront-fashion/app/track-order/page.tsx +24 -0
  99. package/templates/storefront-fashion/app/track-order/track-order-form.tsx +69 -0
  100. package/templates/storefront-fashion/components/account-iframe.tsx +13 -0
  101. package/templates/storefront-fashion/components/brand-marquee.tsx +27 -0
  102. package/templates/storefront-fashion/components/cart-pill.tsx +32 -0
  103. package/templates/storefront-fashion/components/category-grid.tsx +28 -0
  104. package/templates/storefront-fashion/components/category-tiles.tsx +104 -0
  105. package/templates/storefront-fashion/components/collection-strip.tsx +45 -0
  106. package/templates/storefront-fashion/components/feature-hero.tsx +82 -0
  107. package/templates/storefront-fashion/components/footer.tsx +153 -0
  108. package/templates/storefront-fashion/components/header.tsx +43 -0
  109. package/templates/storefront-fashion/components/hero.tsx +28 -0
  110. package/templates/storefront-fashion/components/nav-link.tsx +20 -0
  111. package/templates/storefront-fashion/components/newsletter.tsx +50 -0
  112. package/templates/storefront-fashion/components/policy-page.tsx +49 -0
  113. package/templates/storefront-fashion/components/promo-banner.tsx +41 -0
  114. package/templates/storefront-fashion/components/providers.tsx +31 -0
  115. package/templates/storefront-fashion/components/section-heading.tsx +37 -0
  116. package/templates/storefront-fashion/components/store-product-card.tsx +83 -0
  117. package/templates/storefront-fashion/components/trade-in-cta.tsx +54 -0
  118. package/templates/storefront-fashion/components/trust-bar.tsx +66 -0
  119. package/templates/storefront-fashion/lib/brand.ts +516 -0
  120. package/templates/storefront-fashion/lib/cart.ts +27 -0
  121. package/templates/storefront-fashion/next.config.ts +40 -0
  122. package/templates/storefront-fashion/package.json +28 -0
  123. package/templates/storefront-fashion/postcss.config.mjs +7 -0
  124. package/templates/storefront-fashion/tsconfig.json +23 -0
  125. package/templates/storefront-grocery/.env.example +16 -0
  126. package/templates/storefront-grocery/AGENTS.md +39 -0
  127. package/templates/storefront-grocery/README.md +73 -0
  128. package/templates/storefront-grocery/app/about/page.tsx +38 -0
  129. package/templates/storefront-grocery/app/accessibility/page.tsx +11 -0
  130. package/templates/storefront-grocery/app/account/addresses/page.tsx +21 -0
  131. package/templates/storefront-grocery/app/account/orders/page.tsx +21 -0
  132. package/templates/storefront-grocery/app/account/page.tsx +22 -0
  133. package/templates/storefront-grocery/app/account/settings/page.tsx +21 -0
  134. package/templates/storefront-grocery/app/cart/page.tsx +9 -0
  135. package/templates/storefront-grocery/app/categories/[slug]/listing-client.tsx +19 -0
  136. package/templates/storefront-grocery/app/categories/[slug]/page.tsx +118 -0
  137. package/templates/storefront-grocery/app/checkout/page.tsx +17 -0
  138. package/templates/storefront-grocery/app/collections/[slug]/listing-client.tsx +20 -0
  139. package/templates/storefront-grocery/app/collections/[slug]/page.tsx +118 -0
  140. package/templates/storefront-grocery/app/contact/contact-form.tsx +109 -0
  141. package/templates/storefront-grocery/app/contact/page.tsx +54 -0
  142. package/templates/storefront-grocery/app/error.tsx +60 -0
  143. package/templates/storefront-grocery/app/faq/page.tsx +46 -0
  144. package/templates/storefront-grocery/app/globals.css +45 -0
  145. package/templates/storefront-grocery/app/layout.tsx +75 -0
  146. package/templates/storefront-grocery/app/llms.txt/route.ts +94 -0
  147. package/templates/storefront-grocery/app/login/page.tsx +17 -0
  148. package/templates/storefront-grocery/app/not-found.tsx +39 -0
  149. package/templates/storefront-grocery/app/opensearch.xml/route.ts +37 -0
  150. package/templates/storefront-grocery/app/orders/[id]/page.tsx +21 -0
  151. package/templates/storefront-grocery/app/page.tsx +97 -0
  152. package/templates/storefront-grocery/app/privacy/page.tsx +44 -0
  153. package/templates/storefront-grocery/app/returns/page.tsx +11 -0
  154. package/templates/storefront-grocery/app/robots.ts +18 -0
  155. package/templates/storefront-grocery/app/search/page.tsx +38 -0
  156. package/templates/storefront-grocery/app/search/search-client.tsx +7 -0
  157. package/templates/storefront-grocery/app/shipping/page.tsx +16 -0
  158. package/templates/storefront-grocery/app/shop/page.tsx +31 -0
  159. package/templates/storefront-grocery/app/shop/shop-client.tsx +27 -0
  160. package/templates/storefront-grocery/app/signup/page.tsx +17 -0
  161. package/templates/storefront-grocery/app/sitemap-page/page.tsx +167 -0
  162. package/templates/storefront-grocery/app/sitemap.ts +62 -0
  163. package/templates/storefront-grocery/app/terms/page.tsx +44 -0
  164. package/templates/storefront-grocery/app/track-order/page.tsx +24 -0
  165. package/templates/storefront-grocery/app/track-order/track-order-form.tsx +69 -0
  166. package/templates/storefront-grocery/components/account-iframe.tsx +13 -0
  167. package/templates/storefront-grocery/components/cart-pill.tsx +32 -0
  168. package/templates/storefront-grocery/components/category-grid.tsx +28 -0
  169. package/templates/storefront-grocery/components/collection-strip.tsx +45 -0
  170. package/templates/storefront-grocery/components/footer.tsx +148 -0
  171. package/templates/storefront-grocery/components/header.tsx +43 -0
  172. package/templates/storefront-grocery/components/hero.tsx +25 -0
  173. package/templates/storefront-grocery/components/nav-link.tsx +20 -0
  174. package/templates/storefront-grocery/components/policy-page.tsx +49 -0
  175. package/templates/storefront-grocery/components/providers.tsx +31 -0
  176. package/templates/storefront-grocery/components/store-product-card.tsx +83 -0
  177. package/templates/storefront-grocery/lib/brand.ts +373 -0
  178. package/templates/storefront-grocery/lib/cart.ts +27 -0
  179. package/templates/storefront-grocery/next.config.ts +40 -0
  180. package/templates/storefront-grocery/package.json +28 -0
  181. package/templates/storefront-grocery/postcss.config.mjs +7 -0
  182. package/templates/storefront-grocery/tsconfig.json +23 -0
  183. package/templates/storefront-restaurant/.env.example +16 -0
  184. package/templates/storefront-restaurant/AGENTS.md +39 -0
  185. package/templates/storefront-restaurant/README.md +73 -0
  186. package/templates/storefront-restaurant/app/about/page.tsx +38 -0
  187. package/templates/storefront-restaurant/app/accessibility/page.tsx +11 -0
  188. package/templates/storefront-restaurant/app/account/addresses/page.tsx +21 -0
  189. package/templates/storefront-restaurant/app/account/orders/page.tsx +21 -0
  190. package/templates/storefront-restaurant/app/account/page.tsx +22 -0
  191. package/templates/storefront-restaurant/app/account/settings/page.tsx +21 -0
  192. package/templates/storefront-restaurant/app/cart/page.tsx +9 -0
  193. package/templates/storefront-restaurant/app/categories/[slug]/listing-client.tsx +19 -0
  194. package/templates/storefront-restaurant/app/categories/[slug]/page.tsx +118 -0
  195. package/templates/storefront-restaurant/app/checkout/page.tsx +17 -0
  196. package/templates/storefront-restaurant/app/collections/[slug]/listing-client.tsx +20 -0
  197. package/templates/storefront-restaurant/app/collections/[slug]/page.tsx +118 -0
  198. package/templates/storefront-restaurant/app/contact/contact-form.tsx +109 -0
  199. package/templates/storefront-restaurant/app/contact/page.tsx +54 -0
  200. package/templates/storefront-restaurant/app/error.tsx +60 -0
  201. package/templates/storefront-restaurant/app/faq/page.tsx +46 -0
  202. package/templates/storefront-restaurant/app/globals.css +44 -0
  203. package/templates/storefront-restaurant/app/layout.tsx +80 -0
  204. package/templates/storefront-restaurant/app/llms.txt/route.ts +94 -0
  205. package/templates/storefront-restaurant/app/login/page.tsx +17 -0
  206. package/templates/storefront-restaurant/app/not-found.tsx +39 -0
  207. package/templates/storefront-restaurant/app/opensearch.xml/route.ts +37 -0
  208. package/templates/storefront-restaurant/app/orders/[id]/page.tsx +21 -0
  209. package/templates/storefront-restaurant/app/page.tsx +97 -0
  210. package/templates/storefront-restaurant/app/privacy/page.tsx +44 -0
  211. package/templates/storefront-restaurant/app/reservations/page.tsx +66 -0
  212. package/templates/storefront-restaurant/app/reservations/reservations-client.tsx +234 -0
  213. package/templates/storefront-restaurant/app/returns/page.tsx +11 -0
  214. package/templates/storefront-restaurant/app/robots.ts +18 -0
  215. package/templates/storefront-restaurant/app/search/page.tsx +38 -0
  216. package/templates/storefront-restaurant/app/search/search-client.tsx +7 -0
  217. package/templates/storefront-restaurant/app/shipping/page.tsx +16 -0
  218. package/templates/storefront-restaurant/app/shop/page.tsx +31 -0
  219. package/templates/storefront-restaurant/app/shop/shop-client.tsx +27 -0
  220. package/templates/storefront-restaurant/app/signup/page.tsx +17 -0
  221. package/templates/storefront-restaurant/app/sitemap-page/page.tsx +167 -0
  222. package/templates/storefront-restaurant/app/sitemap.ts +62 -0
  223. package/templates/storefront-restaurant/app/terms/page.tsx +44 -0
  224. package/templates/storefront-restaurant/app/track-order/page.tsx +24 -0
  225. package/templates/storefront-restaurant/app/track-order/track-order-form.tsx +69 -0
  226. package/templates/storefront-restaurant/components/account-iframe.tsx +13 -0
  227. package/templates/storefront-restaurant/components/cart-pill.tsx +32 -0
  228. package/templates/storefront-restaurant/components/category-grid.tsx +28 -0
  229. package/templates/storefront-restaurant/components/collection-strip.tsx +45 -0
  230. package/templates/storefront-restaurant/components/footer.tsx +148 -0
  231. package/templates/storefront-restaurant/components/header.tsx +43 -0
  232. package/templates/storefront-restaurant/components/hero.tsx +25 -0
  233. package/templates/storefront-restaurant/components/nav-link.tsx +20 -0
  234. package/templates/storefront-restaurant/components/policy-page.tsx +49 -0
  235. package/templates/storefront-restaurant/components/product-modal.tsx +105 -0
  236. package/templates/storefront-restaurant/components/providers.tsx +31 -0
  237. package/templates/storefront-restaurant/components/store-product-card.tsx +83 -0
  238. package/templates/storefront-restaurant/lib/brand.ts +375 -0
  239. package/templates/storefront-restaurant/lib/cart.ts +27 -0
  240. package/templates/storefront-restaurant/next.config.ts +40 -0
  241. package/templates/storefront-restaurant/package.json +28 -0
  242. package/templates/storefront-restaurant/postcss.config.mjs +7 -0
  243. package/templates/storefront-restaurant/tsconfig.json +23 -0
  244. package/templates/storefront-retail/.env.example +5 -0
  245. package/templates/storefront-retail/AGENTS.md +64 -0
  246. package/templates/storefront-retail/app/about/page.tsx +24 -54
  247. package/templates/storefront-retail/app/accessibility/page.tsx +11 -0
  248. package/templates/storefront-retail/app/account/addresses/page.tsx +21 -0
  249. package/templates/storefront-retail/app/account/orders/page.tsx +21 -0
  250. package/templates/storefront-retail/app/account/page.tsx +22 -0
  251. package/templates/storefront-retail/app/account/settings/page.tsx +21 -0
  252. package/templates/storefront-retail/app/categories/[slug]/page.tsx +2 -1
  253. package/templates/storefront-retail/app/collections/[slug]/page.tsx +2 -1
  254. package/templates/storefront-retail/app/contact/contact-form.tsx +109 -0
  255. package/templates/storefront-retail/app/contact/page.tsx +54 -0
  256. package/templates/storefront-retail/app/error.tsx +61 -0
  257. package/templates/storefront-retail/app/faq/page.tsx +11 -92
  258. package/templates/storefront-retail/app/layout.tsx +37 -8
  259. package/templates/storefront-retail/app/llms.txt/route.ts +94 -0
  260. package/templates/storefront-retail/app/login/page.tsx +17 -0
  261. package/templates/storefront-retail/app/not-found.tsx +39 -0
  262. package/templates/storefront-retail/app/opensearch.xml/route.ts +37 -0
  263. package/templates/storefront-retail/app/page.tsx +16 -73
  264. package/templates/storefront-retail/app/privacy/page.tsx +24 -81
  265. package/templates/storefront-retail/app/products/[slug]/page.tsx +165 -0
  266. package/templates/storefront-retail/app/products/[slug]/product-detail.tsx +71 -0
  267. package/templates/storefront-retail/app/returns/page.tsx +11 -0
  268. package/templates/storefront-retail/app/robots.ts +18 -0
  269. package/templates/storefront-retail/app/search/page.tsx +38 -0
  270. package/templates/storefront-retail/app/search/search-client.tsx +7 -0
  271. package/templates/storefront-retail/app/shipping/page.tsx +16 -0
  272. package/templates/storefront-retail/app/shop/page.tsx +3 -3
  273. package/templates/storefront-retail/app/signup/page.tsx +17 -0
  274. package/templates/storefront-retail/app/sitemap-page/page.tsx +167 -0
  275. package/templates/storefront-retail/app/sitemap.ts +59 -0
  276. package/templates/storefront-retail/app/terms/page.tsx +24 -97
  277. package/templates/storefront-retail/app/track-order/page.tsx +24 -0
  278. package/templates/storefront-retail/app/track-order/track-order-form.tsx +69 -0
  279. package/templates/storefront-retail/components/account-iframe.tsx +13 -0
  280. package/templates/storefront-retail/components/brand-marquee.tsx +6 -15
  281. package/templates/storefront-retail/components/feature-hero.tsx +2 -1
  282. package/templates/storefront-retail/components/footer.tsx +85 -120
  283. package/templates/storefront-retail/components/header.tsx +10 -12
  284. package/templates/storefront-retail/components/newsletter.tsx +7 -9
  285. package/templates/storefront-retail/components/policy-page.tsx +49 -0
  286. package/templates/storefront-retail/components/promo-banner.tsx +12 -15
  287. package/templates/storefront-retail/components/store-product-card.tsx +7 -7
  288. package/templates/storefront-retail/components/trade-in-cta.tsx +11 -17
  289. package/templates/storefront-retail/components/trust-bar.tsx +45 -5
  290. package/templates/storefront-retail/lib/brand.ts +663 -0
  291. package/templates/storefront-services/.env.example +16 -0
  292. package/templates/storefront-services/AGENTS.md +41 -0
  293. package/templates/storefront-services/README.md +73 -0
  294. package/templates/storefront-services/app/about/page.tsx +38 -0
  295. package/templates/storefront-services/app/accessibility/page.tsx +11 -0
  296. package/templates/storefront-services/app/account/addresses/page.tsx +21 -0
  297. package/templates/storefront-services/app/account/orders/page.tsx +21 -0
  298. package/templates/storefront-services/app/account/page.tsx +22 -0
  299. package/templates/storefront-services/app/account/settings/page.tsx +21 -0
  300. package/templates/storefront-services/app/book/book-client.tsx +195 -0
  301. package/templates/storefront-services/app/book/page.tsx +65 -0
  302. package/templates/storefront-services/app/cart/page.tsx +9 -0
  303. package/templates/storefront-services/app/categories/[slug]/listing-client.tsx +19 -0
  304. package/templates/storefront-services/app/categories/[slug]/page.tsx +118 -0
  305. package/templates/storefront-services/app/checkout/page.tsx +17 -0
  306. package/templates/storefront-services/app/collections/[slug]/listing-client.tsx +20 -0
  307. package/templates/storefront-services/app/collections/[slug]/page.tsx +118 -0
  308. package/templates/storefront-services/app/contact/contact-form.tsx +109 -0
  309. package/templates/storefront-services/app/contact/page.tsx +54 -0
  310. package/templates/storefront-services/app/error.tsx +60 -0
  311. package/templates/storefront-services/app/faq/page.tsx +46 -0
  312. package/templates/storefront-services/app/globals.css +45 -0
  313. package/templates/storefront-services/app/layout.tsx +80 -0
  314. package/templates/storefront-services/app/llms.txt/route.ts +94 -0
  315. package/templates/storefront-services/app/login/page.tsx +17 -0
  316. package/templates/storefront-services/app/not-found.tsx +39 -0
  317. package/templates/storefront-services/app/opensearch.xml/route.ts +37 -0
  318. package/templates/storefront-services/app/orders/[id]/page.tsx +21 -0
  319. package/templates/storefront-services/app/page.tsx +97 -0
  320. package/templates/storefront-services/app/privacy/page.tsx +44 -0
  321. package/templates/storefront-services/app/returns/page.tsx +11 -0
  322. package/templates/storefront-services/app/robots.ts +18 -0
  323. package/templates/storefront-services/app/search/page.tsx +38 -0
  324. package/templates/storefront-services/app/search/search-client.tsx +7 -0
  325. package/templates/storefront-services/app/shipping/page.tsx +16 -0
  326. package/templates/storefront-services/app/shop/page.tsx +31 -0
  327. package/templates/storefront-services/app/shop/shop-client.tsx +27 -0
  328. package/templates/storefront-services/app/signup/page.tsx +17 -0
  329. package/templates/storefront-services/app/sitemap-page/page.tsx +167 -0
  330. package/templates/storefront-services/app/sitemap.ts +62 -0
  331. package/templates/storefront-services/app/terms/page.tsx +44 -0
  332. package/templates/storefront-services/app/track-order/page.tsx +24 -0
  333. package/templates/storefront-services/app/track-order/track-order-form.tsx +69 -0
  334. package/templates/storefront-services/components/account-iframe.tsx +13 -0
  335. package/templates/storefront-services/components/cart-pill.tsx +32 -0
  336. package/templates/storefront-services/components/category-grid.tsx +28 -0
  337. package/templates/storefront-services/components/collection-strip.tsx +45 -0
  338. package/templates/storefront-services/components/footer.tsx +148 -0
  339. package/templates/storefront-services/components/header.tsx +43 -0
  340. package/templates/storefront-services/components/hero.tsx +25 -0
  341. package/templates/storefront-services/components/nav-link.tsx +20 -0
  342. package/templates/storefront-services/components/policy-page.tsx +49 -0
  343. package/templates/storefront-services/components/product-modal.tsx +105 -0
  344. package/templates/storefront-services/components/providers.tsx +31 -0
  345. package/templates/storefront-services/components/store-product-card.tsx +83 -0
  346. package/templates/storefront-services/lib/brand.ts +394 -0
  347. package/templates/storefront-services/lib/cart.ts +27 -0
  348. package/templates/storefront-services/next.config.ts +40 -0
  349. package/templates/storefront-services/package.json +28 -0
  350. package/templates/storefront-services/postcss.config.mjs +7 -0
  351. package/templates/storefront-services/tsconfig.json +23 -0
  352. /package/templates/{storefront-retail → storefront-grocery}/components/product-modal.tsx +0 -0
@@ -0,0 +1,83 @@
1
+ "use client";
2
+
3
+ import Link from "next/link";
4
+ import {
5
+ CardVariant,
6
+ FoodProductCard,
7
+ RetailProductCard,
8
+ WholesaleProductCard,
9
+ DigitalProductCard,
10
+ BundleProductCard,
11
+ CompositeProductCard,
12
+ StandardServiceCard,
13
+ RentalServiceCard,
14
+ AccommodationCard,
15
+ LeaseServiceCard,
16
+ SubscriptionCard,
17
+ } from "@cimplify/sdk/react";
18
+ import type { CardLayoutProps } from "@cimplify/sdk/react";
19
+ import type { Product } from "@cimplify/sdk";
20
+ import { PRODUCT_TYPE, RENDER_HINT, DURATION_UNIT } from "@cimplify/sdk";
21
+
22
+ const RENTAL_UNITS = new Set<string>([DURATION_UNIT.Days, DURATION_UNIT.Hours]);
23
+ const LEASE_UNITS = new Set<string>([DURATION_UNIT.Weeks, DURATION_UNIT.Months, DURATION_UNIT.Years]);
24
+
25
+ const VARIANT_CARDS: Record<CardVariant, React.ComponentType<CardLayoutProps>> = {
26
+ [CardVariant.Food]: FoodProductCard,
27
+ [CardVariant.Retail]: RetailProductCard,
28
+ [CardVariant.Wholesale]: WholesaleProductCard,
29
+ [CardVariant.Digital]: DigitalProductCard,
30
+ [CardVariant.Bundle]: BundleProductCard,
31
+ [CardVariant.Composite]: CompositeProductCard,
32
+ [CardVariant.Standard]: StandardServiceCard,
33
+ [CardVariant.Rental]: RentalServiceCard,
34
+ [CardVariant.Accommodation]: AccommodationCard,
35
+ [CardVariant.Lease]: LeaseServiceCard,
36
+ [CardVariant.Subscription]: SubscriptionCard,
37
+ };
38
+
39
+ function resolveVariant(p: Product): CardVariant {
40
+ if (p.type === PRODUCT_TYPE.Bundle) return CardVariant.Bundle;
41
+ if (p.type === PRODUCT_TYPE.Composite) return CardVariant.Composite;
42
+ if (p.quantity_pricing && p.quantity_pricing.length > 1) return CardVariant.Wholesale;
43
+ if (p.type === PRODUCT_TYPE.Digital) return CardVariant.Digital;
44
+ if (p.type === PRODUCT_TYPE.Service) {
45
+ if (p.duration_unit && RENTAL_UNITS.has(p.duration_unit)) return CardVariant.Rental;
46
+ if (p.duration_unit === DURATION_UNIT.Nights) return CardVariant.Accommodation;
47
+ if (p.duration_unit && LEASE_UNITS.has(p.duration_unit)) return CardVariant.Lease;
48
+ if (p.billing_plans && p.billing_plans.length > 0 && !p.duration_minutes) return CardVariant.Subscription;
49
+ return CardVariant.Standard;
50
+ }
51
+ if (p.render_hint === RENDER_HINT.Food) return CardVariant.Food;
52
+ return CardVariant.Retail;
53
+ }
54
+
55
+ interface Props {
56
+ product: Product;
57
+ /** Override the auto-detected card variant. */
58
+ variant?: CardVariant;
59
+ }
60
+
61
+ /**
62
+ * Variant-aware product card that opens the URL-driven product modal on
63
+ * click. Uses `next/link` with `?product=<slug>` so the link is statically
64
+ * pre-renderable — no `useSearchParams` dependency means cards don't
65
+ * become dynamic islands. The modal (which already reads `useSearchParams`
66
+ * inside a Suspense boundary in the root layout) handles the rest.
67
+ */
68
+ export function StoreProductCard({ product, variant }: Props) {
69
+ const slug = product.slug || product.id;
70
+ const Card = VARIANT_CARDS[variant ?? resolveVariant(product)];
71
+ const href = `?product=${encodeURIComponent(slug)}`;
72
+
73
+ return (
74
+ <Card
75
+ product={product}
76
+ renderLink={({ className, children }) => (
77
+ <Link href={href} scroll={false} prefetch={false} className={className}>
78
+ {children}
79
+ </Link>
80
+ )}
81
+ />
82
+ );
83
+ }
@@ -0,0 +1,375 @@
1
+ /**
2
+ * Brand & content configuration — single source of truth for every visible
3
+ * string. Edit this file to rebrand. See ../AGENTS.md.
4
+ */
5
+
6
+ export interface BrandSocial {
7
+ label: string;
8
+ href: string;
9
+ icon?: "instagram" | "x" | "tiktok" | "facebook" | "youtube" | "linkedin" | "whatsapp";
10
+ }
11
+
12
+ export interface BrandFaqEntry { q: string; a: string }
13
+ export interface BrandFaqSection { title: string; items: BrandFaqEntry[] }
14
+ export interface BrandPolicySection {
15
+ heading: string;
16
+ body: string | { intro: string; bullets: string[] };
17
+ }
18
+ export interface BrandSitemapSection { title: string; links: { label: string; href: string }[] }
19
+
20
+ export interface Brand {
21
+ name: string; shortName: string; microTag: string; description: string;
22
+ schemaType:
23
+ | "Store" | "Bakery" | "Restaurant" | "BeautySalon"
24
+ | "GroceryStore" | "LocalBusiness" | "Organization";
25
+ currency: string; locale: string;
26
+ contact: {
27
+ address: string; streetAddress: string; city: string; countryCode: string;
28
+ phone: string; phoneTel: string; email: string; privacyEmail: string;
29
+ supportEmail?: string; businessEmail?: string; hours: string;
30
+ };
31
+ socials: BrandSocial[];
32
+ header: { nav: { label: string; href: string }[] };
33
+ hero: {
34
+ badge: string; title: string; subtitle: string;
35
+ primaryCtaLabel: string;
36
+ secondaryCtaLabel?: string; secondaryCtaHref?: string;
37
+ };
38
+ trustItems?: { label: string; value: string; description: string; iconKey: string }[];
39
+ brandStrip?: { headline: string; brands: string[] };
40
+ promo?: { badge: string; title: string; body: string; ctaLabel: string; ctaHref: string };
41
+ tradeIn?: {
42
+ eyebrow: string; title: string; body: string;
43
+ primaryCtaLabel: string; primaryCtaHref: string;
44
+ secondaryCtaLabel: string; secondaryCtaHref: string;
45
+ steps: { step: string; title: string; body: string }[];
46
+ };
47
+ newsletter: {
48
+ eyebrow: string; title: string; body: string; placeholder: string;
49
+ submitLabel: string; successLabel: string;
50
+ };
51
+ about: {
52
+ eyebrow: string; title: string; paragraphs: string[];
53
+ sections: { heading: string; body: string }[];
54
+ };
55
+ faq: {
56
+ eyebrow: string; title: string; sections: BrandFaqSection[];
57
+ contactPrompt: string; contactEmail: string;
58
+ };
59
+ terms: { eyebrow: string; title: string; lastUpdated: string; sections: BrandPolicySection[] };
60
+ privacy: { eyebrow: string; title: string; lastUpdated: string; sections: BrandPolicySection[] };
61
+ shipping: { eyebrow: string; title: string; lastUpdated: string; sections: BrandPolicySection[] };
62
+ returns: { eyebrow: string; title: string; lastUpdated: string; sections: BrandPolicySection[] };
63
+ accessibility: { eyebrow: string; title: string; lastUpdated: string; sections: BrandPolicySection[] };
64
+ account: {
65
+ loginEyebrow: string; loginTitle: string; loginSubtitle: string;
66
+ signupEyebrow: string; signupTitle: string; signupSubtitle: string;
67
+ accountEyebrow: string; accountTitle: string;
68
+ };
69
+ contactPage: {
70
+ eyebrow: string; title: string; body: string;
71
+ reasons: string[];
72
+ directLines: { label: string; value: string; href: string }[];
73
+ };
74
+ trackOrder: { eyebrow: string; title: string; body: string };
75
+ footer: {
76
+ blurb: string; sitemap: BrandSitemapSection[];
77
+ poweredBy?: { label: string; href: string };
78
+ };
79
+ llms: { summary: string };
80
+ mock: { seed: string; businessId: string };
81
+ }
82
+
83
+ export const brand: Brand = {
84
+ name: "Mama's Kitchen",
85
+ shortName: "Mama's",
86
+ microTag: "EAST LEGON · ACCRA",
87
+ description:
88
+ "West African plates, prepared by our matriarchs, served family-style in East Legon. Dine in, take out, deliver.",
89
+ schemaType: "Restaurant",
90
+
91
+ currency: "GHS",
92
+ locale: "en_GH",
93
+
94
+ contact: {
95
+ address: "21 Adjiringanor Road, East Legon, Accra",
96
+ streetAddress: "21 Adjiringanor Road, East Legon",
97
+ city: "Accra",
98
+ countryCode: "GH",
99
+ phone: "+233 244 200 100",
100
+ phoneTel: "+233244200100",
101
+ email: "hello@mamaskitchen.test",
102
+ privacyEmail: "privacy@mamaskitchen.test",
103
+ hours: "Tue–Sun · 12pm–10pm · brunch Sat–Sun, 10am",
104
+ },
105
+
106
+ socials: [
107
+ { label: "Instagram", href: "https://instagram.com/mamaskitchen", icon: "instagram" },
108
+ { label: "TikTok", href: "https://tiktok.com/@mamaskitchen", icon: "tiktok" },
109
+ { label: "Facebook", href: "https://facebook.com/mamaskitchen", icon: "facebook" },
110
+ { label: "WhatsApp", href: "https://wa.me/233244200100", icon: "whatsapp" },
111
+ ],
112
+
113
+ header: {
114
+ nav: [
115
+ { label: "Menu", href: "/shop" },
116
+ { label: "Reservations", href: "/categories/reservations" },
117
+ { label: "About", href: "/about" },
118
+ { label: "FAQ", href: "/faq" },
119
+ ],
120
+ },
121
+
122
+ hero: {
123
+ badge: "Tonight's special · Banku & Tilapia",
124
+ title: "Family recipes,\nfamily tables.",
125
+ subtitle:
126
+ "Mama's serves the West African food we grew up with — banku, jollof, palaver sauce, suya — at one long table or to your door. Open Tuesday through Sunday.",
127
+ primaryCtaLabel: "Reserve a table",
128
+ secondaryCtaLabel: "See the menu",
129
+ secondaryCtaHref: "/shop",
130
+ },
131
+
132
+ trustItems: [
133
+ { label: "Reservations", value: "Same-week tables", description: "Bookings up to 21 days out.", iconKey: "verified" },
134
+ { label: "Delivery", value: "60-minute, in Accra", description: "Order before 9pm Tue–Sun.", iconKey: "delivery" },
135
+ { label: "Family-style", value: "Tables for 2 to 20", description: "Long table for 12 reservable.", iconKey: "support" },
136
+ { label: "Specials", value: "Daily off-menu", description: "Posted on Instagram by 11am.", iconKey: "warranty" },
137
+ ],
138
+
139
+ promo: {
140
+ badge: "Sunday only",
141
+ title: "The Long Lunch — three courses, one long table.",
142
+ body: "Sunday set lunch from 1pm. Three courses, family-style, GH₵180 per head. We send out the menu the Friday before; reserve any time on Saturday.",
143
+ ctaLabel: "Book the Long Lunch",
144
+ ctaHref: "/shop",
145
+ },
146
+
147
+ newsletter: {
148
+ eyebrow: "From the kitchen",
149
+ title: "Tonight's specials, in your inbox.",
150
+ body: "Daily specials, off-menu plates, and the events worth knowing about. One email a day, 5 days a week. Unsubscribe in one click.",
151
+ placeholder: "you@email.com",
152
+ submitLabel: "Subscribe",
153
+ successLabel: "Subscribed ✓",
154
+ },
155
+
156
+ about: {
157
+ eyebrow: "About Mama's",
158
+ title: "Family recipes,\nfamily tables.",
159
+ paragraphs: [
160
+ "Mama's started in 2019 around our grandmother's kitchen — a long table, a heavy stock pot of palaver sauce, and Sunday lunches that lasted three hours. We opened a public room in 2021 and brought the long table with us.",
161
+ "Every recipe on our menu was cooked first by someone in our family. We built the kitchen around them: three matriarchs lead our line, each in charge of the dishes they grew up making. We don't substitute spice blends. We grind ours from the same Volta-Region peppers Akua's grandmother used.",
162
+ "We're a small room — 38 covers, plus a long table for 12 reservable as a single party. Open Tuesday through Sunday. Brunch on weekends.",
163
+ ],
164
+ sections: [
165
+ {
166
+ heading: "The long table",
167
+ body: "Our 12-seater long table can be reserved as a single party on weekends and weekday evenings. It's the heart of the room. Booking opens three weeks in advance.",
168
+ },
169
+ {
170
+ heading: "Private events",
171
+ body: "We host private dinners (12–32 people) on Mondays when the public room is closed. Custom menus, full-room buy-out, in-room music. Email events@mamaskitchen.test.",
172
+ },
173
+ {
174
+ heading: "Visit",
175
+ body: "21 Adjiringanor Road, East Legon · Tue–Sun, 12pm–10pm. Brunch Sat–Sun from 10am.",
176
+ },
177
+ ],
178
+ },
179
+
180
+ faq: {
181
+ eyebrow: "Q&A",
182
+ title: "Things people ask.",
183
+ sections: [
184
+ {
185
+ title: "Reservations & seating",
186
+ items: [
187
+ { q: "How do I book a table?", a: "Online via the Reservations link, or message us on WhatsApp +233 244 200 100. Bookings open 21 days in advance." },
188
+ { q: "Do you take walk-ins?", a: "Yes — we keep half our tables for walk-ins. Best chance is between 12 and 2pm, or after 9pm." },
189
+ { q: "Can I book the long table?", a: "Yes — it seats 12 as a single party. Bookable for weekend lunches and weekday evenings, three weeks out." },
190
+ { q: "What's your cancellation policy?", a: "Free cancellation up to 4 hours before your reservation. After that we charge GH₵60 per cover for no-shows on parties of 6+." },
191
+ ],
192
+ },
193
+ {
194
+ title: "Menu & dietary",
195
+ items: [
196
+ { q: "Do you have vegetarian / vegan options?", a: "Yes — palaver sauce, kontomire stew, plantain, garden eggs. Half our menu is plant-based; the rest can be made vegetarian on request." },
197
+ { q: "How spicy is your food?", a: "Honestly: medium-hot to hot. Tell your server how you want it; the kitchen adjusts." },
198
+ { q: "Can you handle allergies?", a: "We're a kitchen, not a lab — we use peanuts, shellfish, dairy, and gluten daily. Tell us in advance and we'll cook around it where we can." },
199
+ ],
200
+ },
201
+ {
202
+ title: "Delivery & takeout",
203
+ items: [
204
+ { q: "Where do you deliver?", a: "Greater Accra, between 12pm and 9pm Tue–Sun. Free over GH₵250." },
205
+ { q: "How long does delivery take?", a: "60 minutes from order, give or take. We bake the jollof to order, so it arrives still steaming." },
206
+ { q: "Can I order ahead for pickup?", a: "Yes. Order online, choose a pickup time, and skip the queue." },
207
+ ],
208
+ },
209
+ ],
210
+ contactPrompt: "Other questions? Email",
211
+ contactEmail: "hello@mamaskitchen.test",
212
+ },
213
+
214
+ terms: {
215
+ eyebrow: "Terms of service",
216
+ title: "Terms of Service",
217
+ lastUpdated: "1 May 2026",
218
+ sections: [
219
+ { heading: "1. Who we are", body: "Mama's Kitchen (\"we\", \"us\") is a restaurant operating at 21 Adjiringanor Road, East Legon, Accra. By booking a table or placing an order, you (\"you\", \"guest\") agree to these terms." },
220
+ { heading: "2. Reservations", body: "Tables held with name + phone. Card guarantee required for parties of 6+." },
221
+ { heading: "3. Cancellations", body: "Free cancellation up to 4 hours ahead. Within 4 hours, parties of 6+ are charged GH₵60/cover for no-shows." },
222
+ { heading: "4. Pricing & payment", body: "Prices in GH₵ include VAT and 10% service. Card, mobile money, or cash. Tipping appreciated, never required." },
223
+ { heading: "5. Delivery", body: "60-minute window from confirmation. We're not liable for delays caused by traffic, weather, or events outside our control." },
224
+ { heading: "6. Allergens", body: "Our kitchen handles peanuts, shellfish, dairy, gluten. Cross-contamination is possible." },
225
+ { heading: "7. Liability", body: "Maximum liability for any reservation or order is the cost of that booking. We're not liable for indirect or consequential losses." },
226
+ { heading: "8. Governing law", body: "These terms are governed by the laws of Ghana." },
227
+ ],
228
+ },
229
+
230
+ privacy: {
231
+ eyebrow: "Privacy",
232
+ title: "Privacy Policy",
233
+ lastUpdated: "1 May 2026",
234
+ sections: [
235
+ { heading: "What we collect", body: "Reservation details (name, phone, party size, allergies if you share them), order details, and payment data via our processors. We do not store payment cards." },
236
+ { heading: "How we use it", body: { intro: "We use your data to:", bullets: [
237
+ "Confirm and seat reservations.",
238
+ "Fulfil and deliver orders.",
239
+ "Send reminders by SMS.",
240
+ "Send specials (only if you opted in).",
241
+ ] } },
242
+ { heading: "Allergy notes", body: "Treated as sensitive — only the kitchen team handling your booking accesses these notes. Never shared." },
243
+ { heading: "Who we share it with", body: "Payment processors, our SMS provider, and the rider service for delivery. No one else." },
244
+ { heading: "Your rights", body: "Under the Ghana Data Protection Act, 2012 (Act 843), you can access, correct, or delete your data. Email privacy@mamaskitchen.test." },
245
+ { heading: "Retention", body: "Order records: 7 years (tax). Marketing list: until you unsubscribe." },
246
+ ],
247
+ },
248
+
249
+ shipping: {
250
+ eyebrow: "Delivery",
251
+ title: "Delivery & Pickup",
252
+ lastUpdated: "1 May 2026",
253
+ sections: [
254
+ { heading: "Greater Accra", body: "Same-day, 12pm–9pm Tue–Sun. Free over GH₵250; GH₵35 below. Typical 60-minute window from order." },
255
+ { heading: "Pickup", body: "Skip the queue: order ahead, pick a window, walk in. Free." },
256
+ { heading: "Catering & private events", body: "Off-site catering (12+ people) requires 5 days' notice. Email events@mamaskitchen.test." },
257
+ ],
258
+ },
259
+
260
+ returns: {
261
+ eyebrow: "Refunds",
262
+ title: "Refunds & Quality",
263
+ lastUpdated: "1 May 2026",
264
+ sections: [
265
+ { heading: "Quality guarantee", body: "If anything is wrong with your order — wrong dish, cold, off — message us within 2 hours and we'll replace, refund, or credit." },
266
+ { heading: "Reservation cancellations", body: "Free up to 4 hours before. Within 4 hours, parties of 6+ are charged GH₵60/cover for no-shows." },
267
+ { heading: "Custom event deposits", body: "Refundable up to 7 days before the event. Within 7 days, deposits are non-refundable." },
268
+ ],
269
+ },
270
+
271
+ accessibility: {
272
+ eyebrow: "Accessibility",
273
+ title: "Accessibility Statement",
274
+ lastUpdated: "1 May 2026",
275
+ sections: [
276
+ { heading: "In the dining room", body: "Step-free entrance, accessible bathroom, and a flat path from the curb. Service dogs welcome. We can move tables in advance — let us know at booking." },
277
+ { heading: "Online", body: "We aim for WCAG 2.1 AA on the website and test it on every release." },
278
+ { heading: "Reporting issues", body: "Email accessibility@mamaskitchen.test or call ahead — we respond within a business day." },
279
+ ],
280
+ },
281
+
282
+ account: {
283
+ loginEyebrow: "Welcome back",
284
+ loginTitle: "Sign in to Mama's",
285
+ loginSubtitle: "Pick up where you left off — orders, reservations, and your favourites.",
286
+ signupEyebrow: "Welcome",
287
+ signupTitle: "Create an account",
288
+ signupSubtitle: "Reorder in one tap, hold tables faster, and get first-look at the long-table evenings.",
289
+ accountEyebrow: "Your account",
290
+ accountTitle: "Welcome back",
291
+ },
292
+
293
+ contactPage: {
294
+ eyebrow: "Contact",
295
+ title: "Talk to the kitchen.",
296
+ body: "Reservation question, dietary need, private event — message us and we'll reply within a business day.",
297
+ reasons: ["Reservation question", "An order issue", "Dietary / allergens", "Private event", "Press / partnerships", "Something else"],
298
+ directLines: [
299
+ { label: "Email", value: "hello@mamaskitchen.test", href: "mailto:hello@mamaskitchen.test" },
300
+ { label: "Phone", value: "+233 244 200 100", href: "tel:+233244200100" },
301
+ { label: "WhatsApp", value: "+233 244 200 100", href: "https://wa.me/233244200100" },
302
+ ],
303
+ },
304
+
305
+ trackOrder: {
306
+ eyebrow: "Track an order",
307
+ title: "Where's my order?",
308
+ body: "Enter your order number and the email used at checkout. We'll show the kitchen status, the rider, and the live ETA.",
309
+ },
310
+
311
+ footer: {
312
+ blurb:
313
+ "West African plates, prepared by our matriarchs, served family-style in East Legon. Dine in, take out, deliver.",
314
+ sitemap: [
315
+ {
316
+ title: "Menu",
317
+ links: [
318
+ { label: "Full menu", href: "/shop" },
319
+ { label: "Brunch", href: "/categories/brunch" },
320
+ { label: "Mains", href: "/categories/mains" },
321
+ { label: "Sides", href: "/categories/sides" },
322
+ { label: "Drinks", href: "/categories/drinks" },
323
+ ],
324
+ },
325
+ {
326
+ title: "Visit",
327
+ links: [
328
+ { label: "Reservations", href: "/categories/reservations" },
329
+ { label: "The long table", href: "/about" },
330
+ { label: "Private events", href: "mailto:events@mamaskitchen.test" },
331
+ { label: "Hours & location", href: "/about" },
332
+ ],
333
+ },
334
+ {
335
+ title: "Help",
336
+ links: [
337
+ { label: "Contact", href: "/contact" },
338
+ { label: "Track an order", href: "/track-order" },
339
+ { label: "Delivery", href: "/shipping" },
340
+ { label: "Refunds", href: "/returns" },
341
+ { label: "FAQ", href: "/faq" },
342
+ ],
343
+ },
344
+ {
345
+ title: "Account",
346
+ links: [
347
+ { label: "Sign in", href: "/login" },
348
+ { label: "Create account", href: "/signup" },
349
+ { label: "Your orders", href: "/account/orders" },
350
+ { label: "Settings", href: "/account/settings" },
351
+ ],
352
+ },
353
+ {
354
+ title: "Legal",
355
+ links: [
356
+ { label: "Terms of Service", href: "/terms" },
357
+ { label: "Privacy Policy", href: "/privacy" },
358
+ { label: "Accessibility", href: "/accessibility" },
359
+ { label: "Sitemap", href: "/sitemap-page" },
360
+ ],
361
+ },
362
+ ],
363
+ poweredBy: { label: "Cimplify", href: "https://app.cimplify.io" },
364
+ },
365
+
366
+ llms: {
367
+ summary:
368
+ "Mama's Kitchen — small West African restaurant in East Legon, Accra. Family-recipe banku, jollof, palaver sauce, suya. 38-cover dining room with a 12-seater long table. Open Tue–Sun, brunch on weekends. Reservations and delivery in Greater Accra.",
369
+ },
370
+
371
+ mock: {
372
+ seed: "restaurant",
373
+ businessId: "bus_mamas_kitchen",
374
+ },
375
+ };
@@ -0,0 +1,27 @@
1
+ "use client";
2
+
3
+ import { useEffect, useState } from "react";
4
+ import { useCimplifyClient } from "@cimplify/sdk/react";
5
+
6
+ /**
7
+ * Tiny hook for the live cart-count pill in the header. Re-fetches on
8
+ * mount and exposes a refresh callback. The SDK's `useCart` hook is
9
+ * fine-grained but heavier — this is enough for a header badge.
10
+ */
11
+ export function useCartCount(): { count: number; refresh: () => void } {
12
+ const { client } = useCimplifyClient();
13
+ const [count, setCount] = useState(0);
14
+
15
+ const refresh = () => {
16
+ void client.cart.getCount().then((r) => {
17
+ if (r.ok) setCount(r.value);
18
+ });
19
+ };
20
+
21
+ useEffect(() => {
22
+ refresh();
23
+ // eslint-disable-next-line react-hooks/exhaustive-deps
24
+ }, [client]);
25
+
26
+ return { count, refresh };
27
+ }
@@ -0,0 +1,40 @@
1
+ import type { NextConfig } from "next";
2
+
3
+ const MOCK_URL = process.env.NEXT_PUBLIC_CIMPLIFY_API_URL?.trim() || "http://127.0.0.1:8787";
4
+
5
+ /**
6
+ * Same-origin proxy to the Cimplify mock so the browser never makes a
7
+ * cross-origin request in dev (no CORS preflights, no flaky `Origin`
8
+ * mismatches). The SDK's base URL stays empty/relative — requests go to
9
+ * `/api/v1/...` on the Next origin, then this rewrite forwards them to
10
+ * the mock at `127.0.0.1:8787`.
11
+ *
12
+ * In production, point `NEXT_PUBLIC_CIMPLIFY_API_URL` at your Cimplify
13
+ * host and the rewrite continues to work the same way (or remove it and
14
+ * pass the absolute URL through `<CimplifyProvider/>`).
15
+ */
16
+ const nextConfig: NextConfig = {
17
+ // Enable Next 16's `cacheComponents` mode so we can use `'use cache'` +
18
+ // `cacheTag` / `cacheLife` for SSR caching. Cached chrome streams first,
19
+ // dynamic Suspense boundaries fill in when ready.
20
+ cacheComponents: true,
21
+ async rewrites() {
22
+ return [
23
+ { source: "/api/v1/:path*", destination: `${MOCK_URL}/api/v1/:path*` },
24
+ { source: "/img/:path*", destination: `${MOCK_URL}/img/:path*` },
25
+ { source: "/elements/:path*", destination: `${MOCK_URL}/elements/:path*` },
26
+ { source: "/_mock/:path*", destination: `${MOCK_URL}/_mock/:path*` },
27
+ ];
28
+ },
29
+ images: {
30
+ remotePatterns: [
31
+ { protocol: "http", hostname: "127.0.0.1", port: "8787", pathname: "/img/**" },
32
+ { protocol: "http", hostname: "localhost", port: "8787", pathname: "/img/**" },
33
+ { protocol: "http", hostname: "localhost", port: "3000", pathname: "/img/**" },
34
+ { protocol: "https", hostname: "loremflickr.com", pathname: "/**" },
35
+ { protocol: "https", hostname: "images.unsplash.com", pathname: "/**" },
36
+ ],
37
+ },
38
+ };
39
+
40
+ export default nextConfig;
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "__STOREFRONT_NAME__",
3
+ "private": true,
4
+ "version": "0.0.0",
5
+ "scripts": {
6
+ "dev": "concurrently -k -n mock,next -c blue,magenta \"bunx @cimplify/sdk --seed restaurant --quiet\" \"next dev\"",
7
+ "dev:storefront": "next dev",
8
+ "dev:mock": "bunx @cimplify/sdk --seed restaurant",
9
+ "build": "next build",
10
+ "start": "next start",
11
+ "lint": "next lint"
12
+ },
13
+ "dependencies": {
14
+ "@cimplify/sdk": "^0.40.1",
15
+ "next": "^16.2.4",
16
+ "react": "^19.0.0",
17
+ "react-dom": "^19.0.0"
18
+ },
19
+ "devDependencies": {
20
+ "@tailwindcss/postcss": "^4.2.4",
21
+ "@types/node": "^22.10.0",
22
+ "@types/react": "^19.0.0",
23
+ "@types/react-dom": "^19.0.0",
24
+ "concurrently": "^9.0.0",
25
+ "tailwindcss": "^4.2.4",
26
+ "typescript": "^5.9.3"
27
+ }
28
+ }
@@ -0,0 +1,7 @@
1
+ const config = {
2
+ plugins: {
3
+ "@tailwindcss/postcss": {},
4
+ },
5
+ };
6
+
7
+ export default config;
@@ -0,0 +1,23 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2022",
4
+ "lib": ["dom", "dom.iterable", "esnext"],
5
+ "allowJs": false,
6
+ "skipLibCheck": true,
7
+ "strict": true,
8
+ "noEmit": true,
9
+ "esModuleInterop": true,
10
+ "module": "esnext",
11
+ "moduleResolution": "bundler",
12
+ "resolveJsonModule": true,
13
+ "isolatedModules": true,
14
+ "jsx": "preserve",
15
+ "incremental": true,
16
+ "plugins": [{ "name": "next" }],
17
+ "paths": {
18
+ "@/*": ["./*"]
19
+ }
20
+ },
21
+ "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts", ".next/dev/types/**/*.ts"],
22
+ "exclude": ["node_modules"]
23
+ }
@@ -9,3 +9,8 @@ NEXT_PUBLIC_CIMPLIFY_PUBLIC_KEY=mock-dev
9
9
 
10
10
  # Business id used by the mock seed (retail: Currents Electronics).
11
11
  NEXT_PUBLIC_CIMPLIFY_BUSINESS_ID=bus_currents_electronics
12
+
13
+ # Canonical public site URL — used by sitemap.xml, robots.txt, llms.txt,
14
+ # and OpenGraph metadata. Set this on production deploys (Vercel auto-injects
15
+ # via VERCEL_URL but Next prefers an explicit value).
16
+ NEXT_PUBLIC_SITE_URL=https://example.com
@@ -0,0 +1,64 @@
1
+ # AGENTS.md — Retail / electronics storefront template
2
+
3
+ If you are an AI agent (Claude, Cursor, Aider, devin, …) working on this storefront, **start here.**
4
+
5
+ ## TL;DR for rebranding
6
+
7
+ To rebrand this storefront end-to-end as a different merchant:
8
+
9
+ 1. **Edit `lib/brand.ts`.** Every visible string reads from this file. Replace each field with the merchant's actual content.
10
+ 2. **Edit `app/globals.css`** — the `@theme { … }` block holds the design tokens (palette, radius, font references). Tweak to match the merchant's brand.
11
+ 3. **Edit `.env.local`** — set `NEXT_PUBLIC_CIMPLIFY_API_URL`, `NEXT_PUBLIC_CIMPLIFY_PUBLIC_KEY`, `NEXT_PUBLIC_CIMPLIFY_BUSINESS_ID`, `NEXT_PUBLIC_SITE_URL`.
12
+
13
+ That is the entire rebrand. Do not modify any `.tsx` file in `app/` or `components/` for content changes — they are design-only and read from `brand`.
14
+
15
+ ## Rules
16
+
17
+ - ✅ All content edits → `lib/brand.ts`
18
+ - ✅ All design-token edits → `app/globals.css` `@theme` block
19
+ - ✅ Server Components stay cached via `'use cache'` + `cacheTag(tags.X())` + `cacheLife("hours")`
20
+ - ✅ Client islands (header active link, cart pill, product card link) live behind `<Suspense>`
21
+ - ❌ Don't hardcode strings. If a string isn't in `brand`, add a new field to the `Brand` interface.
22
+ - ❌ Don't disable `cacheComponents: true` in `next.config.ts`.
23
+ - ❌ Don't use `unstable_cache` — Next 16 uses the `'use cache'` directive.
24
+
25
+ ## File map (what reads from where)
26
+
27
+ | File | Reads from `brand` |
28
+ |---|---|
29
+ | `app/layout.tsx` | metadata, OpenGraph, Organization JSON-LD |
30
+ | `app/page.tsx` | `brand.hero`, `brand.trustItems`, `brand.brandStrip`, `brand.promo`, `brand.tradeIn`, `brand.newsletter` |
31
+ | `app/about/page.tsx` | `brand.about` |
32
+ | `app/faq/page.tsx` | `brand.faq` |
33
+ | `app/terms/page.tsx` | `brand.terms` |
34
+ | `app/privacy/page.tsx` | `brand.privacy` |
35
+ | `app/products/[slug]/page.tsx` | `brand.name`, `brand.currency` (Product JSON-LD) |
36
+ | `app/llms.txt/route.ts` | `brand.llms`, contact, currency |
37
+ | `app/not-found.tsx` | `brand.name` (page title) |
38
+ | `components/header.tsx` | `brand.shortName`, `brand.microTag`, `brand.header.nav` |
39
+ | `components/footer.tsx` | `brand.footer`, contact, socials |
40
+ | `components/promo-banner.tsx` | `brand.promo` (renders nothing if absent) |
41
+ | `components/trade-in-cta.tsx` | `brand.tradeIn` (renders nothing if absent) |
42
+ | `components/brand-marquee.tsx` | `brand.brandStrip` |
43
+ | `components/trust-bar.tsx` | `brand.trustItems` |
44
+ | `components/newsletter.tsx` | `brand.newsletter` |
45
+
46
+ ## Retail-specific notes
47
+
48
+ - Product detail is a **full `/products/[slug]` page** with image gallery, customizer, related products rail, and Product JSON-LD. This fits consideration-purchase electronics UX (specs, reviews, warranty). Do not replace with a modal.
49
+ - Schema.org type is `Store`. Change in `lib/brand.ts` (`schemaType`) for a different industry.
50
+ - Optional sections render conditionally: `brand.promo`, `brand.tradeIn`, `brand.trustItems`, `brand.brandStrip` — set to `undefined` to hide.
51
+ - `app/page.tsx` uses Unsplash fallback hero image (`HERO_FALLBACK_IMAGE`) — replace with your own asset URL.
52
+
53
+ ## Mock seed
54
+
55
+ Wired to `--seed retail` (Currents Electronics) via `package.json` `dev:mock`. To preview another seed, change the flag or run `bunx @cimplify/sdk --seed services` directly and update `NEXT_PUBLIC_CIMPLIFY_BUSINESS_ID` in `.env.local`.
56
+
57
+ ## Quick start
58
+
59
+ ```bash
60
+ bun install
61
+ bun dev # boots mock + Next dev server
62
+ ```
63
+
64
+ Open <http://localhost:3000>.