@vibes.diy/prompts 14.3.203 → 14.3.205

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 (256) hide show
  1. package/index.d.ts +0 -1
  2. package/index.js +0 -1
  3. package/index.js.map +1 -1
  4. package/llms/access.md +4 -4
  5. package/llms/backend.md +15 -1
  6. package/llms/blockly.md +2 -2
  7. package/llms/bluesky.md +1 -1
  8. package/llms/board-games.md +3 -3
  9. package/llms/calendar.md +1 -1
  10. package/llms/callai.md +4 -4
  11. package/llms/connections.md +1 -1
  12. package/llms/create-vibe.md +3 -3
  13. package/llms/fireproof.md +7 -7
  14. package/llms/github.md +7 -2
  15. package/llms/image-gen.md +2 -2
  16. package/llms/index.d.ts +28 -28
  17. package/llms/index.js +84 -84
  18. package/llms/index.js.map +1 -1
  19. package/llms/maps.md +1 -1
  20. package/llms/match-style.md +1 -1
  21. package/llms/motion.md +7 -7
  22. package/llms/p5.md +1 -1
  23. package/llms/physics.md +2 -2
  24. package/llms/reskin.md +21 -21
  25. package/llms/richtext.md +5 -5
  26. package/llms/spotify.md +1 -1
  27. package/llms/stripe-subscriptions.js +1 -1
  28. package/llms/stripe-subscriptions.js.map +1 -1
  29. package/llms/stripe-subscriptions.md +179 -35
  30. package/llms/stripe.js +5 -1
  31. package/llms/stripe.js.map +1 -1
  32. package/llms/stripe.md +247 -58
  33. package/llms/strudel.md +3 -3
  34. package/llms/three-js.md +4 -4
  35. package/llms/touch-games.js +1 -1
  36. package/llms/touch-games.js.map +1 -1
  37. package/llms/touch-games.md +3 -3
  38. package/llms/ui-blog.d.ts +2 -0
  39. package/llms/ui-blog.js +7 -0
  40. package/llms/ui-blog.js.map +1 -0
  41. package/llms/{pouf-blog.md → ui-blog.md} +10 -10
  42. package/llms/ui-booking.d.ts +2 -0
  43. package/llms/ui-booking.js +7 -0
  44. package/llms/ui-booking.js.map +1 -0
  45. package/llms/{pouf-booking.md → ui-booking.md} +8 -8
  46. package/llms/ui-calendar.d.ts +2 -0
  47. package/llms/ui-calendar.js +7 -0
  48. package/llms/ui-calendar.js.map +1 -0
  49. package/llms/{pouf-calendar.md → ui-calendar.md} +5 -5
  50. package/llms/ui-chat.d.ts +2 -0
  51. package/llms/ui-chat.js +7 -0
  52. package/llms/ui-chat.js.map +1 -0
  53. package/llms/{pouf-chat.md → ui-chat.md} +4 -4
  54. package/llms/ui-contact.d.ts +2 -0
  55. package/llms/ui-contact.js +7 -0
  56. package/llms/ui-contact.js.map +1 -0
  57. package/llms/{pouf-contact.md → ui-contact.md} +7 -7
  58. package/llms/ui-course.d.ts +2 -0
  59. package/llms/ui-course.js +7 -0
  60. package/llms/ui-course.js.map +1 -0
  61. package/llms/{pouf-course.md → ui-course.md} +9 -9
  62. package/llms/ui-crm.d.ts +2 -0
  63. package/llms/ui-crm.js +7 -0
  64. package/llms/ui-crm.js.map +1 -0
  65. package/llms/{pouf-crm.md → ui-crm.md} +5 -5
  66. package/llms/ui-dashboard.d.ts +2 -0
  67. package/llms/ui-dashboard.js +7 -0
  68. package/llms/ui-dashboard.js.map +1 -0
  69. package/llms/{pouf-dashboard.md → ui-dashboard.md} +7 -7
  70. package/llms/ui-editorial.d.ts +2 -0
  71. package/llms/ui-editorial.js +7 -0
  72. package/llms/ui-editorial.js.map +1 -0
  73. package/llms/{pouf-editorial.md → ui-editorial.md} +5 -5
  74. package/llms/ui-event.d.ts +2 -0
  75. package/llms/ui-event.js +7 -0
  76. package/llms/ui-event.js.map +1 -0
  77. package/llms/{pouf-event.md → ui-event.md} +5 -5
  78. package/llms/ui-feed.d.ts +2 -0
  79. package/llms/ui-feed.js +7 -0
  80. package/llms/ui-feed.js.map +1 -0
  81. package/llms/{pouf-feed.md → ui-feed.md} +5 -5
  82. package/llms/ui-game.d.ts +2 -0
  83. package/llms/ui-game.js +7 -0
  84. package/llms/ui-game.js.map +1 -0
  85. package/llms/{pouf-game.md → ui-game.md} +6 -6
  86. package/llms/ui-inbox.d.ts +2 -0
  87. package/llms/ui-inbox.js +7 -0
  88. package/llms/ui-inbox.js.map +1 -0
  89. package/llms/{pouf-inbox.md → ui-inbox.md} +5 -5
  90. package/llms/ui-inventory.d.ts +2 -0
  91. package/llms/ui-inventory.js +7 -0
  92. package/llms/ui-inventory.js.map +1 -0
  93. package/llms/{pouf-inventory.md → ui-inventory.md} +5 -5
  94. package/llms/ui-kanban.d.ts +2 -0
  95. package/llms/ui-kanban.js +7 -0
  96. package/llms/ui-kanban.js.map +1 -0
  97. package/llms/{pouf-kanban.md → ui-kanban.md} +5 -5
  98. package/llms/ui-landing.d.ts +2 -0
  99. package/llms/ui-landing.js +7 -0
  100. package/llms/ui-landing.js.map +1 -0
  101. package/llms/{pouf-landing.md → ui-landing.md} +6 -6
  102. package/llms/ui-login.d.ts +2 -0
  103. package/llms/ui-login.js +7 -0
  104. package/llms/ui-login.js.map +1 -0
  105. package/llms/{pouf-login.md → ui-login.md} +7 -7
  106. package/llms/ui-music.d.ts +2 -0
  107. package/llms/ui-music.js +7 -0
  108. package/llms/ui-music.js.map +1 -0
  109. package/llms/{pouf-music.md → ui-music.md} +6 -6
  110. package/llms/ui-onboarding.d.ts +2 -0
  111. package/llms/ui-onboarding.js +7 -0
  112. package/llms/ui-onboarding.js.map +1 -0
  113. package/llms/{pouf-onboarding.md → ui-onboarding.md} +5 -5
  114. package/llms/ui-pricing.d.ts +2 -0
  115. package/llms/ui-pricing.js +7 -0
  116. package/llms/ui-pricing.js.map +1 -0
  117. package/llms/{pouf-pricing.md → ui-pricing.md} +5 -5
  118. package/llms/ui-profile.d.ts +2 -0
  119. package/llms/ui-profile.js +7 -0
  120. package/llms/ui-profile.js.map +1 -0
  121. package/llms/{pouf-profile.md → ui-profile.md} +4 -4
  122. package/llms/ui-quiz.d.ts +2 -0
  123. package/llms/ui-quiz.js +7 -0
  124. package/llms/ui-quiz.js.map +1 -0
  125. package/llms/{pouf-quiz.md → ui-quiz.md} +6 -6
  126. package/llms/ui-settings.d.ts +2 -0
  127. package/llms/ui-settings.js +7 -0
  128. package/llms/ui-settings.js.map +1 -0
  129. package/llms/{pouf-settings.md → ui-settings.md} +5 -5
  130. package/llms/ui-storefront.d.ts +2 -0
  131. package/llms/ui-storefront.js +7 -0
  132. package/llms/ui-storefront.js.map +1 -0
  133. package/llms/ui-storefront.md +468 -0
  134. package/llms/ui-support.d.ts +2 -0
  135. package/llms/ui-support.js +7 -0
  136. package/llms/ui-support.js.map +1 -0
  137. package/llms/{pouf-support.md → ui-support.md} +5 -5
  138. package/llms/ui-testimonials.d.ts +2 -0
  139. package/llms/ui-testimonials.js +7 -0
  140. package/llms/ui-testimonials.js.map +1 -0
  141. package/llms/{pouf-testimonials.md → ui-testimonials.md} +6 -6
  142. package/llms/ui-todo.d.ts +2 -0
  143. package/llms/ui-todo.js +7 -0
  144. package/llms/ui-todo.js.map +1 -0
  145. package/llms/{pouf-todo.md → ui-todo.md} +5 -5
  146. package/llms/ui-weather.d.ts +2 -0
  147. package/llms/ui-weather.js +7 -0
  148. package/llms/ui-weather.js.map +1 -0
  149. package/llms/{pouf-weather.md → ui-weather.md} +5 -5
  150. package/llms/use-vibe.md +4 -4
  151. package/llms/use-viewer.md +5 -5
  152. package/llms/voxel.md +1 -1
  153. package/llms/web-audio.md +12 -12
  154. package/llms/worlds.md +3 -3
  155. package/llms/youtube.md +1 -1
  156. package/package.json +5 -5
  157. package/system-prompt-initial-instant.md +3 -3
  158. package/system-prompt-initial-oneshot.md +1 -1
  159. package/system-prompt-initial.md +1 -1
  160. package/system-prompt.md +4 -4
  161. package/themes/colorsets.js +7 -7
  162. package/themes/colorsets.js.map +1 -1
  163. package/themes/looks/pouf/brief.md +87 -87
  164. package/themes/looks/pouf/catalog.generated.d.ts +1 -1
  165. package/themes/looks/pouf/catalog.generated.js +17 -17
  166. package/themes/looks/pouf/catalog.generated.js.map +1 -1
  167. package/themes/looks/pouf/variety.js +4 -4
  168. package/themes/looks/pouf/variety.js.map +1 -1
  169. package/llms/pouf-blog.d.ts +0 -2
  170. package/llms/pouf-blog.js +0 -6
  171. package/llms/pouf-blog.js.map +0 -1
  172. package/llms/pouf-booking.d.ts +0 -2
  173. package/llms/pouf-booking.js +0 -6
  174. package/llms/pouf-booking.js.map +0 -1
  175. package/llms/pouf-calendar.d.ts +0 -2
  176. package/llms/pouf-calendar.js +0 -6
  177. package/llms/pouf-calendar.js.map +0 -1
  178. package/llms/pouf-chat.d.ts +0 -2
  179. package/llms/pouf-chat.js +0 -6
  180. package/llms/pouf-chat.js.map +0 -1
  181. package/llms/pouf-contact.d.ts +0 -2
  182. package/llms/pouf-contact.js +0 -6
  183. package/llms/pouf-contact.js.map +0 -1
  184. package/llms/pouf-course.d.ts +0 -2
  185. package/llms/pouf-course.js +0 -6
  186. package/llms/pouf-course.js.map +0 -1
  187. package/llms/pouf-crm.d.ts +0 -2
  188. package/llms/pouf-crm.js +0 -6
  189. package/llms/pouf-crm.js.map +0 -1
  190. package/llms/pouf-dashboard.d.ts +0 -2
  191. package/llms/pouf-dashboard.js +0 -6
  192. package/llms/pouf-dashboard.js.map +0 -1
  193. package/llms/pouf-editorial.d.ts +0 -2
  194. package/llms/pouf-editorial.js +0 -6
  195. package/llms/pouf-editorial.js.map +0 -1
  196. package/llms/pouf-event.d.ts +0 -2
  197. package/llms/pouf-event.js +0 -6
  198. package/llms/pouf-event.js.map +0 -1
  199. package/llms/pouf-feed.d.ts +0 -2
  200. package/llms/pouf-feed.js +0 -6
  201. package/llms/pouf-feed.js.map +0 -1
  202. package/llms/pouf-game.d.ts +0 -2
  203. package/llms/pouf-game.js +0 -6
  204. package/llms/pouf-game.js.map +0 -1
  205. package/llms/pouf-inbox.d.ts +0 -2
  206. package/llms/pouf-inbox.js +0 -6
  207. package/llms/pouf-inbox.js.map +0 -1
  208. package/llms/pouf-inventory.d.ts +0 -2
  209. package/llms/pouf-inventory.js +0 -6
  210. package/llms/pouf-inventory.js.map +0 -1
  211. package/llms/pouf-kanban.d.ts +0 -2
  212. package/llms/pouf-kanban.js +0 -6
  213. package/llms/pouf-kanban.js.map +0 -1
  214. package/llms/pouf-landing.d.ts +0 -2
  215. package/llms/pouf-landing.js +0 -6
  216. package/llms/pouf-landing.js.map +0 -1
  217. package/llms/pouf-login.d.ts +0 -2
  218. package/llms/pouf-login.js +0 -6
  219. package/llms/pouf-login.js.map +0 -1
  220. package/llms/pouf-music.d.ts +0 -2
  221. package/llms/pouf-music.js +0 -6
  222. package/llms/pouf-music.js.map +0 -1
  223. package/llms/pouf-onboarding.d.ts +0 -2
  224. package/llms/pouf-onboarding.js +0 -6
  225. package/llms/pouf-onboarding.js.map +0 -1
  226. package/llms/pouf-pricing.d.ts +0 -2
  227. package/llms/pouf-pricing.js +0 -6
  228. package/llms/pouf-pricing.js.map +0 -1
  229. package/llms/pouf-profile.d.ts +0 -2
  230. package/llms/pouf-profile.js +0 -6
  231. package/llms/pouf-profile.js.map +0 -1
  232. package/llms/pouf-quiz.d.ts +0 -2
  233. package/llms/pouf-quiz.js +0 -6
  234. package/llms/pouf-quiz.js.map +0 -1
  235. package/llms/pouf-settings.d.ts +0 -2
  236. package/llms/pouf-settings.js +0 -6
  237. package/llms/pouf-settings.js.map +0 -1
  238. package/llms/pouf-storefront.d.ts +0 -2
  239. package/llms/pouf-storefront.js +0 -6
  240. package/llms/pouf-storefront.js.map +0 -1
  241. package/llms/pouf-storefront.md +0 -293
  242. package/llms/pouf-support.d.ts +0 -2
  243. package/llms/pouf-support.js +0 -6
  244. package/llms/pouf-support.js.map +0 -1
  245. package/llms/pouf-testimonials.d.ts +0 -2
  246. package/llms/pouf-testimonials.js +0 -6
  247. package/llms/pouf-testimonials.js.map +0 -1
  248. package/llms/pouf-todo.d.ts +0 -2
  249. package/llms/pouf-todo.js +0 -6
  250. package/llms/pouf-todo.js.map +0 -1
  251. package/llms/pouf-weather.d.ts +0 -2
  252. package/llms/pouf-weather.js +0 -6
  253. package/llms/pouf-weather.js.map +0 -1
  254. package/look-restyle.d.ts +0 -49
  255. package/look-restyle.js +0 -199
  256. package/look-restyle.js.map +0 -1
@@ -1,293 +0,0 @@
1
- # Pouf Storefront
2
-
3
- A small shop: product cards to browse, a category filter and a search, a bag that adds things up, and a checkout that places the order. It fits a potter's ceramics, a bakery's preorders, a club's merch table or a school fair's stall. Reach for it whenever the app's core is a short catalogue that people pick from and then order. The catalogue stays inline in the code, and the bag lives in the page while someone shops. Each placed order persists as its own document, so the shop can see what to make and the buyer can see what they ordered. It records orders only; taking payment is a separate integration this block does not pretend to do.
4
-
5
- Built from @vibes.diy/pouf components; persisted state lives in Fireproof. Every write surface is gated on `useVibe(dbName).can`.
6
-
7
- ## The block
8
-
9
- One view with one job: fill the bag and place the order. A `Navbar` carries the brand and a quiet bag button with a live count, and the `Heading` puts an `orange` `Highlight` on one word beside a muted line. A `Segmented` category filter (`tone="info"`) and a search `Input` in a `Field` sit above a `Grid cols="sidebar"`: on the main side a two-column grid of product `Card`s, each with a decorative `orange` `Blob`, an `info` `Badge` for "New" or "Bestseller", the price in numeric `Text` and a quiet `Add to bag` (an `Empty` stands in when nothing matches); on the side the bag's `Card`, one line per product with its total and `IconButton`s to take one away or add one, then the subtotal, shipping and total. `Place order` is the view's one lead; it shows `loading` while the write lands, and the bag empties only after it does. An order is one document holding a snapshot of each line's name, price and quantity, the totals and the buyer's handle, so a later price change never rewrites an order already placed; the person's own orders list under the bag, each with a `Badge` for its status (`info` received, `warn` ready to collect, `up` collected). Checkout waits on its `can` verdict from `useVibe("shop")`: a `Skeleton` inside an `aria-busy` wrapper while it resolves, a sentence in the app's own words when ordering is closed, and for a visitor who has not signed in a `Sign in to place your order` lead wired to `useViewer().requestLogin()`, with the bag they filled kept in place. Sign-in is required here, unlike a local-first note, because a signed-out write stays on the device until sign-in: an order placed that way would never reach the shop.
10
-
11
- ### `App.jsx`
12
- ```jsx
13
- import React, { useState } from "react";
14
- import { useFireproof } from "use-fireproof";
15
- import { useViewer, useVibe } from "use-vibes";
16
- import {
17
- Badge,
18
- Blob,
19
- Button,
20
- Card,
21
- Empty,
22
- Eyebrow,
23
- Field,
24
- Grid,
25
- Heading,
26
- Highlight,
27
- Icon,
28
- IconButton,
29
- Input,
30
- Navbar,
31
- Row,
32
- Segmented,
33
- Skeleton,
34
- Spacer,
35
- Stack,
36
- Text,
37
- } from "@vibes.diy/pouf";
38
- import { Separator, Toaster, toast } from "@vibes.diy/pouf/interactive";
39
-
40
- const PRODUCTS = [
41
- { id: "mug", name: "Speckled mug", blurb: "Holds a generous coffee, glazed oatmeal.", price: 28, category: "table", icon: "drop", badge: "Bestseller" },
42
- { id: "bowl", name: "Nesting bowls", blurb: "A set of three for salads and snacks.", price: 64, category: "table", icon: "home" },
43
- { id: "vase", name: "Bud vase", blurb: "A small home for a few stems.", price: 36, category: "home", icon: "sparkle", badge: "New" },
44
- { id: "planter", name: "Hanging planter", blurb: "Thrown stoneware with a jute cord.", price: 48, category: "home", icon: "sun" },
45
- { id: "dish", name: "Ring dish", blurb: "A shallow dish for keys and rings.", price: 18, category: "gifts", icon: "heart" },
46
- { id: "card", name: "Gift card", blurb: "Let them pick their own favourite.", price: 50, category: "gifts", icon: "tag" },
47
- ];
48
- const CATEGORIES = [
49
- { value: "all", label: "All" },
50
- { value: "table", label: "Table" },
51
- { value: "home", label: "Home" },
52
- { value: "gifts", label: "Gifts" },
53
- ];
54
- const MONEY = new Intl.NumberFormat(undefined, { style: "currency", currency: "USD" });
55
- const FREE_SHIPPING = 100;
56
- const ORDER_STATUS = {
57
- received: { label: "Received", tone: "info" },
58
- ready: { label: "Ready to collect", tone: "warn" },
59
- collected: { label: "Collected", tone: "up" },
60
- };
61
- const plural = (n, one, many) => (n === 1 ? `1 ${one}` : `${n} ${many}`);
62
-
63
- export default function App() {
64
- const { database, useLiveQuery } = useFireproof("shop");
65
- const { docs: orders } = useLiveQuery("type", { key: "order" });
66
- const { can, me } = useVibe("shop");
67
- const { requestLogin } = useViewer();
68
-
69
- const [category, setCategory] = useState("all");
70
- const [query, setQuery] = useState("");
71
- // The bag is a draft: it lives in the page until the order is placed.
72
- const [bag, setBag] = useState({});
73
- const [placing, setPlacing] = useState(false);
74
-
75
- const needle = query.trim().toLowerCase();
76
- const visible = PRODUCTS.filter(
77
- (p) => (category === "all" || p.category === category) && (needle === "" || `${p.name} ${p.blurb}`.toLowerCase().includes(needle))
78
- );
79
- const lines = PRODUCTS.filter((p) => (bag[p.id] ?? 0) > 0).map((p) => ({ productId: p.id, name: p.name, price: p.price, qty: bag[p.id] }));
80
- const count = lines.reduce((n, l) => n + l.qty, 0);
81
- const subtotal = lines.reduce((n, l) => n + l.price * l.qty, 0);
82
- const shipping = subtotal === 0 || subtotal >= FREE_SHIPPING ? 0 : 8;
83
- const mine = me ? orders.filter((o) => o.authorHandle === me.userHandle).sort((a, b) => b.createdAt - a.createdAt) : [];
84
-
85
- // The verdict for the order placeOrder writes, carrying the same fields it stamps.
86
- const orderDraft = { type: "order", status: "received", authorHandle: me?.userHandle };
87
- const canOrder = can.create(orderDraft);
88
-
89
- function change(id, delta) {
90
- setBag((b) => {
91
- const qty = Math.max(0, (b[id] ?? 0) + delta);
92
- const { [id]: _gone, ...rest } = b;
93
- return qty === 0 ? rest : { ...rest, [id]: qty };
94
- });
95
- }
96
-
97
- async function placeOrder() {
98
- setPlacing(true);
99
- try {
100
- await database.put({ ...orderDraft, lines, subtotal, shipping, total: subtotal + shipping, createdAt: Date.now() });
101
- // Emptied only once the order lands, so a local failure keeps the bag.
102
- setBag({});
103
- toast.success("Order placed. We'll be in touch about collection.");
104
- } finally {
105
- setPlacing(false);
106
- }
107
- }
108
-
109
- let checkout;
110
- if (canOrder.pending)
111
- checkout = (
112
- <div aria-busy="true">
113
- <Skeleton variant="row" />
114
- </div>
115
- );
116
- else if (!me)
117
- checkout = (
118
- <Button block disabled={count === 0} onClick={requestLogin}>
119
- Sign in to place your order
120
- </Button>
121
- );
122
- else if (!canOrder.ok) checkout = <Text muted>The shop isn't taking orders right now. Check back soon.</Text>;
123
- else
124
- checkout = (
125
- <Button block disabled={count === 0} loading={placing} onClick={placeOrder}>
126
- Place order
127
- </Button>
128
- );
129
-
130
- return (
131
- <main className="mx-auto max-w-6xl px-4 py-6">
132
- <Stack gap={6}>
133
- <Navbar
134
- brand={
135
- <Row gap={2} wrap={false}>
136
- <Blob icon="sparkle" tone="orange" size="sm" />
137
- <Text>Kiln &amp; Co.</Text>
138
- </Row>
139
- }
140
- actions={
141
- <Button size="sm" variant="quiet" onClick={() => document.getElementById("bag")?.scrollIntoView({ block: "nearest" })}>
142
- <Icon name="cart" size="sm" />
143
- Bag ({count})
144
- </Button>
145
- }
146
- />
147
-
148
- <Stack gap={2}>
149
- <Eyebrow>Handmade in small batches</Eyebrow>
150
- <Heading level={1}>
151
- Pots for <Highlight tone="orange">everyday</Highlight> things.
152
- </Heading>
153
- <Text muted>Free shipping over {MONEY.format(FREE_SHIPPING)}. Every piece is thrown and glazed by hand.</Text>
154
- </Stack>
155
-
156
- <Row justify="between" align="top">
157
- <Segmented label="Category" tone="info" value={category} onChange={setCategory} options={CATEGORIES} />
158
- <Field label="Search the shop">
159
- {(id, describedBy) => <Input id={id} describedBy={describedBy} value={query} onChange={setQuery} inputMode="search" placeholder="Mug, vase…" />}
160
- </Field>
161
- </Row>
162
-
163
- <Grid cols="sidebar" gap={5}>
164
- {visible.length === 0 ? (
165
- <Empty icon="search" title="Nothing matches">
166
- Try another word or a different category.
167
- </Empty>
168
- ) : (
169
- <Grid cols={2} gap={4}>
170
- {visible.map((p) => (
171
- <Card key={p.id}>
172
- <Stack gap={3}>
173
- <Row justify="between" align="top">
174
- <Blob icon={p.icon} tone="orange" />
175
- {p.badge && <Badge tone="info">{p.badge}</Badge>}
176
- </Row>
177
- <Stack gap={1}>
178
- <Heading level={3}>{p.name}</Heading>
179
- <Text size="sm" muted>
180
- {p.blurb}
181
- </Text>
182
- </Stack>
183
- <Row justify="between">
184
- <Text num>{MONEY.format(p.price)}</Text>
185
- <Button size="sm" variant="quiet" onClick={() => change(p.id, 1)}>
186
- Add to bag
187
- </Button>
188
- </Row>
189
- </Stack>
190
- </Card>
191
- ))}
192
- </Grid>
193
- )}
194
-
195
- <div id="bag">
196
- <Stack gap={4}>
197
- <Card>
198
- <Stack gap={4}>
199
- <Row justify="between">
200
- <Heading level={2}>Your bag</Heading>
201
- <Text size="sm" muted>
202
- {plural(count, "item", "items")}
203
- </Text>
204
- </Row>
205
- {lines.length === 0 ? (
206
- <Empty icon="cart" title="Your bag is empty">
207
- Add something you love and it waits here.
208
- </Empty>
209
- ) : (
210
- <Stack gap={3}>
211
- {lines.map((l) => (
212
- <Row key={l.productId} gap={2} wrap={false}>
213
- <Stack gap={1}>
214
- <Text truncate>{l.name}</Text>
215
- <Text size="sm" muted num>
216
- {MONEY.format(l.price * l.qty)}
217
- </Text>
218
- </Stack>
219
- <Spacer />
220
- <IconButton size="sm" variant="quiet" icon={<Icon name="remove" size="sm" />} label={`One fewer ${l.name}`} onClick={() => change(l.productId, -1)} />
221
- <Text num>{l.qty}</Text>
222
- <IconButton size="sm" variant="quiet" icon={<Icon name="add" size="sm" />} label={`One more ${l.name}`} onClick={() => change(l.productId, 1)} />
223
- </Row>
224
- ))}
225
- <Separator />
226
- <Row justify="between">
227
- <Text size="sm" muted>
228
- Subtotal
229
- </Text>
230
- <Text size="sm" num>
231
- {MONEY.format(subtotal)}
232
- </Text>
233
- </Row>
234
- <Row justify="between">
235
- <Text size="sm" muted>
236
- Shipping
237
- </Text>
238
- <Text size="sm" num>
239
- {shipping === 0 ? "Free" : MONEY.format(shipping)}
240
- </Text>
241
- </Row>
242
- <Row justify="between">
243
- <Text>Total</Text>
244
- <Text num>{MONEY.format(subtotal + shipping)}</Text>
245
- </Row>
246
- </Stack>
247
- )}
248
- {checkout}
249
- <Text size="sm" muted>
250
- No payment is taken here. We confirm your order and arrange payment when you collect.
251
- </Text>
252
- </Stack>
253
- </Card>
254
-
255
- {mine.length > 0 && (
256
- <Card variant="tight">
257
- <Stack gap={3}>
258
- <Heading level={3}>Your orders</Heading>
259
- {mine.map((o) => (
260
- <Row key={o._id} justify="between" wrap={false}>
261
- <Stack gap={1}>
262
- <Text num>{MONEY.format(o.total)}</Text>
263
- <Text size="sm" muted>
264
- {new Date(o.createdAt).toLocaleDateString()} · {plural(o.lines.reduce((n, l) => n + l.qty, 0), "item", "items")}
265
- </Text>
266
- </Stack>
267
- <Badge tone={ORDER_STATUS[o.status]?.tone ?? "info"}>{ORDER_STATUS[o.status]?.label ?? "Received"}</Badge>
268
- </Row>
269
- ))}
270
- </Stack>
271
- </Card>
272
- )}
273
- </Stack>
274
- </div>
275
- </Grid>
276
- </Stack>
277
- <div className="pouf-toasts">
278
- <Toaster />
279
- </div>
280
- </main>
281
- );
282
- }
283
- ```
284
-
285
- ## Adapting
286
-
287
- - Swap `PRODUCTS` for the shop's own catalogue; a catalogue the owner edits in the app becomes `product` documents behind an owner-only `can.create`, read with `useLiveQuery("type", { key: "product" })`.
288
- - Keep the order a snapshot of names, prices and quantities: an order is a record of what was agreed, so a later price change must not touch it.
289
- - Orders hold who bought what, so `access.js` and the app's sharing should keep each order between its buyer and the shop: a buyer creates and reads their own, the shop reads them all and moves each through `ORDER_STATUS` behind `can.edit(order)`.
290
- - Real payment is the `stripe` skill, and it comes in only when the person asks to take money; until they do, keep the "no payment is taken here" line truthful, and offer `▸ [pay] Take card payments with Stripe` as the capability option.
291
- - A new write surface gets its own verdict: `can.create(draft)` with the fields the write stamps, `can.edit(doc)` or `can.delete(doc)` on the document it changes, always on `useVibe` of the database it writes.
292
-
293
- Adapted from 1st-Pouf (MIT) https://1st-pouf.worksonmy.dev/r/storefront.json
@@ -1,2 +0,0 @@
1
- import type { LlmConfig } from "./types.js";
2
- export declare const poufSupportConfig: LlmConfig;
@@ -1,6 +0,0 @@
1
- export const poufSupportConfig = {
2
- name: "pouf-support",
3
- label: "Pouf support block",
4
- description: "Support desk to log tickets, filter the queue, reply, resolve",
5
- };
6
- //# sourceMappingURL=pouf-support.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pouf-support.js","sourceRoot":"","sources":["../../jsr/llms/pouf-support.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,MAAM,iBAAiB,GAAc;IAC1C,IAAI,EAAE,cAAc;IACpB,KAAK,EAAE,oBAAoB;IAC3B,WAAW,EAAE,+DAA+D;CAC7E,CAAC"}
@@ -1,2 +0,0 @@
1
- import type { LlmConfig } from "./types.js";
2
- export declare const poufTestimonialsConfig: LlmConfig;
@@ -1,6 +0,0 @@
1
- export const poufTestimonialsConfig = {
2
- name: "pouf-testimonials",
3
- label: "Pouf testimonials block",
4
- description: "Testimonials section with category filter, story carousel and reported outcomes",
5
- };
6
- //# sourceMappingURL=pouf-testimonials.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pouf-testimonials.js","sourceRoot":"","sources":["../../jsr/llms/pouf-testimonials.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,sBAAsB,GAAc;IAC/C,IAAI,EAAE,mBAAmB;IACzB,KAAK,EAAE,yBAAyB;IAChC,WAAW,EAAE,iFAAiF;CAC/F,CAAC"}
@@ -1,2 +0,0 @@
1
- import type { LlmConfig } from "./types.js";
2
- export declare const poufTodoConfig: LlmConfig;
package/llms/pouf-todo.js DELETED
@@ -1,6 +0,0 @@
1
- export const poufTodoConfig = {
2
- name: "pouf-todo",
3
- label: "Pouf todo block",
4
- description: "Checklist UI to add, filter, tick off and clear tasks",
5
- };
6
- //# sourceMappingURL=pouf-todo.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pouf-todo.js","sourceRoot":"","sources":["../../jsr/llms/pouf-todo.ts"],"names":[],"mappings":"AASA,MAAM,CAAC,MAAM,cAAc,GAAc;IACvC,IAAI,EAAE,WAAW;IACjB,KAAK,EAAE,iBAAiB;IACxB,WAAW,EAAE,uDAAuD;CACrE,CAAC"}
@@ -1,2 +0,0 @@
1
- import type { LlmConfig } from "./types.js";
2
- export declare const poufWeatherConfig: LlmConfig;
@@ -1,6 +0,0 @@
1
- export const poufWeatherConfig = {
2
- name: "pouf-weather",
3
- label: "Pouf weather block",
4
- description: "Weather card with city and unit pickers, hourly strip and forecast",
5
- };
6
- //# sourceMappingURL=pouf-weather.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pouf-weather.js","sourceRoot":"","sources":["../../jsr/llms/pouf-weather.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,iBAAiB,GAAc;IAC1C,IAAI,EAAE,cAAc;IACpB,KAAK,EAAE,oBAAoB;IAC3B,WAAW,EAAE,oEAAoE;CAClF,CAAC"}
package/look-restyle.d.ts DELETED
@@ -1,49 +0,0 @@
1
- export interface LookDirection {
2
- readonly colorway: string;
3
- readonly mode: "light" | "dark";
4
- readonly headingFont: string;
5
- readonly bodyFont: string;
6
- }
7
- export declare const LOOK_DIRECTIONS: readonly LookDirection[];
8
- export interface LookColours {
9
- readonly background: string;
10
- readonly surface: string;
11
- readonly textPrimary: string;
12
- readonly textSecondary: string;
13
- readonly border: string;
14
- readonly primary: string;
15
- readonly accent: string;
16
- }
17
- export interface ResolvedLookDirection extends LookDirection {
18
- readonly name: string;
19
- readonly colours: LookColours;
20
- }
21
- export declare function resolveLookDirection(d: LookDirection): ResolvedLookDirection | undefined;
22
- export interface CurrentLook {
23
- readonly colorway?: string;
24
- readonly page?: string;
25
- readonly accent?: string;
26
- readonly font?: string;
27
- }
28
- export declare function pickLookDirections(current: CurrentLook, count?: number): readonly ResolvedLookDirection[];
29
- export declare function lookDirectionText(d: ResolvedLookDirection): string;
30
- export declare const LOOK_STYLE_DIRECTION_LEAD = "Style direction: ";
31
- export declare const LOOK_PAINT_NOT_TEXT = "The colour values and font names in the style direction are paint for you to use, never words: do not write them, or any word that is not already in the screenshot, anywhere in the image.";
32
- export declare function lookRestyleRenderPrompt(d: ResolvedLookDirection): string;
33
- export interface LookPickData {
34
- readonly colorway: string;
35
- readonly mode: "light" | "dark";
36
- readonly headingFont: string;
37
- readonly bodyFont: string;
38
- }
39
- export declare const LOOK_PICK_PREFIX = "Restyle only \u2014 ";
40
- export declare const LOOK_PICK_DATA_LEAD = "look: ";
41
- export declare function lookPickFileName(n: number): string;
42
- export declare function lookPickText(args: {
43
- readonly name: string;
44
- readonly data: LookPickData;
45
- }): string;
46
- export declare function parseLookPickText(text: string): LookPickData | undefined;
47
- export declare function isLookPickFileName(name: string): boolean;
48
- export declare function isLookPickMessage(content: readonly unknown[]): boolean;
49
- export declare const LOOK_RESTYLE_INSTRUCTION: string;
package/look-restyle.js DELETED
@@ -1,199 +0,0 @@
1
- import { exception2Result } from "@adviser/cement";
2
- import { type } from "arktype";
3
- import { lazyType } from "@vibes.diy/api-types/lazy-type";
4
- import { cssToHex } from "./themes/color-math.js";
5
- import { getVibeFont } from "./themes/fonts.js";
6
- import { generatePalette } from "./themes/palette-gen.js";
7
- import { oklabDistance } from "./themes/pouf-rooms.js";
8
- import { getStylePreset } from "./themes/style-presets.js";
9
- export const LOOK_DIRECTIONS = [
10
- { colorway: "atelier", mode: "light", headingFont: "playfair-display", bodyFont: "lora" },
11
- { colorway: "matrix", mode: "dark", headingFont: "vt323", bodyFont: "vt323" },
12
- { colorway: "neon", mode: "dark", headingFont: "rajdhani", bodyFont: "rajdhani" },
13
- { colorway: "brutalist", mode: "light", headingFont: "space-grotesk", bodyFont: "jetbrains-mono" },
14
- { colorway: "broadsheet", mode: "light", headingFont: "bebas-neue", bodyFont: "helvetica" },
15
- { colorway: "carbon", mode: "dark", headingFont: "inter", bodyFont: "jetbrains-mono" },
16
- { colorway: "scrapbook", mode: "light", headingFont: "source-serif-4", bodyFont: "dm-sans" },
17
- { colorway: "house", mode: "light", headingFont: "nunito", bodyFont: "nunito" },
18
- { colorway: "peach", mode: "light", headingFont: "nunito", bodyFont: "nunito" },
19
- { colorway: "lilac", mode: "light", headingFont: "nunito", bodyFont: "dm-sans" },
20
- { colorway: "rose", mode: "dark", headingFont: "playfair-display", bodyFont: "dm-sans" },
21
- { colorway: "mint", mode: "light", headingFont: "dm-sans", bodyFont: "dm-sans" },
22
- { colorway: "aqua", mode: "dark", headingFont: "space-grotesk", bodyFont: "inter" },
23
- { colorway: "celery", mode: "light", headingFont: "lora", bodyFont: "nunito" },
24
- { colorway: "periwinkle", mode: "light", headingFont: "inter", bodyFont: "inter" },
25
- ];
26
- export function resolveLookDirection(d) {
27
- const preset = getStylePreset(d.colorway);
28
- if (preset === undefined)
29
- return undefined;
30
- const palette = generatePalette(preset.palette);
31
- const c = d.mode === "dark" ? palette.dark : palette.light;
32
- const background = cssToHex(c.background);
33
- const surface = cssToHex(c.surface) ?? background;
34
- const textPrimary = cssToHex(c["text-primary"]);
35
- const textSecondary = cssToHex(c["text-secondary"]) ?? textPrimary;
36
- const border = cssToHex(c.border) ?? textSecondary;
37
- const primary = cssToHex(c.primary);
38
- const accent = cssToHex(c.accent) ?? primary;
39
- if (background === undefined ||
40
- surface === undefined ||
41
- textPrimary === undefined ||
42
- textSecondary === undefined ||
43
- border === undefined ||
44
- primary === undefined ||
45
- accent === undefined) {
46
- return undefined;
47
- }
48
- return {
49
- ...d,
50
- name: preset.label,
51
- colours: { background, surface, textPrimary, textSecondary, border, primary, accent },
52
- };
53
- }
54
- const WHITE = "#FFFFFF";
55
- function isDarkPage(hex) {
56
- return hex !== undefined && oklabDistance(hex, WHITE) > 0.5;
57
- }
58
- function distanceFromCurrent(d, current) {
59
- const page = current.page === undefined ? 0.5 : oklabDistance(d.colours.background, current.page);
60
- const accent = current.accent === undefined ? 0.25 : oklabDistance(d.colours.accent, current.accent);
61
- const font = current.font !== undefined && (d.headingFont === current.font || d.bodyFont === current.font) ? 0.15 : 0;
62
- return page * 2 + accent - font;
63
- }
64
- function distanceBetween(a, b) {
65
- return oklabDistance(a.colours.background, b.colours.background) + oklabDistance(a.colours.accent, b.colours.accent);
66
- }
67
- function nextPick(args) {
68
- let best = 0;
69
- let bestScore = -Infinity;
70
- args.left.forEach((d, i) => {
71
- const spread = args.picked.length === 0 ? 0 : Math.min(...args.picked.map((p) => distanceBetween(d, p)));
72
- const sameFont = args.picked.some((p) => p.headingFont === d.headingFont) ? 0.2 : 0;
73
- const score = distanceFromCurrent(d, args.current) + spread * 0.75 - sameFont;
74
- if (score > bestScore) {
75
- bestScore = score;
76
- best = i;
77
- }
78
- });
79
- return best;
80
- }
81
- export function pickLookDirections(current, count = 4) {
82
- const nearWhite = current.page !== undefined && oklabDistance(current.page, WHITE) < 0.05;
83
- const left = LOOK_DIRECTIONS.filter((d) => d.colorway !== current.colorway)
84
- .filter((d) => (nearWhite && d.colorway === "broadsheet") === false)
85
- .map(resolveLookDirection)
86
- .filter((d) => d !== undefined);
87
- const picked = [];
88
- while (picked.length < count && left.length > 0) {
89
- const [next] = left.splice(nextPick({ left, picked, current }), 1);
90
- if (next !== undefined)
91
- picked.push(next);
92
- }
93
- const flipTo = isDarkPage(current.page) ? "light" : "dark";
94
- if (picked.length > 0 && picked.every((d) => d.mode !== flipTo)) {
95
- const flip = left
96
- .filter((d) => d.mode === flipTo)
97
- .sort((a, b) => distanceFromCurrent(b, current) - distanceFromCurrent(a, current))[0];
98
- if (flip !== undefined)
99
- picked[picked.length - 1] = flip;
100
- }
101
- return picked;
102
- }
103
- function fontPhrase(slug) {
104
- const f = getVibeFont(slug);
105
- return f === undefined ? slug : `${f.label} (${f.mood})`;
106
- }
107
- export function lookDirectionText(d) {
108
- const c = d.colours;
109
- const roles = [
110
- `background ${c.background}`,
111
- `surface ${c.surface}`,
112
- `text-primary ${c.textPrimary}`,
113
- `text-secondary ${c.textSecondary}`,
114
- `border ${c.border}`,
115
- `primary ${c.primary}`,
116
- `accent ${c.accent}`,
117
- ].join(", ");
118
- const faces = d.headingFont === d.bodyFont
119
- ? `every heading, label and line of body text set in ${fontPhrase(d.headingFont)}`
120
- : `headings set in ${fontPhrase(d.headingFont)}; body text, labels and buttons set in ${fontPhrase(d.bodyFont)}`;
121
- return `the "${d.name}" colour scheme, ${d.mode} mode — ${roles}; ${faces}`;
122
- }
123
- export const LOOK_STYLE_DIRECTION_LEAD = "Style direction: ";
124
- export const LOOK_PAINT_NOT_TEXT = "The colour values and font names in the style direction are paint for you to use, never words: do not write them, or any word that is not already in the screenshot, anywhere in the image.";
125
- export function lookRestyleRenderPrompt(d) {
126
- return `This image is a screenshot of a real, working web app on a phone. Make a new screenshot of the SAME app in a new visual style.
127
-
128
- This is a change of look, not a change of features.
129
-
130
- KEEP EXACTLY:
131
- - every element on screen, in the same position and order, with the same layout and proportions;
132
- - every word: each heading, label, button text, tab, input placeholder, number, date and list item, spelled exactly as shown;
133
- - the same count of cards, rows, buttons, tabs, pads and badges;
134
- - the same icons, emoji and pictures in the same places (they may be restyled).
135
-
136
- CHANGE ONLY: colour palette, typeface, corner shape, borders, shadows, texture, decoration and light-or-dark.
137
- Change those boldly: the new look should be unmistakably different at a glance — a new typeface for headings and body, a new background, new colours on every surface and accent, new corner shapes and shadows — while the app underneath stays exactly the same.
138
-
139
- Output a single flat, straight-on phone screenshot of the restyled app, filling the whole frame. No device frame, no hands, no captions, no annotations, nothing added or removed. The black "VIBES DIY" pill in the bottom-right corner is platform chrome: draw it unchanged.
140
-
141
- ${LOOK_STYLE_DIRECTION_LEAD}${lookDirectionText(d)}.
142
- ${LOOK_PAINT_NOT_TEXT}`;
143
- }
144
- export const LOOK_PICK_PREFIX = "Restyle only — ";
145
- export const LOOK_PICK_DATA_LEAD = "look: ";
146
- export function lookPickFileName(n) {
147
- return `look-${n}.png`;
148
- }
149
- const LOOK_FILE_NAME = /^look-\d+\.png$/;
150
- export function lookPickText(args) {
151
- const { data } = args;
152
- const json = JSON.stringify({
153
- colorway: data.colorway,
154
- mode: data.mode,
155
- headingFont: data.headingFont,
156
- bodyFont: data.bodyFont,
157
- });
158
- return `${LOOK_PICK_PREFIX}keep every feature, screen, label and behaviour exactly as it is, and change only the look to "${args.name}".
159
- ${LOOK_PICK_DATA_LEAD}${json}
160
- The attached picture is a mood reference for the colours and surfaces, never content: keep every word of the app as it is.`;
161
- }
162
- const lookPickData = lazyType(() => type({
163
- colorway: "string > 0",
164
- mode: "'light' | 'dark'",
165
- headingFont: "string > 0",
166
- bodyFont: "string > 0",
167
- }));
168
- export function parseLookPickText(text) {
169
- if (text.startsWith(LOOK_PICK_PREFIX) === false)
170
- return undefined;
171
- const line = text.split("\n").find((l) => l.startsWith(LOOK_PICK_DATA_LEAD));
172
- if (line === undefined)
173
- return undefined;
174
- const json = exception2Result(() => JSON.parse(line.slice(LOOK_PICK_DATA_LEAD.length)));
175
- if (json.isErr())
176
- return undefined;
177
- const parsed = lookPickData(json.Ok());
178
- if (parsed instanceof type.errors)
179
- return undefined;
180
- return { colorway: parsed.colorway, mode: parsed.mode, headingFont: parsed.headingFont, bodyFont: parsed.bodyFont };
181
- }
182
- export function isLookPickFileName(name) {
183
- return LOOK_FILE_NAME.test(name);
184
- }
185
- export function isLookPickMessage(content) {
186
- return content.some((part) => {
187
- if (typeof part !== "object" || part === null)
188
- return false;
189
- const p = part;
190
- return p.type === "text" && typeof p.text === "string" && parseLookPickText(p.text) !== undefined;
191
- });
192
- }
193
- export const LOOK_RESTYLE_INSTRUCTION = "New looks. The person picked a new look for their app from the Look tab. Their message opens with " +
194
- `"${LOOK_PICK_PREFIX.trim()}" and carries the look as data on its "${LOOK_PICK_DATA_LEAD.trim()}" line: a colourway slug, light or dark, ` +
195
- "and heading and body font slugs from the font catalog. Restyle only: keep every feature, screen, label and behaviour. " +
196
- "Apply the look with set_app_style, naming that colourway, the mode and both fonts in the instruction. " +
197
- "The attached picture is a mood reference painted by an image model: read its colours and surfaces, never its words, " +
198
- "and never rebuild the app from it.";
199
- //# sourceMappingURL=look-restyle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"look-restyle.js","sourceRoot":"","sources":["../jsr/look-restyle.ts"],"names":[],"mappings":"AAgCA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,QAAQ,E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