@spunto/brand-kit 0.12.1 → 0.14.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.12.1",
3
+ "version": "0.14.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",
@@ -268,6 +268,8 @@
268
268
  "desktop",
269
269
  "ci",
270
270
  "sandbox",
271
+ "traces",
272
+ "boiler",
271
273
  "lite",
272
274
  "cms",
273
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
+ ]
@@ -330,6 +330,8 @@
330
330
  "cloud",
331
331
  "sandbox",
332
332
  "agents",
333
+ "traces",
334
+ "boiler",
333
335
  "desktop",
334
336
  "lite",
335
337
  "cms",
@@ -567,6 +567,8 @@
567
567
  "products": [
568
568
  "sandbox",
569
569
  "agents",
570
+ "traces",
571
+ "boiler",
570
572
  "lite",
571
573
  "cms",
572
574
  "desktop",
@@ -739,6 +741,8 @@
739
741
  "products": [
740
742
  "sandbox",
741
743
  "agents",
744
+ "traces",
745
+ "boiler",
742
746
  "lite",
743
747
  "cms",
744
748
  "desktop",
@@ -897,6 +901,8 @@
897
901
  "products": [
898
902
  "sandbox",
899
903
  "agents",
904
+ "traces",
905
+ "boiler",
900
906
  "lite",
901
907
  "cms",
902
908
  "desktop",
@@ -1072,6 +1078,8 @@
1072
1078
  "products": [
1073
1079
  "sandbox",
1074
1080
  "agents",
1081
+ "traces",
1082
+ "boiler",
1075
1083
  "lite",
1076
1084
  "cms",
1077
1085
  "desktop",
@@ -1241,6 +1249,8 @@
1241
1249
  "products": [
1242
1250
  "sandbox",
1243
1251
  "agents",
1252
+ "traces",
1253
+ "boiler",
1244
1254
  "lite",
1245
1255
  "cms",
1246
1256
  "desktop",
@@ -330,6 +330,8 @@
330
330
  "cloud",
331
331
  "sandbox",
332
332
  "agents",
333
+ "traces",
334
+ "boiler",
333
335
  "lite",
334
336
  "desktop",
335
337
  "ci",
@@ -726,6 +728,8 @@
726
728
  "cloud",
727
729
  "sandbox",
728
730
  "agents",
731
+ "traces",
732
+ "boiler",
729
733
  "lite",
730
734
  "desktop",
731
735
  "ci",
@@ -325,6 +325,8 @@
325
325
  "cloud",
326
326
  "sandbox",
327
327
  "agents",
328
+ "traces",
329
+ "boiler",
328
330
  "lite",
329
331
  "cms",
330
332
  "ci",
@@ -713,6 +715,8 @@
713
715
  "cloud",
714
716
  "sandbox",
715
717
  "agents",
718
+ "traces",
719
+ "boiler",
716
720
  "lite",
717
721
  "cms",
718
722
  "ci",
@@ -299,6 +299,8 @@
299
299
  "cloud",
300
300
  "sandbox",
301
301
  "agents",
302
+ "traces",
303
+ "boiler",
302
304
  "lite",
303
305
  "cms",
304
306
  "desktop",
@@ -281,6 +281,8 @@
281
281
  "cloud",
282
282
  "sandbox",
283
283
  "agents",
284
+ "traces",
285
+ "boiler",
284
286
  "lite",
285
287
  "cms",
286
288
  "desktop",
@@ -613,6 +615,8 @@
613
615
  "cloud",
614
616
  "sandbox",
615
617
  "agents",
618
+ "traces",
619
+ "boiler",
616
620
  "lite",
617
621
  "cms",
618
622
  "desktop",
@@ -502,6 +502,8 @@
502
502
  "cloud",
503
503
  "sandbox",
504
504
  "agents",
505
+ "traces",
506
+ "boiler",
505
507
  "cms",
506
508
  "desktop",
507
509
  "ci",
@@ -779,6 +781,8 @@
779
781
  "cloud",
780
782
  "sandbox",
781
783
  "agents",
784
+ "traces",
785
+ "boiler",
782
786
  "cms",
783
787
  "desktop",
784
788
  "ci",
@@ -467,7 +467,9 @@
467
467
  "search",
468
468
  "ds",
469
469
  "foyer",
470
- "agents"
470
+ "agents",
471
+ "traces",
472
+ "boiler"
471
473
  ]
472
474
  },
473
475
  {
@@ -281,6 +281,8 @@
281
281
  "cloud",
282
282
  "sandbox",
283
283
  "agents",
284
+ "traces",
285
+ "boiler",
284
286
  "lite",
285
287
  "cms",
286
288
  "desktop",