@cimplify/sdk 0.40.0 → 0.41.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 (227) hide show
  1. package/dist/dispatcher.mjs +3 -2
  2. package/dist/mock/cli.mjs +30 -6
  3. package/dist/mock/library.js +30 -6
  4. package/dist/mock/library.mjs +30 -6
  5. package/dist/mock/msw.js +30 -6
  6. package/dist/mock/msw.mjs +30 -6
  7. package/dist/styles.css +1 -1
  8. package/package.json +1 -1
  9. package/templates/storefront-bakery/.env.example +5 -0
  10. package/templates/storefront-bakery/AGENTS.md +57 -0
  11. package/templates/storefront-bakery/app/about/page.tsx +21 -44
  12. package/templates/storefront-bakery/app/categories/[slug]/page.tsx +2 -1
  13. package/templates/storefront-bakery/app/collections/[slug]/page.tsx +2 -1
  14. package/templates/storefront-bakery/app/error.tsx +60 -0
  15. package/templates/storefront-bakery/app/faq/page.tsx +13 -89
  16. package/templates/storefront-bakery/app/layout.tsx +37 -2
  17. package/templates/storefront-bakery/app/llms.txt/route.ts +94 -0
  18. package/templates/storefront-bakery/app/not-found.tsx +39 -0
  19. package/templates/storefront-bakery/app/page.tsx +6 -6
  20. package/templates/storefront-bakery/app/privacy/page.tsx +24 -68
  21. package/templates/storefront-bakery/app/robots.ts +18 -0
  22. package/templates/storefront-bakery/app/shop/page.tsx +3 -2
  23. package/templates/storefront-bakery/app/sitemap.ts +62 -0
  24. package/templates/storefront-bakery/app/terms/page.tsx +24 -82
  25. package/templates/storefront-bakery/components/footer.tsx +88 -130
  26. package/templates/storefront-bakery/components/header.tsx +8 -16
  27. package/templates/storefront-bakery/lib/brand.ts +453 -0
  28. package/templates/storefront-fashion/.env.example +16 -0
  29. package/templates/storefront-fashion/AGENTS.md +52 -0
  30. package/templates/storefront-fashion/README.md +77 -0
  31. package/templates/storefront-fashion/app/about/page.tsx +41 -0
  32. package/templates/storefront-fashion/app/cart/page.tsx +9 -0
  33. package/templates/storefront-fashion/app/categories/[slug]/listing-client.tsx +19 -0
  34. package/templates/storefront-fashion/app/categories/[slug]/page.tsx +130 -0
  35. package/templates/storefront-fashion/app/checkout/page.tsx +17 -0
  36. package/templates/storefront-fashion/app/collections/[slug]/listing-client.tsx +20 -0
  37. package/templates/storefront-fashion/app/collections/[slug]/page.tsx +130 -0
  38. package/templates/storefront-fashion/app/error.tsx +61 -0
  39. package/templates/storefront-fashion/app/faq/page.tsx +46 -0
  40. package/templates/storefront-fashion/app/globals.css +46 -0
  41. package/templates/storefront-fashion/app/layout.tsx +76 -0
  42. package/templates/storefront-fashion/app/llms.txt/route.ts +94 -0
  43. package/templates/storefront-fashion/app/not-found.tsx +39 -0
  44. package/templates/storefront-fashion/app/orders/[id]/page.tsx +24 -0
  45. package/templates/storefront-fashion/app/page.tsx +183 -0
  46. package/templates/storefront-fashion/app/privacy/page.tsx +44 -0
  47. package/templates/storefront-fashion/app/products/[slug]/page.tsx +165 -0
  48. package/templates/storefront-fashion/app/products/[slug]/product-detail.tsx +71 -0
  49. package/templates/storefront-fashion/app/robots.ts +18 -0
  50. package/templates/storefront-fashion/app/shop/page.tsx +63 -0
  51. package/templates/storefront-fashion/app/shop/shop-client.tsx +32 -0
  52. package/templates/storefront-fashion/app/sitemap.ts +59 -0
  53. package/templates/storefront-fashion/app/terms/page.tsx +44 -0
  54. package/templates/storefront-fashion/components/brand-marquee.tsx +27 -0
  55. package/templates/storefront-fashion/components/cart-pill.tsx +32 -0
  56. package/templates/storefront-fashion/components/category-grid.tsx +28 -0
  57. package/templates/storefront-fashion/components/category-tiles.tsx +104 -0
  58. package/templates/storefront-fashion/components/collection-strip.tsx +45 -0
  59. package/templates/storefront-fashion/components/feature-hero.tsx +82 -0
  60. package/templates/storefront-fashion/components/footer.tsx +153 -0
  61. package/templates/storefront-fashion/components/header.tsx +43 -0
  62. package/templates/storefront-fashion/components/hero.tsx +28 -0
  63. package/templates/storefront-fashion/components/nav-link.tsx +20 -0
  64. package/templates/storefront-fashion/components/newsletter.tsx +50 -0
  65. package/templates/storefront-fashion/components/promo-banner.tsx +41 -0
  66. package/templates/storefront-fashion/components/providers.tsx +31 -0
  67. package/templates/storefront-fashion/components/section-heading.tsx +37 -0
  68. package/templates/storefront-fashion/components/store-product-card.tsx +83 -0
  69. package/templates/storefront-fashion/components/trade-in-cta.tsx +54 -0
  70. package/templates/storefront-fashion/components/trust-bar.tsx +66 -0
  71. package/templates/storefront-fashion/lib/brand.ts +421 -0
  72. package/templates/storefront-fashion/lib/cart.ts +27 -0
  73. package/templates/storefront-fashion/next.config.ts +40 -0
  74. package/templates/storefront-fashion/package.json +28 -0
  75. package/templates/storefront-fashion/postcss.config.mjs +7 -0
  76. package/templates/storefront-fashion/tsconfig.json +23 -0
  77. package/templates/storefront-grocery/.env.example +16 -0
  78. package/templates/storefront-grocery/AGENTS.md +39 -0
  79. package/templates/storefront-grocery/README.md +73 -0
  80. package/templates/storefront-grocery/app/about/page.tsx +38 -0
  81. package/templates/storefront-grocery/app/cart/page.tsx +9 -0
  82. package/templates/storefront-grocery/app/categories/[slug]/listing-client.tsx +19 -0
  83. package/templates/storefront-grocery/app/categories/[slug]/page.tsx +118 -0
  84. package/templates/storefront-grocery/app/checkout/page.tsx +17 -0
  85. package/templates/storefront-grocery/app/collections/[slug]/listing-client.tsx +20 -0
  86. package/templates/storefront-grocery/app/collections/[slug]/page.tsx +118 -0
  87. package/templates/storefront-grocery/app/error.tsx +60 -0
  88. package/templates/storefront-grocery/app/faq/page.tsx +46 -0
  89. package/templates/storefront-grocery/app/globals.css +45 -0
  90. package/templates/storefront-grocery/app/layout.tsx +75 -0
  91. package/templates/storefront-grocery/app/llms.txt/route.ts +94 -0
  92. package/templates/storefront-grocery/app/not-found.tsx +39 -0
  93. package/templates/storefront-grocery/app/orders/[id]/page.tsx +21 -0
  94. package/templates/storefront-grocery/app/page.tsx +97 -0
  95. package/templates/storefront-grocery/app/privacy/page.tsx +44 -0
  96. package/templates/storefront-grocery/app/robots.ts +18 -0
  97. package/templates/storefront-grocery/app/shop/page.tsx +31 -0
  98. package/templates/storefront-grocery/app/shop/shop-client.tsx +27 -0
  99. package/templates/storefront-grocery/app/sitemap.ts +62 -0
  100. package/templates/storefront-grocery/app/terms/page.tsx +44 -0
  101. package/templates/storefront-grocery/components/cart-pill.tsx +32 -0
  102. package/templates/storefront-grocery/components/category-grid.tsx +28 -0
  103. package/templates/storefront-grocery/components/collection-strip.tsx +45 -0
  104. package/templates/storefront-grocery/components/footer.tsx +148 -0
  105. package/templates/storefront-grocery/components/header.tsx +43 -0
  106. package/templates/storefront-grocery/components/hero.tsx +25 -0
  107. package/templates/storefront-grocery/components/nav-link.tsx +20 -0
  108. package/templates/storefront-grocery/components/providers.tsx +31 -0
  109. package/templates/storefront-grocery/components/store-product-card.tsx +83 -0
  110. package/templates/storefront-grocery/lib/brand.ts +284 -0
  111. package/templates/storefront-grocery/lib/cart.ts +27 -0
  112. package/templates/storefront-grocery/next.config.ts +40 -0
  113. package/templates/storefront-grocery/package.json +28 -0
  114. package/templates/storefront-grocery/postcss.config.mjs +7 -0
  115. package/templates/storefront-grocery/tsconfig.json +23 -0
  116. package/templates/storefront-restaurant/.env.example +16 -0
  117. package/templates/storefront-restaurant/AGENTS.md +39 -0
  118. package/templates/storefront-restaurant/README.md +73 -0
  119. package/templates/storefront-restaurant/app/about/page.tsx +38 -0
  120. package/templates/storefront-restaurant/app/cart/page.tsx +9 -0
  121. package/templates/storefront-restaurant/app/categories/[slug]/listing-client.tsx +19 -0
  122. package/templates/storefront-restaurant/app/categories/[slug]/page.tsx +118 -0
  123. package/templates/storefront-restaurant/app/checkout/page.tsx +17 -0
  124. package/templates/storefront-restaurant/app/collections/[slug]/listing-client.tsx +20 -0
  125. package/templates/storefront-restaurant/app/collections/[slug]/page.tsx +118 -0
  126. package/templates/storefront-restaurant/app/error.tsx +60 -0
  127. package/templates/storefront-restaurant/app/faq/page.tsx +46 -0
  128. package/templates/storefront-restaurant/app/globals.css +44 -0
  129. package/templates/storefront-restaurant/app/layout.tsx +80 -0
  130. package/templates/storefront-restaurant/app/llms.txt/route.ts +94 -0
  131. package/templates/storefront-restaurant/app/not-found.tsx +39 -0
  132. package/templates/storefront-restaurant/app/orders/[id]/page.tsx +21 -0
  133. package/templates/storefront-restaurant/app/page.tsx +97 -0
  134. package/templates/storefront-restaurant/app/privacy/page.tsx +44 -0
  135. package/templates/storefront-restaurant/app/robots.ts +18 -0
  136. package/templates/storefront-restaurant/app/shop/page.tsx +31 -0
  137. package/templates/storefront-restaurant/app/shop/shop-client.tsx +27 -0
  138. package/templates/storefront-restaurant/app/sitemap.ts +62 -0
  139. package/templates/storefront-restaurant/app/terms/page.tsx +44 -0
  140. package/templates/storefront-restaurant/components/cart-pill.tsx +32 -0
  141. package/templates/storefront-restaurant/components/category-grid.tsx +28 -0
  142. package/templates/storefront-restaurant/components/collection-strip.tsx +45 -0
  143. package/templates/storefront-restaurant/components/footer.tsx +148 -0
  144. package/templates/storefront-restaurant/components/header.tsx +43 -0
  145. package/templates/storefront-restaurant/components/hero.tsx +25 -0
  146. package/templates/storefront-restaurant/components/nav-link.tsx +20 -0
  147. package/templates/storefront-restaurant/components/product-modal.tsx +105 -0
  148. package/templates/storefront-restaurant/components/providers.tsx +31 -0
  149. package/templates/storefront-restaurant/components/store-product-card.tsx +83 -0
  150. package/templates/storefront-restaurant/lib/brand.ts +287 -0
  151. package/templates/storefront-restaurant/lib/cart.ts +27 -0
  152. package/templates/storefront-restaurant/next.config.ts +40 -0
  153. package/templates/storefront-restaurant/package.json +28 -0
  154. package/templates/storefront-restaurant/postcss.config.mjs +7 -0
  155. package/templates/storefront-restaurant/tsconfig.json +23 -0
  156. package/templates/storefront-retail/.env.example +5 -0
  157. package/templates/storefront-retail/AGENTS.md +64 -0
  158. package/templates/storefront-retail/app/about/page.tsx +24 -54
  159. package/templates/storefront-retail/app/categories/[slug]/page.tsx +50 -37
  160. package/templates/storefront-retail/app/collections/[slug]/page.tsx +50 -37
  161. package/templates/storefront-retail/app/error.tsx +61 -0
  162. package/templates/storefront-retail/app/faq/page.tsx +11 -92
  163. package/templates/storefront-retail/app/layout.tsx +37 -8
  164. package/templates/storefront-retail/app/llms.txt/route.ts +94 -0
  165. package/templates/storefront-retail/app/not-found.tsx +39 -0
  166. package/templates/storefront-retail/app/page.tsx +111 -26
  167. package/templates/storefront-retail/app/privacy/page.tsx +24 -81
  168. package/templates/storefront-retail/app/products/[slug]/page.tsx +165 -0
  169. package/templates/storefront-retail/app/products/[slug]/product-detail.tsx +71 -0
  170. package/templates/storefront-retail/app/robots.ts +18 -0
  171. package/templates/storefront-retail/app/shop/page.tsx +36 -3
  172. package/templates/storefront-retail/app/shop/shop-client.tsx +6 -1
  173. package/templates/storefront-retail/app/sitemap.ts +59 -0
  174. package/templates/storefront-retail/app/terms/page.tsx +24 -97
  175. package/templates/storefront-retail/components/brand-marquee.tsx +27 -0
  176. package/templates/storefront-retail/components/category-tiles.tsx +104 -0
  177. package/templates/storefront-retail/components/feature-hero.tsx +84 -0
  178. package/templates/storefront-retail/components/footer.tsx +85 -120
  179. package/templates/storefront-retail/components/header.tsx +10 -12
  180. package/templates/storefront-retail/components/newsletter.tsx +50 -0
  181. package/templates/storefront-retail/components/promo-banner.tsx +41 -0
  182. package/templates/storefront-retail/components/section-heading.tsx +37 -0
  183. package/templates/storefront-retail/components/store-product-card.tsx +7 -7
  184. package/templates/storefront-retail/components/trade-in-cta.tsx +54 -0
  185. package/templates/storefront-retail/components/trust-bar.tsx +66 -0
  186. package/templates/storefront-retail/lib/brand.ts +567 -0
  187. package/templates/storefront-services/.env.example +16 -0
  188. package/templates/storefront-services/AGENTS.md +41 -0
  189. package/templates/storefront-services/README.md +73 -0
  190. package/templates/storefront-services/app/about/page.tsx +38 -0
  191. package/templates/storefront-services/app/cart/page.tsx +9 -0
  192. package/templates/storefront-services/app/categories/[slug]/listing-client.tsx +19 -0
  193. package/templates/storefront-services/app/categories/[slug]/page.tsx +118 -0
  194. package/templates/storefront-services/app/checkout/page.tsx +17 -0
  195. package/templates/storefront-services/app/collections/[slug]/listing-client.tsx +20 -0
  196. package/templates/storefront-services/app/collections/[slug]/page.tsx +118 -0
  197. package/templates/storefront-services/app/error.tsx +60 -0
  198. package/templates/storefront-services/app/faq/page.tsx +46 -0
  199. package/templates/storefront-services/app/globals.css +45 -0
  200. package/templates/storefront-services/app/layout.tsx +80 -0
  201. package/templates/storefront-services/app/llms.txt/route.ts +94 -0
  202. package/templates/storefront-services/app/not-found.tsx +39 -0
  203. package/templates/storefront-services/app/orders/[id]/page.tsx +21 -0
  204. package/templates/storefront-services/app/page.tsx +97 -0
  205. package/templates/storefront-services/app/privacy/page.tsx +44 -0
  206. package/templates/storefront-services/app/robots.ts +18 -0
  207. package/templates/storefront-services/app/shop/page.tsx +31 -0
  208. package/templates/storefront-services/app/shop/shop-client.tsx +27 -0
  209. package/templates/storefront-services/app/sitemap.ts +62 -0
  210. package/templates/storefront-services/app/terms/page.tsx +44 -0
  211. package/templates/storefront-services/components/cart-pill.tsx +32 -0
  212. package/templates/storefront-services/components/category-grid.tsx +28 -0
  213. package/templates/storefront-services/components/collection-strip.tsx +45 -0
  214. package/templates/storefront-services/components/footer.tsx +148 -0
  215. package/templates/storefront-services/components/header.tsx +43 -0
  216. package/templates/storefront-services/components/hero.tsx +25 -0
  217. package/templates/storefront-services/components/nav-link.tsx +20 -0
  218. package/templates/storefront-services/components/product-modal.tsx +105 -0
  219. package/templates/storefront-services/components/providers.tsx +31 -0
  220. package/templates/storefront-services/components/store-product-card.tsx +83 -0
  221. package/templates/storefront-services/lib/brand.ts +303 -0
  222. package/templates/storefront-services/lib/cart.ts +27 -0
  223. package/templates/storefront-services/next.config.ts +40 -0
  224. package/templates/storefront-services/package.json +28 -0
  225. package/templates/storefront-services/postcss.config.mjs +7 -0
  226. package/templates/storefront-services/tsconfig.json +23 -0
  227. /package/templates/{storefront-retail → storefront-grocery}/components/product-modal.tsx +0 -0
@@ -0,0 +1,287 @@
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
+ footer: {
62
+ blurb: string; sitemap: BrandSitemapSection[];
63
+ poweredBy?: { label: string; href: string };
64
+ };
65
+ llms: { summary: string };
66
+ mock: { seed: string; businessId: string };
67
+ }
68
+
69
+ export const brand: Brand = {
70
+ name: "Mama's Kitchen",
71
+ shortName: "Mama's",
72
+ microTag: "EAST LEGON · ACCRA",
73
+ description:
74
+ "West African plates, prepared by our matriarchs, served family-style in East Legon. Dine in, take out, deliver.",
75
+ schemaType: "Restaurant",
76
+
77
+ currency: "GHS",
78
+ locale: "en_GH",
79
+
80
+ contact: {
81
+ address: "21 Adjiringanor Road, East Legon, Accra",
82
+ streetAddress: "21 Adjiringanor Road, East Legon",
83
+ city: "Accra",
84
+ countryCode: "GH",
85
+ phone: "+233 244 200 100",
86
+ phoneTel: "+233244200100",
87
+ email: "hello@mamaskitchen.test",
88
+ privacyEmail: "privacy@mamaskitchen.test",
89
+ hours: "Tue–Sun · 12pm–10pm · brunch Sat–Sun, 10am",
90
+ },
91
+
92
+ socials: [
93
+ { label: "Instagram", href: "https://instagram.com/mamaskitchen", icon: "instagram" },
94
+ { label: "TikTok", href: "https://tiktok.com/@mamaskitchen", icon: "tiktok" },
95
+ { label: "Facebook", href: "https://facebook.com/mamaskitchen", icon: "facebook" },
96
+ { label: "WhatsApp", href: "https://wa.me/233244200100", icon: "whatsapp" },
97
+ ],
98
+
99
+ header: {
100
+ nav: [
101
+ { label: "Menu", href: "/shop" },
102
+ { label: "Reservations", href: "/categories/reservations" },
103
+ { label: "About", href: "/about" },
104
+ { label: "FAQ", href: "/faq" },
105
+ ],
106
+ },
107
+
108
+ hero: {
109
+ badge: "Tonight's special · Banku & Tilapia",
110
+ title: "Family recipes,\nfamily tables.",
111
+ subtitle:
112
+ "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.",
113
+ primaryCtaLabel: "Reserve a table",
114
+ secondaryCtaLabel: "See the menu",
115
+ secondaryCtaHref: "/shop",
116
+ },
117
+
118
+ trustItems: [
119
+ { label: "Reservations", value: "Same-week tables", description: "Bookings up to 21 days out.", iconKey: "verified" },
120
+ { label: "Delivery", value: "60-minute, in Accra", description: "Order before 9pm Tue–Sun.", iconKey: "delivery" },
121
+ { label: "Family-style", value: "Tables for 2 to 20", description: "Long table for 12 reservable.", iconKey: "support" },
122
+ { label: "Specials", value: "Daily off-menu", description: "Posted on Instagram by 11am.", iconKey: "warranty" },
123
+ ],
124
+
125
+ promo: {
126
+ badge: "Sunday only",
127
+ title: "The Long Lunch — three courses, one long table.",
128
+ 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.",
129
+ ctaLabel: "Book the Long Lunch",
130
+ ctaHref: "/shop",
131
+ },
132
+
133
+ newsletter: {
134
+ eyebrow: "From the kitchen",
135
+ title: "Tonight's specials, in your inbox.",
136
+ body: "Daily specials, off-menu plates, and the events worth knowing about. One email a day, 5 days a week. Unsubscribe in one click.",
137
+ placeholder: "you@email.com",
138
+ submitLabel: "Subscribe",
139
+ successLabel: "Subscribed ✓",
140
+ },
141
+
142
+ about: {
143
+ eyebrow: "About Mama's",
144
+ title: "Family recipes,\nfamily tables.",
145
+ paragraphs: [
146
+ "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.",
147
+ "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.",
148
+ "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.",
149
+ ],
150
+ sections: [
151
+ {
152
+ heading: "The long table",
153
+ 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.",
154
+ },
155
+ {
156
+ heading: "Private events",
157
+ 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.",
158
+ },
159
+ {
160
+ heading: "Visit",
161
+ body: "21 Adjiringanor Road, East Legon · Tue–Sun, 12pm–10pm. Brunch Sat–Sun from 10am.",
162
+ },
163
+ ],
164
+ },
165
+
166
+ faq: {
167
+ eyebrow: "Q&A",
168
+ title: "Things people ask.",
169
+ sections: [
170
+ {
171
+ title: "Reservations & seating",
172
+ items: [
173
+ { 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." },
174
+ { 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." },
175
+ { 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." },
176
+ { 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+." },
177
+ ],
178
+ },
179
+ {
180
+ title: "Menu & dietary",
181
+ items: [
182
+ { 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." },
183
+ { q: "How spicy is your food?", a: "Honestly: medium-hot to hot. Tell your server how you want it; the kitchen adjusts." },
184
+ { 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." },
185
+ ],
186
+ },
187
+ {
188
+ title: "Delivery & takeout",
189
+ items: [
190
+ { q: "Where do you deliver?", a: "Greater Accra, between 12pm and 9pm Tue–Sun. Free over GH₵250." },
191
+ { 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." },
192
+ { q: "Can I order ahead for pickup?", a: "Yes. Order online, choose a pickup time, and skip the queue." },
193
+ ],
194
+ },
195
+ ],
196
+ contactPrompt: "Other questions? Email",
197
+ contactEmail: "hello@mamaskitchen.test",
198
+ },
199
+
200
+ terms: {
201
+ eyebrow: "Terms of service",
202
+ title: "Terms of Service",
203
+ lastUpdated: "1 May 2026",
204
+ sections: [
205
+ { 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." },
206
+ { heading: "2. Reservations", body: "Tables held with name + phone. Card guarantee required for parties of 6+." },
207
+ { 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." },
208
+ { heading: "4. Pricing & payment", body: "Prices in GH₵ include VAT and 10% service. Card, mobile money, or cash. Tipping appreciated, never required." },
209
+ { heading: "5. Delivery", body: "60-minute window from confirmation. We're not liable for delays caused by traffic, weather, or events outside our control." },
210
+ { heading: "6. Allergens", body: "Our kitchen handles peanuts, shellfish, dairy, gluten. Cross-contamination is possible." },
211
+ { 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." },
212
+ { heading: "8. Governing law", body: "These terms are governed by the laws of Ghana." },
213
+ ],
214
+ },
215
+
216
+ privacy: {
217
+ eyebrow: "Privacy",
218
+ title: "Privacy Policy",
219
+ lastUpdated: "1 May 2026",
220
+ sections: [
221
+ { 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." },
222
+ { heading: "How we use it", body: { intro: "We use your data to:", bullets: [
223
+ "Confirm and seat reservations.",
224
+ "Fulfil and deliver orders.",
225
+ "Send reminders by SMS.",
226
+ "Send specials (only if you opted in).",
227
+ ] } },
228
+ { heading: "Allergy notes", body: "Treated as sensitive — only the kitchen team handling your booking accesses these notes. Never shared." },
229
+ { heading: "Who we share it with", body: "Payment processors, our SMS provider, and the rider service for delivery. No one else." },
230
+ { 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." },
231
+ { heading: "Retention", body: "Order records: 7 years (tax). Marketing list: until you unsubscribe." },
232
+ ],
233
+ },
234
+
235
+ footer: {
236
+ blurb:
237
+ "West African plates, prepared by our matriarchs, served family-style in East Legon. Dine in, take out, deliver.",
238
+ sitemap: [
239
+ {
240
+ title: "Menu",
241
+ links: [
242
+ { label: "Full menu", href: "/shop" },
243
+ { label: "Brunch", href: "/categories/brunch" },
244
+ { label: "Mains", href: "/categories/mains" },
245
+ { label: "Sides", href: "/categories/sides" },
246
+ { label: "Drinks", href: "/categories/drinks" },
247
+ ],
248
+ },
249
+ {
250
+ title: "Visit",
251
+ links: [
252
+ { label: "Reservations", href: "/categories/reservations" },
253
+ { label: "The long table", href: "/about" },
254
+ { label: "Private events", href: "mailto:events@mamaskitchen.test" },
255
+ { label: "Hours & location", href: "/about" },
256
+ ],
257
+ },
258
+ {
259
+ title: "Help",
260
+ links: [
261
+ { label: "Contact", href: "mailto:hello@mamaskitchen.test" },
262
+ { label: "FAQ", href: "/faq" },
263
+ { label: "Allergens", href: "/faq" },
264
+ { label: "Delivery", href: "/faq" },
265
+ ],
266
+ },
267
+ {
268
+ title: "Legal",
269
+ links: [
270
+ { label: "Terms of Service", href: "/terms" },
271
+ { label: "Privacy Policy", href: "/privacy" },
272
+ ],
273
+ },
274
+ ],
275
+ poweredBy: { label: "Cimplify", href: "https://app.cimplify.io" },
276
+ },
277
+
278
+ llms: {
279
+ summary:
280
+ "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.",
281
+ },
282
+
283
+ mock: {
284
+ seed: "restaurant",
285
+ businessId: "bus_mamas_kitchen",
286
+ },
287
+ };
@@ -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>.
@@ -1,70 +1,40 @@
1
1
  import type { Metadata } from "next";
2
+ import { brand } from "@/lib/brand";
2
3
 
3
4
  export const metadata: Metadata = {
4
- title: "About — Currents Electronics",
5
- description:
6
- "Authorised dealer for Apple, Samsung, Sony, Bose. Serving Accra and West Africa with same-day delivery and a two-year warranty since 2017.",
5
+ title: `About — ${brand.name}`,
6
+ description: brand.description,
7
7
  };
8
8
 
9
9
  export default function AboutPage() {
10
+ const a = brand.about;
11
+ // Title supports a single \n for a hard line break.
12
+ const titleParts = a.title.split("\n");
10
13
  return (
11
14
  <article className="max-w-3xl mx-auto px-8 py-16">
12
15
  <p className="text-[11px] font-mono uppercase tracking-[0.16em] text-primary mb-2">
13
- About Currents
16
+ {a.eyebrow}
14
17
  </p>
15
18
  <h1 className="text-[clamp(2.25rem,5vw,3.5rem)] font-bold mb-6 -tracking-[0.025em] leading-tight">
16
- Tech that lasts.<br />Service that doesn&apos;t flake.
19
+ {titleParts.map((line, i) => (
20
+ <span key={i}>
21
+ {line}
22
+ {i < titleParts.length - 1 && <br />}
23
+ </span>
24
+ ))}
17
25
  </h1>
18
26
  <div className="prose prose-lg max-w-none space-y-5 text-foreground/90 leading-relaxed">
19
- <p>
20
- We started Currents in 2017 because the best phones, laptops, and
21
- headphones were either three months out of stock in Accra, or
22
- obviously fake. Either way, you ended up calling someone&apos;s
23
- cousin in London. That&apos;s a bad way to buy a thousand-dollar
24
- device.
25
- </p>
26
- <p>
27
- Today we&apos;re an authorised dealer for Apple, Samsung, Sony, Bose,
28
- Logitech, and Anker. Every product is sourced direct from the
29
- manufacturer or their certified distributor — no parallel imports,
30
- no refurbished-as-new, no &quot;dual SIM Asia spec&quot; on a US iPhone.
31
- What you order is what we open in front of you on delivery.
32
- </p>
33
- <p>
34
- We back everything with a two-year warranty (one year manufacturer +
35
- one year Currents), free same-day Accra delivery, and a 14-day
36
- no-questions-asked return on anything sealed.
37
- </p>
38
-
39
- <h2 className="text-2xl font-semibold mt-10 mb-3 -tracking-[0.02em]">
40
- Trade-in
41
- </h2>
42
- <p>
43
- Got an iPhone, Galaxy, or MacBook you no longer use? Bring it in or
44
- ship it to us — we&apos;ll quote you within 48 hours and credit the
45
- value toward your next purchase. We work with refurbishers across the
46
- continent so your old kit stays in service for years more.
47
- </p>
48
-
49
- <h2 className="text-2xl font-semibold mt-10 mb-3 -tracking-[0.02em]">
50
- Business sales
51
- </h2>
52
- <p>
53
- Equipping a team or kitting out a co-working space? We do volume
54
- quotes, delivery scheduling, asset tagging, and on-site setup. Email{" "}
55
- <a
56
- href="mailto:business@currentselectronics.test"
57
- className="text-primary font-semibold hover:underline"
58
- >
59
- business@currentselectronics.test
60
- </a>
61
- .
62
- </p>
63
-
64
- <h2 className="text-2xl font-semibold mt-10 mb-3 -tracking-[0.02em]">
65
- Visit
66
- </h2>
67
- <p>Atomic Junction, East Legon, Accra · Mon–Sat, 9am–8pm.</p>
27
+ {a.paragraphs.map((p, i) => (
28
+ <p key={i}>{p}</p>
29
+ ))}
30
+ {a.sections.map((s) => (
31
+ <div key={s.heading}>
32
+ <h2 className="text-2xl font-semibold mt-10 mb-3 -tracking-[0.02em]">
33
+ {s.heading}
34
+ </h2>
35
+ <p>{s.body}</p>
36
+ </div>
37
+ ))}
68
38
  </div>
69
39
  </article>
70
40
  );