@spunto/brand-kit 0.13.0 → 0.15.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.
package/README.md CHANGED
@@ -26,6 +26,7 @@ import { ProductHome } from "@spunto/brand-kit/home"
26
26
  in Astro, `<ProductHome product="lite" locale="en" client:visible />` (hydrated, so the 3D plays).
27
27
  - Buttons only your site can fill are **slots**: `slots={{ install: { label, href } }}` (CI's GitHub
28
28
  app), `access` (Desktop's form). A slot you don't fill falls back to the edition's link, or is left out.
29
+ Boiler's « Get started » needs none: a plain `/docs` link, served by its own site.
29
30
  - Next: add `"@spunto/brand-kit"` to `transpilePackages` (the package ships TypeScript source, like
30
31
  `@spunto/design-system`, which it builds on — peer `>= 0.67`).
31
32
  - The page is drawn with inline styles and hex colours: it doesn't depend on your Tailwind build, only
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spunto/brand-kit",
3
- "version": "0.13.0",
3
+ "version": "0.15.0",
4
4
  "description": "Spunto's brand kit — the centre of the brand: the product family and its paints (the colours the design system renders), the voice, the sourced figures, the home editions, the illustrations and the templates (social cards, video scenes, stories) everything we say about Spunto is made from.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -0,0 +1,94 @@
1
+ import type { ReactNode } from "react"
2
+ import { hexAlpha, type Surface } from "../theme"
3
+
4
+ /* A command or a snippet of an edition, coloured. Every block of code in a home sits on a dark ground (the
5
+ ink, or black over the field), so the colours are the product's own seen at night: the signal for what the
6
+ language says (keywords, a shell's command, flags), its opposite on the colour wheel, kept light, for what
7
+ the code says (strings), white for names (calls, components, tags), the text dimmed for comments. No grammar per
8
+ language and no dependency: one small tokenizer reads well enough the TypeScript/TSX, shell, YAML and CSS
9
+ the editions show — they are short, and they are real. */
10
+
11
+ type Kind = "keyword" | "string" | "comment" | "name" | "number" | "flag" | "punct"
12
+
13
+ const KEYWORDS = new Set(
14
+ "import export from default const let var function return async await new if else for of in as type interface extends class this null undefined true false typeof void throw try catch".split(" "),
15
+ )
16
+
17
+ // Order matters: comments and strings first, so a `//` in a URL or a `#` in a string stays where it is.
18
+ const TOKEN =
19
+ /((?<=^|\s)(?:\/\/|#)[^\n]*)|('(?:[^'\\\n]|\\.)*'|"(?:[^"\\\n]|\\.)*"|`(?:[^`\\]|\\.)*`)|(<\/?[A-Za-z][\w.]*|\/?>)|((?<=^|\s)--?[A-Za-z][\w-]*)|(\b\d[\d_.]*\b)|(@?[A-Za-z_$][\w$-]*)/gm
20
+
21
+ /** The tokens of a snippet, each with its kind — what `Code` colours. Exported for the tests. */
22
+ export function tokenize(code: string, shell: boolean): { text: string; kind?: Kind }[] {
23
+ const out: { text: string; kind?: Kind }[] = []
24
+ let last = 0
25
+ // The first word of each shell line is the command (`npm`, `curl`, `sbx`).
26
+ let lineStart = true
27
+ for (const m of code.matchAll(TOKEN)) {
28
+ const i = m.index!
29
+ const before = code.slice(last, i)
30
+ if (before) out.push({ text: before })
31
+ // A new line starts a command, unless the last one went on (`\`); so does a pipe or a `&&`.
32
+ if ((before.includes("\n") && !/\\\s*\n/.test(before)) || /\||&&|;/.test(before)) lineStart = true
33
+ const [text, comment, string, tag, flag, number, word] = m
34
+ let kind: Kind | undefined
35
+ if (comment) kind = "comment"
36
+ else if (string) kind = "string"
37
+ else if (tag) kind = "punct"
38
+ else if (flag) kind = "flag"
39
+ else if (number) kind = "number"
40
+ else if (word) {
41
+ const next = code.slice(i + text.length).match(/^\s*(\(|:(?=\s|$))/)
42
+ if (shell && lineStart) kind = "keyword"
43
+ else if (KEYWORDS.has(word)) kind = "keyword"
44
+ else if (/^[A-Z]/.test(word) || next?.[1] === "(") kind = "name"
45
+ // A key: `runs-on:` in YAML, `{ title: … }` in an object.
46
+ else if (next?.[1] === ":") kind = "name"
47
+ }
48
+ // A tag's name is a name, its brackets are punctuation.
49
+ if (tag && /[A-Za-z]/.test(tag)) {
50
+ const name = tag.match(/[A-Za-z][\w.]*/)![0]
51
+ out.push({ text: tag.slice(0, tag.length - name.length), kind: "punct" }, { text: name, kind: "name" })
52
+ } else out.push({ text, kind })
53
+ if (!comment && text.trim()) lineStart = false
54
+ last = i + text.length
55
+ }
56
+ if (last < code.length) out.push({ text: code.slice(last) })
57
+ return out
58
+ }
59
+
60
+ /** The signal's opposite on the colour wheel, kept light: a second colour every product has, in its own key. */
61
+ function opposite(hex: string) {
62
+ const n = parseInt(hex.slice(1), 16)
63
+ const [r, g, b] = [(n >> 16) & 255, (n >> 8) & 255, n & 255].map((v) => v / 255)
64
+ const max = Math.max(r, g, b)
65
+ const min = Math.min(r, g, b)
66
+ const d = max - min
67
+ const h = d === 0 ? 0 : max === r ? ((g - b) / d + 6) % 6 : max === g ? (b - r) / d + 2 : (r - g) / d + 4
68
+ return `hsl(${Math.round(h * 60 + 180) % 360} 70% 76%)`
69
+ }
70
+
71
+ /** A step's command has no prompt flag: a line without code's punctuation is a shell's (`sbx pause hello`). */
72
+ export const looksLikeShell = (code: string) => !/[(){};=]/.test(code)
73
+
74
+ /** `code` coloured on a dark ground, in the surface's product colours. `shell` reads its first words as commands. */
75
+ export function Code({ code, s, shell = false }: { code: string; s: Surface; shell?: boolean }): ReactNode {
76
+ const colour: Record<Kind, string> = {
77
+ keyword: s.signal,
78
+ flag: s.signal,
79
+ number: s.signal,
80
+ string: opposite(s.signal),
81
+ name: "#ffffff",
82
+ comment: hexAlpha("#e9efeb", 0.45),
83
+ punct: hexAlpha("#e9efeb", 0.6),
84
+ }
85
+ return tokenize(code, shell).map((t, i) =>
86
+ t.kind ? (
87
+ <span key={i} style={{ color: colour[t.kind], fontStyle: t.kind === "comment" ? "italic" : undefined }}>
88
+ {t.text}
89
+ </span>
90
+ ) : (
91
+ t.text
92
+ ),
93
+ )
94
+ }
@@ -269,6 +269,7 @@
269
269
  "ci",
270
270
  "sandbox",
271
271
  "traces",
272
+ "boiler",
272
273
  "lite",
273
274
  "cms",
274
275
  "search",
@@ -0,0 +1,379 @@
1
+ [
2
+ {
3
+ "id": "boiler-2026-12-chaudiere",
4
+ "name": "Chaudière",
5
+ "note": "The first home of Spunto Boiler (boiler.spunto.net): the claim — React Server Components without Next.js — and the install line in the hero over a molten drop (the blob module, in cast iron and copper); one app.tsx where a page and the API live side by side; the three moves; the figures measured on the example app « Le Carnet » (2026-12-02); what a Boiler app is; the API's code; an honest FAQ (0.x: no nested layouts, no cache, Node only). Words from the brief of the task writing spuntodotnet/boiler. Its site is in English: links stay on it (site.fr \"\"). Left out: a comparison with another framework's figures, anything not in 0.x.",
6
+ "product": "boiler",
7
+ "date": "2026-12-02",
8
+ "sections": [
9
+ {
10
+ "id": "hero",
11
+ "kind": "hero",
12
+ "layout": "split",
13
+ "theme": "night",
14
+ "kicker": {
15
+ "en": "Open source · MIT · on Hono and Vite",
16
+ "fr": "Open source · MIT · sur Hono et Vite"
17
+ },
18
+ "title": {
19
+ "en": "React Server Components, *without Next.js*.",
20
+ "fr": "Les React Server Components, *sans Next.js*."
21
+ },
22
+ "lede": {
23
+ "en": "One Hono app serves your JSON API and your pages. A page is a Hono route rendering an async Server Component that calls your services directly — no HTTP in between. React only goes to the browser for the components marked 'use client'.",
24
+ "fr": "Une seule app Hono sert votre API JSON et vos pages. Une page est une route Hono qui rend un Server Component async, lequel appelle vos services directement — sans HTTP entre les deux. React ne part au navigateur que pour les composants marqués 'use client'."
25
+ },
26
+ "command": "npm i @spunto/boiler hono zod react react-dom",
27
+ "actions": [
28
+ {
29
+ "label": {
30
+ "en": "Get started",
31
+ "fr": "Commencer"
32
+ },
33
+ "href": "/docs"
34
+ },
35
+ {
36
+ "label": {
37
+ "en": "GitHub",
38
+ "fr": "GitHub"
39
+ },
40
+ "href": "https://github.com/spuntodotnet/boiler",
41
+ "variant": "ghost"
42
+ }
43
+ ],
44
+ "scene": {
45
+ "module": "blob"
46
+ }
47
+ },
48
+ {
49
+ "id": "one-app",
50
+ "kind": "command",
51
+ "theme": "paper",
52
+ "title": {
53
+ "en": "Pages and API, *one Hono app*.",
54
+ "fr": "Pages et API, *une seule app Hono*."
55
+ },
56
+ "lede": {
57
+ "en": "Standard Hono objects, not a subclass: your middlewares, your routes, hono/client. A page reads its data by calling your code, on the server; c.render streams it into your layout, with its title and description.",
58
+ "fr": "Des objets Hono standard, pas une sous-classe : vos middlewares, vos routes, hono/client. Une page lit ses données en appelant votre code, côté serveur ; c.render la diffuse dans votre layout, avec son titre et sa description."
59
+ },
60
+ "command": "import { createApp } from '@spunto/boiler'\n\nconst app = createApp({ layout })\n\n// A page: a route rendering an async Server Component\napp.get('/articles/:slug', (c) =>\n c.render(<Article slug={c.req.param('slug')} />,\n { title: 'Article' }))\n\n// The JSON API, in the same app\napp.route('/api', api)\n\nexport default app",
61
+ "prompt": false,
62
+ "caption": {
63
+ "en": "src/app.tsx",
64
+ "fr": "src/app.tsx"
65
+ }
66
+ },
67
+ {
68
+ "id": "how",
69
+ "kind": "steps",
70
+ "theme": "night",
71
+ "title": {
72
+ "en": "Three files. *An app.*",
73
+ "fr": "Trois fichiers. *Une app.*"
74
+ },
75
+ "items": [
76
+ {
77
+ "title": {
78
+ "en": "Install, add the plugin",
79
+ "fr": "Installez, ajoutez le plugin"
80
+ },
81
+ "text": {
82
+ "en": "Boiler is a Vite plugin on top of @vitejs/plugin-rsc, the Vite team's own React Server Components.",
83
+ "fr": "Boiler est un plugin Vite au-dessus de @vitejs/plugin-rsc, les React Server Components de l’équipe de Vite elle-même."
84
+ },
85
+ "command": "// vite.config.ts\nimport { defineConfig } from 'vite'\nimport boiler from '@spunto/boiler/vite'\n\nexport default defineConfig({ plugins: [boiler()] })"
86
+ },
87
+ {
88
+ "title": {
89
+ "en": "Write a page",
90
+ "fr": "Écrivez une page"
91
+ },
92
+ "text": {
93
+ "en": "A route, a Server Component, its title. Export the app: that is the server.",
94
+ "fr": "Une route, un Server Component, son titre. Exportez l’app : c’est le serveur."
95
+ },
96
+ "command": "// src/app.tsx\nconst app = createApp({ layout })\n\napp.get('/', (c) => c.render(<Home />, { title: 'Home' }))\n\nexport default app"
97
+ },
98
+ {
99
+ "title": {
100
+ "en": "Declare an API route",
101
+ "fr": "Déclarez une route d’API"
102
+ },
103
+ "text": {
104
+ "en": "Its inputs validated by Zod, its responses declared by status code — and its documentation generated from them.",
105
+ "fr": "Ses entrées validées par Zod, ses réponses déclarées par code HTTP — et sa documentation générée à partir d’elles."
106
+ },
107
+ "command": "// src/api.ts\nconst api = new Hono().post('/articles/:slug/like',\n route({ param: SlugParam, responses: { 200: Likes, 404: ApiError } },\n async (c) => c.json({ likes }, 200)))\n\ndocs(api, { title: 'My API' })"
108
+ }
109
+ ]
110
+ },
111
+ {
112
+ "id": "measured",
113
+ "kind": "facts",
114
+ "theme": "paper",
115
+ "title": {
116
+ "en": "Measured on its example app, *Le Carnet*.",
117
+ "fr": "Mesuré sur son app d’exemple, *Le Carnet*."
118
+ },
119
+ "facts": [
120
+ "boiler-client-js",
121
+ "boiler-build",
122
+ "boiler-ttfb",
123
+ "boiler-memory"
124
+ ]
125
+ },
126
+ {
127
+ "id": "what",
128
+ "kind": "pillars",
129
+ "theme": "night",
130
+ "title": {
131
+ "en": "What's *in the boiler*.",
132
+ "fr": "Ce qu’il y a *dans la chaudière*."
133
+ },
134
+ "items": [
135
+ {
136
+ "title": {
137
+ "en": "Pages are Hono routes",
138
+ "fr": "Les pages sont des routes Hono"
139
+ },
140
+ "text": {
141
+ "en": "c.render(<Page />, { title, description }) renders an async Server Component in your layout. It reads its data by calling your services: no fetch to your own API, no loader to declare.",
142
+ "fr": "c.render(<Page />, { title, description }) rend un Server Component async dans votre layout. Il lit ses données en appelant vos services : aucun fetch vers votre propre API, aucun loader à déclarer."
143
+ }
144
+ },
145
+ {
146
+ "title": {
147
+ "en": "An API validated by Zod",
148
+ "fr": "Une API validée par Zod"
149
+ },
150
+ "text": {
151
+ "en": "route({ param, query, json, responses }) validates every input. A response it doesn't declare — a status code that isn't there, data that doesn't match its schema — fails to compile.",
152
+ "fr": "route({ param, query, json, responses }) valide chaque entrée. Une réponse qu’elle ne déclare pas — un code HTTP absent, des données non conformes à son schéma — ne compile pas."
153
+ }
154
+ },
155
+ {
156
+ "title": {
157
+ "en": "OpenAPI 3.1, generated",
158
+ "fr": "OpenAPI 3.1, généré"
159
+ },
160
+ "text": {
161
+ "en": "openapi() reads app.routes and your Zod schemas with their .meta({ id, description, example }); docs() serves /api/openapi.json and a documentation page. The document passes an independent validator.",
162
+ "fr": "openapi() lit app.routes et vos schémas Zod avec leurs .meta({ id, description, example }) ; docs() sert /api/openapi.json et une page de documentation. Le document passe un validateur indépendant."
163
+ }
164
+ },
165
+ {
166
+ "title": {
167
+ "en": "Typed end to end",
168
+ "fr": "Typé de bout en bout"
169
+ },
170
+ "text": {
171
+ "en": "The client is hono/client's hc: the same types from the route to the call, nothing generated.",
172
+ "fr": "Le client, c’est hc de hono/client : les mêmes types de la route à l’appel, rien de généré."
173
+ }
174
+ },
175
+ {
176
+ "title": {
177
+ "en": "Server actions",
178
+ "fr": "Des server actions"
179
+ },
180
+ "text": {
181
+ "en": "'use server' functions behind your forms, which work even without JavaScript. Your routes have nothing to declare.",
182
+ "fr": "Des fonctions 'use server' derrière vos formulaires, qui marchent même sans JavaScript. Vos routes n’ont rien à déclarer."
183
+ }
184
+ },
185
+ {
186
+ "title": {
187
+ "en": "Vite 8",
188
+ "fr": "Vite 8"
189
+ },
190
+ "text": {
191
+ "en": "Rolldown, Oxc, Lightning CSS: a build in seconds, and hot reload of server and client components without losing state.",
192
+ "fr": "Rolldown, Oxc, Lightning CSS : un build en quelques secondes, et le rechargement à chaud des composants serveur et client sans perdre l’état."
193
+ }
194
+ }
195
+ ]
196
+ },
197
+ {
198
+ "id": "api",
199
+ "kind": "command",
200
+ "theme": "paper",
201
+ "title": {
202
+ "en": "A response you didn't declare *doesn't compile*.",
203
+ "fr": "Une réponse non déclarée *ne compile pas*."
204
+ },
205
+ "lede": {
206
+ "en": "Each route says what it takes and what it answers, in Zod. The handler is checked against it; openapi() turns the same schemas into the document your clients read.",
207
+ "fr": "Chaque route dit ce qu’elle prend et ce qu’elle répond, en Zod. Le handler est vérifié contre ; openapi() fait des mêmes schémas le document que lisent vos clients."
208
+ },
209
+ "command": "const api = new Hono().post('/articles/:slug/like',\n route({\n param: SlugParam,\n responses: { 200: Likes, 404: ApiError },\n summary: 'Like an article',\n }, async (c) => {\n const article = await articles.find(c.req.valid('param').slug)\n if (!article) return c.json({ error: 'not_found' }, 404)\n return c.json({ likes: await articles.like(article) }, 200)\n // c.json(…, 201) → a type error: 201 isn't declared\n }))\n\ndocs(api, { title: 'My API' }) // /api/openapi.json + its page",
210
+ "prompt": false,
211
+ "caption": {
212
+ "en": "src/api.ts",
213
+ "fr": "src/api.ts"
214
+ }
215
+ },
216
+ {
217
+ "id": "ship",
218
+ "kind": "steps",
219
+ "theme": "night",
220
+ "title": {
221
+ "en": "Three commands, *to production*.",
222
+ "fr": "Trois commandes, *jusqu’en prod*."
223
+ },
224
+ "items": [
225
+ {
226
+ "title": {
227
+ "en": "Develop",
228
+ "fr": "Développez"
229
+ },
230
+ "text": {
231
+ "en": "Vite's dev server, server and client components reloaded in place.",
232
+ "fr": "Le serveur de dev de Vite, composants serveur et client rechargés sur place."
233
+ },
234
+ "command": "npm run dev"
235
+ },
236
+ {
237
+ "title": {
238
+ "en": "Build",
239
+ "fr": "Construisez"
240
+ },
241
+ "text": {
242
+ "en": "vite build: the RSC server, SSR and the client, in one go.",
243
+ "fr": "vite build : le serveur RSC, le SSR et le client, d’un coup."
244
+ },
245
+ "command": "npm run build"
246
+ },
247
+ {
248
+ "title": {
249
+ "en": "Serve",
250
+ "fr": "Servez"
251
+ },
252
+ "text": {
253
+ "en": "boiler start: one Node server. Or put it in a Docker image.",
254
+ "fr": "boiler start : un serveur Node. Ou mettez-le dans une image Docker."
255
+ },
256
+ "command": "npm start"
257
+ }
258
+ ]
259
+ },
260
+ {
261
+ "id": "faq",
262
+ "kind": "faq",
263
+ "theme": "paper",
264
+ "title": {
265
+ "en": "Questions",
266
+ "fr": "Questions"
267
+ },
268
+ "items": [
269
+ {
270
+ "q": {
271
+ "en": "Why not Next.js?",
272
+ "fr": "Pourquoi pas Next.js ?"
273
+ },
274
+ "a": {
275
+ "en": "If you already write your API in Hono, Boiler adds pages to that same app instead of putting a second framework next to it: one server, one router, your middlewares on both. Server Components come from @vitejs/plugin-rsc, built by Vite.",
276
+ "fr": "Si vous écrivez déjà votre API en Hono, Boiler ajoute les pages à cette même app plutôt que de mettre un second framework à côté : un serveur, un routeur, vos middlewares sur les deux. Les Server Components viennent de @vitejs/plugin-rsc, construits par Vite."
277
+ }
278
+ },
279
+ {
280
+ "q": {
281
+ "en": "Is it ready?",
282
+ "fr": "Est-ce prêt ?"
283
+ },
284
+ "a": {
285
+ "en": "It is young: version 0.x. There are no nested layouts and no cache yet, and it targets Node only for now. The rest of this page is what works today.",
286
+ "fr": "Il est jeune : version 0.x. Pas encore de layouts imbriqués ni de cache, et il ne cible que Node pour l’instant. Le reste de cette page, c’est ce qui marche aujourd’hui."
287
+ }
288
+ },
289
+ {
290
+ "q": {
291
+ "en": "Does it need JavaScript in the browser?",
292
+ "fr": "Faut-il du JavaScript dans le navigateur ?"
293
+ },
294
+ "a": {
295
+ "en": "Only for your 'use client' components — and server actions keep forms working without it. On the example app, those components weigh 2.5 kB gzipped; React DOM comes on top.",
296
+ "fr": "Seulement pour vos composants 'use client' — et les server actions gardent les formulaires en état de marche sans lui. Sur l’app d’exemple, ces composants pèsent 2,5 Ko gzippés ; React DOM vient en plus."
297
+ }
298
+ },
299
+ {
300
+ "q": {
301
+ "en": "Where does it run in production?",
302
+ "fr": "Où tourne-t-il en prod ?"
303
+ },
304
+ "a": {
305
+ "en": "vite build, then boiler start: a Node server, or the same in a Docker image — about 45 MB of memory for the example app's container.",
306
+ "fr": "vite build, puis boiler start : un serveur Node, ou le même dans une image Docker — environ 45 Mo de mémoire pour le conteneur de l’app d’exemple."
307
+ }
308
+ },
309
+ {
310
+ "q": {
311
+ "en": "What does it cost?",
312
+ "fr": "Combien ça coûte ?"
313
+ },
314
+ "a": {
315
+ "en": "Nothing: it is open source under the MIT licence, on npm as @spunto/boiler.",
316
+ "fr": "Rien : c’est de l’open source sous licence MIT, sur npm sous le nom @spunto/boiler."
317
+ }
318
+ }
319
+ ]
320
+ },
321
+ {
322
+ "id": "family",
323
+ "kind": "family",
324
+ "theme": "night",
325
+ "title": {
326
+ "en": "Same universe, *different tools*.",
327
+ "fr": "Même univers, *outils différents*."
328
+ },
329
+ "lede": {
330
+ "en": "Spunto Boiler is the family's web framework. The rest of it, each in its own colours.",
331
+ "fr": "Spunto Boiler est le framework web de la famille. Le reste, chacun dans ses couleurs."
332
+ },
333
+ "products": [
334
+ "cloud",
335
+ "sandbox",
336
+ "lite",
337
+ "cms",
338
+ "desktop",
339
+ "ci",
340
+ "agents",
341
+ "traces",
342
+ "search",
343
+ "ds",
344
+ "foyer"
345
+ ]
346
+ },
347
+ {
348
+ "id": "start",
349
+ "kind": "cta",
350
+ "theme": "signal",
351
+ "title": {
352
+ "en": "One app. *Pages and API.*",
353
+ "fr": "Une app. *Pages et API.*"
354
+ },
355
+ "lede": {
356
+ "en": "npm i @spunto/boiler, a plugin in vite.config.ts, then npm run dev.",
357
+ "fr": "npm i @spunto/boiler, un plugin dans vite.config.ts, puis npm run dev."
358
+ },
359
+ "actions": [
360
+ {
361
+ "label": {
362
+ "en": "Get started",
363
+ "fr": "Commencer"
364
+ },
365
+ "href": "/docs"
366
+ },
367
+ {
368
+ "label": {
369
+ "en": "On npm",
370
+ "fr": "Sur npm"
371
+ },
372
+ "href": "https://www.npmjs.com/package/@spunto/boiler",
373
+ "variant": "ghost"
374
+ }
375
+ ]
376
+ }
377
+ ]
378
+ }
379
+ ]
@@ -331,6 +331,7 @@
331
331
  "sandbox",
332
332
  "agents",
333
333
  "traces",
334
+ "boiler",
334
335
  "desktop",
335
336
  "lite",
336
337
  "cms",
@@ -568,6 +568,7 @@
568
568
  "sandbox",
569
569
  "agents",
570
570
  "traces",
571
+ "boiler",
571
572
  "lite",
572
573
  "cms",
573
574
  "desktop",
@@ -741,6 +742,7 @@
741
742
  "sandbox",
742
743
  "agents",
743
744
  "traces",
745
+ "boiler",
744
746
  "lite",
745
747
  "cms",
746
748
  "desktop",
@@ -900,6 +902,7 @@
900
902
  "sandbox",
901
903
  "agents",
902
904
  "traces",
905
+ "boiler",
903
906
  "lite",
904
907
  "cms",
905
908
  "desktop",
@@ -1076,6 +1079,7 @@
1076
1079
  "sandbox",
1077
1080
  "agents",
1078
1081
  "traces",
1082
+ "boiler",
1079
1083
  "lite",
1080
1084
  "cms",
1081
1085
  "desktop",
@@ -1246,6 +1250,7 @@
1246
1250
  "sandbox",
1247
1251
  "agents",
1248
1252
  "traces",
1253
+ "boiler",
1249
1254
  "lite",
1250
1255
  "cms",
1251
1256
  "desktop",
@@ -331,6 +331,7 @@
331
331
  "sandbox",
332
332
  "agents",
333
333
  "traces",
334
+ "boiler",
334
335
  "lite",
335
336
  "desktop",
336
337
  "ci",
@@ -728,6 +729,7 @@
728
729
  "sandbox",
729
730
  "agents",
730
731
  "traces",
732
+ "boiler",
731
733
  "lite",
732
734
  "desktop",
733
735
  "ci",
@@ -326,6 +326,7 @@
326
326
  "sandbox",
327
327
  "agents",
328
328
  "traces",
329
+ "boiler",
329
330
  "lite",
330
331
  "cms",
331
332
  "ci",
@@ -715,6 +716,7 @@
715
716
  "sandbox",
716
717
  "agents",
717
718
  "traces",
719
+ "boiler",
718
720
  "lite",
719
721
  "cms",
720
722
  "ci",
@@ -300,6 +300,7 @@
300
300
  "sandbox",
301
301
  "agents",
302
302
  "traces",
303
+ "boiler",
303
304
  "lite",
304
305
  "cms",
305
306
  "desktop",
@@ -282,6 +282,7 @@
282
282
  "sandbox",
283
283
  "agents",
284
284
  "traces",
285
+ "boiler",
285
286
  "lite",
286
287
  "cms",
287
288
  "desktop",
@@ -615,6 +616,7 @@
615
616
  "sandbox",
616
617
  "agents",
617
618
  "traces",
619
+ "boiler",
618
620
  "lite",
619
621
  "cms",
620
622
  "desktop",
@@ -503,6 +503,7 @@
503
503
  "sandbox",
504
504
  "agents",
505
505
  "traces",
506
+ "boiler",
506
507
  "cms",
507
508
  "desktop",
508
509
  "ci",
@@ -781,6 +782,7 @@
781
782
  "sandbox",
782
783
  "agents",
783
784
  "traces",
785
+ "boiler",
784
786
  "cms",
785
787
  "desktop",
786
788
  "ci",
@@ -468,7 +468,8 @@
468
468
  "ds",
469
469
  "foyer",
470
470
  "agents",
471
- "traces"
471
+ "traces",
472
+ "boiler"
472
473
  ]
473
474
  },
474
475
  {
@@ -282,6 +282,7 @@
282
282
  "sandbox",
283
283
  "agents",
284
284
  "traces",
285
+ "boiler",
285
286
  "lite",
286
287
  "cms",
287
288
  "desktop",
@@ -254,7 +254,8 @@
254
254
  "cms",
255
255
  "search",
256
256
  "ds",
257
- "foyer"
257
+ "foyer",
258
+ "boiler"
258
259
  ]
259
260
  },
260
261
  {
@@ -17,6 +17,7 @@ import ci from "./editions/ci.json"
17
17
  import sandbox from "./editions/sandbox.json"
18
18
  import agents from "./editions/agents.json"
19
19
  import traces from "./editions/traces.json"
20
+ import boiler from "./editions/boiler.json"
20
21
  import search from "./editions/search.json"
21
22
  import ds from "./editions/ds.json"
22
23
  import foyer from "./editions/foyer.json"
@@ -25,7 +26,7 @@ import foyer from "./editions/foyer.json"
25
26
  export type HomeEditionFile = Omit<HomeEdition, "sections"> & { sections?: HomeSection[] }
26
27
 
27
28
  /** Each product's file, as imported — what the studio's server rewrites (`editions/<product>.json`). */
28
- export const EDITION_FILES = { cloud, lite, cms, desktop, ci, sandbox, agents, traces, search, ds, foyer } as unknown as Record<BrandProductId, HomeEditionFile[]>
29
+ export const EDITION_FILES = { cloud, lite, cms, desktop, ci, sandbox, agents, traces, boiler, search, ds, foyer } as unknown as Record<BrandProductId, HomeEditionFile[]>
29
30
 
30
31
  const STORED = Object.values(EDITION_FILES).flat()
31
32
 
@@ -47,6 +48,7 @@ export const PUBLISHED: Record<BrandProductId, string | null> = {
47
48
  sandbox: "sandbox-2026-11-moteur",
48
49
  agents: "agents-2026-11-fil",
49
50
  traces: "traces-2026-12-cascade",
51
+ boiler: "boiler-2026-12-chaudiere",
50
52
  search: null,
51
53
  ds: null,
52
54
  foyer: "foyer-2026-11-tablee",
package/src/home/home.tsx CHANGED
@@ -6,6 +6,7 @@ import { Illustration } from "../illustrations"
6
6
  import { Module3DView } from "../three/view"
7
7
  import type { Module3DRef } from "../three/catalog"
8
8
  import { ShowcaseScreen } from "./showcase/view"
9
+ import { Code, looksLikeShell } from "./code"
9
10
  import { BRAND_NEUTRALS, BRAND_PRODUCTS, brandProduct, plain, productHref, type BrandLocale } from "../products"
10
11
  import { FONT, hexAlpha, surface, type Surface } from "../theme"
11
12
  import { MARKS, MARK_COLORS } from "../marks"
@@ -261,7 +262,7 @@ function SectionView({ section, ctx, path: p }: { section: HomeSection; ctx: Ctx
261
262
  }}
262
263
  >
263
264
  {section.prompt !== false && <span style={{ color: section.theme === "paper" ? s.signal : s.accent }}>$ </span>}
264
- {section.command}
265
+ <Code code={section.command} s={s} shell={section.prompt !== false} />
265
266
  </pre>
266
267
  {section.caption && <div style={{ marginTop: 10, fontFamily: FONT.mono, fontSize: 12, color: s.muted }}>{ctx.t(section.caption, `${p}.caption`)}</div>}
267
268
  </div>
@@ -344,7 +345,7 @@ function SectionView({ section, ctx, path: p }: { section: HomeSection; ctx: Ctx
344
345
  <p style={{ margin: 0, fontSize: 16, lineHeight: 1.55, color: s.muted }}>{ctx.t(it.text, `${p}.items.${i}.text`)}</p>
345
346
  {it.command && (
346
347
  <pre style={{ margin: 0, padding: "12px 14px", borderRadius: 4, background: section.theme === "night" ? "rgba(0,0,0,0.32)" : BRAND_NEUTRALS.ink, color: "#e9efeb", fontFamily: FONT.mono, fontSize: 12.5, lineHeight: 1.6, whiteSpace: "pre-wrap", wordBreak: "break-word" }}>
347
- {it.command}
348
+ <Code code={it.command} s={s} shell={looksLikeShell(it.command)} />
348
349
  </pre>
349
350
  )}
350
351
  </li>
@@ -613,7 +614,7 @@ function WaysSection({ section, s, ctx, path: p }: { section: Extract<HomeSectio
613
614
  {it.code && (
614
615
  <pre style={{ margin: 0, color: "#e9efeb", fontFamily: FONT.mono, fontSize: 12, lineHeight: 1.65, whiteSpace: "pre-wrap", wordBreak: "break-word" }}>
615
616
  <span style={{ color: s.signal }}>$ </span>
616
- {ctx.r(it.code, `${ip}.code`)}
617
+ {ctx.editing ? ctx.r(it.code, `${ip}.code`) : <Code code={it.code} s={s} shell />}
617
618
  </pre>
618
619
  )}
619
620
  {it.marks && it.marks.length > 0 && (
@@ -1208,7 +1209,9 @@ function HeroSection({ section, s, ctx, path: p }: { section: Extract<HomeSectio
1208
1209
  )
1209
1210
  )
1210
1211
  return (
1211
- <section id={section.id} style={{ position: "relative", overflow: "hidden", background: s.bg, color: s.fg, padding: "clamp(88px, 13cqi, 168px) clamp(20px, 5cqi, 64px) clamp(64px, 10cqi, 128px)" }}>
1212
+ // A hero is seen whole, on a laptop too: its height also follows the screen's (`svh`) — a wide, short window
1213
+ // takes less air above and a smaller title, rather than pushing the buttons under the fold.
1214
+ <section id={section.id} style={{ position: "relative", overflow: "hidden", background: s.bg, color: s.fg, padding: "clamp(56px, min(13cqi, 11svh), 168px) clamp(20px, 5cqi, 64px) clamp(48px, min(10cqi, 8svh), 128px)" }}>
1212
1215
  {behind && <Scene3D ctx={ctx} scene={section.scene!} theme={section.theme} fill style={{ position: "absolute", inset: 0, height: "100%" }} />}
1213
1216
  {section.theme !== "paper" && !behind && (
1214
1217
  <Illustration
@@ -1219,14 +1222,14 @@ function HeroSection({ section, s, ctx, path: p }: { section: Extract<HomeSectio
1219
1222
  />
1220
1223
  )}
1221
1224
  <div style={{ ...WRAP, pointerEvents: behind ? "none" : undefined, display: "grid", gridTemplateColumns: split ? "repeat(auto-fit, minmax(320px, 1fr))" : "1fr", gap: "clamp(32px, 5cqi, 64px)", alignItems: "center" }}>
1222
- <div style={{ display: "flex", flexDirection: "column", gap: 22, alignItems: centered ? "center" : "flex-start", textAlign: centered ? "center" : "left", pointerEvents: "auto" }}>
1225
+ <div style={{ display: "flex", flexDirection: "column", gap: "clamp(14px, 2.4svh, 22px)", alignItems: centered ? "center" : "flex-start", textAlign: centered ? "center" : "left", pointerEvents: "auto" }}>
1223
1226
  {section.kicker && <span style={{ fontFamily: FONT.mono, fontSize: 13, letterSpacing: "0.14em", textTransform: "uppercase", color: section.theme === "signal" ? s.fg : s.accent }}>{ctx.t(section.kicker, `${p}.kicker`)}</span>}
1224
1227
  <h1
1225
1228
  style={{
1226
1229
  margin: 0,
1227
1230
  fontFamily: FONT.display,
1228
1231
  fontWeight: 400,
1229
- fontSize: section.layout === "band" ? "clamp(46px, 9cqi, 112px)" : "clamp(42px, 7cqi, 92px)",
1232
+ fontSize: section.layout === "band" ? "clamp(46px, 9cqi, 112px)" : "clamp(40px, min(7cqi, 8.5svh), 92px)",
1230
1233
  lineHeight: 0.98,
1231
1234
  letterSpacing: "-0.025em",
1232
1235
  maxWidth: centered ? "16ch" : "14ch",
@@ -1256,7 +1259,7 @@ function HeroSection({ section, s, ctx, path: p }: { section: Extract<HomeSectio
1256
1259
  }}
1257
1260
  >
1258
1261
  <span style={{ color: section.theme === "paper" ? s.signal : s.accent, userSelect: "none" }}>$ </span>
1259
- {section.command}
1262
+ <Code code={section.command} s={s} shell />
1260
1263
  </pre>
1261
1264
  )}
1262
1265
  {section.actions && <Actions actions={section.actions} s={s} theme={section.theme} ctx={ctx} path={`${p}.actions`} center={centered} />}
@@ -0,0 +1,55 @@
1
+ // Spunto Boiler's facts — the figures its home editions quote. The editions themselves are data:
2
+ // ../editions/boiler.json.
3
+ //
4
+ // Every figure was measured on 2026-12-02 on the example app of spuntodotnet/boiler, « Le Carnet »
5
+ // (examples/carnet), with Node 24, Vite 8.4 and React 19.3 — by Mathieu and by the agent writing the
6
+ // framework. The product's site imports its published edition: `<ProductHome product="boiler" />`
7
+ // (PUBLISHED in ../editions.ts).
8
+ //
9
+ // Source of the words: the brief of the parent task creating spuntodotnet/boiler (2026-12-02): the API
10
+ // (`createApp`, `c.render`, `route`, `openapi`, `docs`, `boiler start`), the stack (Hono, Zod, Vite 8 —
11
+ // Rolldown, Oxc, Lightning CSS —, @vitejs/plugin-rsc), MIT. Not claimed: nested layouts, a cache, a target
12
+ // other than Node (« not yet », version 0.x), any comparison with another framework's figures.
13
+
14
+ import type { Fact } from "../../facts"
15
+ import type { Words } from "../types"
16
+
17
+ const w = (en: string, fr: string): Words => ({ en, fr })
18
+
19
+ const CARNET = "spuntodotnet/boiler examples/carnet, 2026-12-02 (Node 24, Vite 8.4, React 19.3)"
20
+
21
+ export const facts: Fact[] = [
22
+ {
23
+ id: "boiler-client-js",
24
+ value: w("2.5 kB", "2,5 Ko"),
25
+ label: w(
26
+ "of client components' JavaScript on the page, gzipped — the rest is React DOM",
27
+ "de JavaScript des composants client de la page, gzippé — le reste, c’est React DOM",
28
+ ),
29
+ source: `${CARNET}; React DOM apart (~77 kB gzipped)`,
30
+ },
31
+ {
32
+ id: "boiler-build",
33
+ value: w("~2.5 s", "~2,5 s"),
34
+ label: w(
35
+ "for a whole build: the RSC server, SSR and the client",
36
+ "pour un build complet : le serveur RSC, le SSR et le client",
37
+ ),
38
+ source: `${CARNET}; vite build`,
39
+ },
40
+ {
41
+ id: "boiler-ttfb",
42
+ value: w("15 ms", "15 ms"),
43
+ label: w(
44
+ "to the page's first byte — its slow section (1.5 s) streams in later, in the same response",
45
+ "jusqu’au premier octet de la page — sa section lente (1,5 s) arrive ensuite en streaming, dans la même réponse",
46
+ ),
47
+ source: `${CARNET}`,
48
+ },
49
+ {
50
+ id: "boiler-memory",
51
+ value: w("~45 MB", "~45 Mo"),
52
+ label: w("of memory for the production container", "de mémoire pour le conteneur de prod"),
53
+ source: `${CARNET}; its Docker image`,
54
+ },
55
+ ]
@@ -6,10 +6,11 @@ import * as ci from "./ci"
6
6
  import * as sandbox from "./sandbox"
7
7
  import * as agents from "./agents"
8
8
  import * as traces from "./traces"
9
+ import * as boiler from "./boiler"
9
10
  import * as search from "./search"
10
11
  import * as ds from "./ds"
11
12
  import * as foyer from "./foyer"
12
13
 
13
- const ALL = [lite, cms, desktop, ci, sandbox, agents, traces, search, ds, foyer]
14
+ const ALL = [lite, cms, desktop, ci, sandbox, agents, traces, boiler, search, ds, foyer]
14
15
 
15
16
  export const PRODUCT_FACTS = ALL.flatMap((p) => p.facts)
package/src/paints.ts CHANGED
@@ -28,7 +28,7 @@ export type PaintToken =
28
28
  | "flame"
29
29
  | "background" | "card" | "popover" | "secondary" | "muted" | "border" | "input" | "sidebar" | "sidebar-border"
30
30
 
31
- export type PaintId = "cloud" | "sprout" | "cms" | "lite" | "browser" | "desktop" | "ci" | "sandbox" | "agents" | "traces" | "search" | "foyer" | "ds"
31
+ export type PaintId = "cloud" | "sprout" | "cms" | "lite" | "browser" | "desktop" | "ci" | "sandbox" | "agents" | "traces" | "boiler" | "search" | "foyer" | "ds"
32
32
 
33
33
  export type Paint = {
34
34
  id: PaintId
@@ -168,6 +168,17 @@ export const PAINTS: Paint[] = [
168
168
  hue: 275,
169
169
  shelf: true,
170
170
  },
171
+ {
172
+ id: "boiler",
173
+ name: "Fonte · cuivre",
174
+ note: `Spunto Boiler — cast iron / copper since 2026-12-02: a boiler's iron, warmed by what burns inside it
175
+ (an ember-tinted near-black, C 0.045, hue 50: off Cloud's graphite and the design system's), and the copper
176
+ of its pipes for the signal (hue 60, between Agents' coral and Cloud's amber, ≈ 0.07 from the first, ≈ 0.09
177
+ from the second). Signal on field 9.1:1, white on the light primary 5.4:1`,
178
+ field: "0.22 0.045 50", signal: "0.80 0.14 60", tone: "0.53 0.14 48",
179
+ hue: 50,
180
+ shelf: true,
181
+ },
171
182
  {
172
183
  id: "search",
173
184
  name: "Sarcelle · eau",
package/src/products.ts CHANGED
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { PAINT_BY_ID, paintHex, type PaintId } from "./paints"
14
14
 
15
- export type BrandProductId = "cloud" | "lite" | "cms" | "desktop" | "ci" | "sandbox" | "agents" | "traces" | "search" | "ds" | "foyer"
15
+ export type BrandProductId = "cloud" | "lite" | "cms" | "desktop" | "ci" | "sandbox" | "agents" | "traces" | "boiler" | "search" | "ds" | "foyer"
16
16
 
17
17
  export type BrandColors = {
18
18
  /** The deep colour a product's night bands, story scenes and video backdrops open in. */
@@ -271,6 +271,35 @@ const ENTRIES: Entry[] = [
271
271
  claim: "Vos traces, logs et métriques, *et ce que chaque vue a coûté*.",
272
272
  },
273
273
  },
274
+ {
275
+ /* A web framework, open source (spuntodotnet/boiler, `@spunto/boiler` on npm, MIT): one Hono app serving
276
+ both the JSON API and pages that are React Server Components, built by Vite (on @vitejs/plugin-rsc). Words
277
+ from its brief (the parent task writing the repository, 2026-12-02). Its site (boiler.spunto.net) is in
278
+ English: a link of the French page stays on the English one, like Sandbox. */
279
+ id: "boiler",
280
+ name: "Spunto Boiler",
281
+ paint: "boiler",
282
+ family: "product",
283
+ href: "https://boiler.spunto.net",
284
+ repo: "https://github.com/spuntodotnet/boiler",
285
+ site: { fr: "" },
286
+ en: {
287
+ kind: "React Server Components on Hono",
288
+ promise: "A Hono app whose pages are React Server Components, built by Vite.",
289
+ blurb:
290
+ "One Hono app serves the JSON API and the pages. A page is a Hono route rendering an async Server Component that calls your services directly, no HTTP in between; React only goes to the browser for 'use client' components. Routes are validated by Zod, an undeclared response fails to compile, and the OpenAPI 3.1 document is generated from the schemas. Server actions, Vite 8, MIT.",
291
+ status: "Hono + RSC + Vite",
292
+ claim: "React Server Components, *without Next.js*.",
293
+ },
294
+ fr: {
295
+ kind: "React Server Components sur Hono",
296
+ promise: "Une app Hono dont les pages sont des React Server Components, construite par Vite.",
297
+ blurb:
298
+ "Une seule app Hono sert l’API JSON et les pages. Une page est une route Hono qui rend un Server Component async, lequel appelle vos services directement, sans HTTP entre les deux ; React ne part au navigateur que pour les composants 'use client'. Les routes sont validées par Zod, une réponse non déclarée ne compile pas, et le document OpenAPI 3.1 est généré depuis les schémas. Server actions, Vite 8, MIT.",
299
+ status: "Hono + RSC + Vite",
300
+ claim: "Les React Server Components, *sans Next.js*.",
301
+ },
302
+ },
274
303
  {
275
304
  id: "search",
276
305
  name: "Spunto Search",