@spunto/brand-kit 0.10.1 → 0.11.1
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/package.json +1 -1
- package/src/home/check.ts +1 -0
- package/src/home/editions/ci.json +1 -0
- package/src/home/editions/cloud.json +5 -0
- package/src/home/editions/cms.json +2 -0
- package/src/home/editions/desktop.json +2 -0
- package/src/home/editions/ds.json +1 -0
- package/src/home/editions/foyer.json +24 -22
- package/src/home/editions/lite.json +2 -0
- package/src/home/editions/sandbox.json +504 -0
- package/src/home/editions/search.json +1 -0
- package/src/home/editions.ts +3 -1
- package/src/home/guide.ts +2 -2
- package/src/home/home.tsx +24 -1
- package/src/home/products/foyer.ts +3 -3
- package/src/home/products/index.ts +2 -1
- package/src/home/products/sandbox.ts +79 -0
- package/src/home/showcase/catalog.ts +12 -2
- package/src/home/showcase/foyer/book.tsx +2 -2
- package/src/home/showcase/foyer/pantry.tsx +1 -1
- package/src/home/showcase/foyer/parts.tsx +3 -3
- package/src/home/showcase/foyer/phone.tsx +1 -1
- package/src/home/showcase/foyer/sample.ts +6 -6
- package/src/home/showcase/foyer/week.tsx +1 -1
- package/src/home/showcase/sandbox/sample.ts +63 -0
- package/src/home/showcase/sandbox/terminal.tsx +126 -0
- package/src/home/showcase/view.tsx +2 -0
- package/src/home/types.ts +4 -0
- package/src/paints.ts +14 -4
- package/src/products.ts +36 -5
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
// Spunto Sandbox's facts — the figures its home editions quote. The editions themselves are data:
|
|
2
|
+
// ../editions/sandbox.json.
|
|
3
|
+
//
|
|
4
|
+
// Every figure is one spuntodotnet/sandbox measured and printed, with where it was measured: most on a
|
|
5
|
+
// GCP n2-standard-8 with nested virtualization (every VM exit dearer: slower than bare metal), the
|
|
6
|
+
// bare-metal ones on the OVH server Spunto Cloud's engine was built on. The product's site imports its
|
|
7
|
+
// published edition: `<ProductHome product="sandbox" />` (PUBLISHED in ../editions.ts).
|
|
8
|
+
//
|
|
9
|
+
// Source of the words: spuntodotnet/sandbox @ ac4a9b8 (v0.1.1, 2026-11-25), README.md, and its docs
|
|
10
|
+
// site (docs/site @ f0639c5: docs/content/docs/*.mdx). Not claimed: macOS or ARM (« not yet »), a
|
|
11
|
+
// package on npm (the SDK ships in the release for now), anything of Spunto Cloud's platform — its
|
|
12
|
+
// API, dashboard, projects, agents (docs/content/docs/spunto-cloud.mdx: « what a platform adds »).
|
|
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 README = "spuntodotnet/sandbox @ ac4a9b8, README.md « Measured »"
|
|
20
|
+
const BENCH = "docs/content/docs/benchmarks.mdx (docs/site @ f0639c5)"
|
|
21
|
+
const NESTED = "GCP n2-standard-8, nested virtualization, a small box (1 vCPU, 2 GB), 2026-11-25"
|
|
22
|
+
const METAL = "Spunto Cloud's bare-metal OVH server"
|
|
23
|
+
|
|
24
|
+
export const facts: Fact[] = [
|
|
25
|
+
{
|
|
26
|
+
id: "sandbox-run",
|
|
27
|
+
value: w("2.5 s", "2,5 s"),
|
|
28
|
+
label: w("a new microVM, its image already there: sbx run ubuntu:24.04", "une nouvelle microVM, son image déjà là : sbx run ubuntu:24.04"),
|
|
29
|
+
source: `${README}; ${BENCH} — ${NESTED}`,
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
id: "sandbox-run-first",
|
|
33
|
+
value: w("7.6 s", "7,6 s"),
|
|
34
|
+
label: w("the first box of an image: pulled, unpacked in a microVM, booted", "la première boîte d’une image : tirée, dépaquetée dans une microVM, démarrée"),
|
|
35
|
+
source: `${README}; ${BENCH} — ${NESTED}`,
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
id: "sandbox-pause",
|
|
39
|
+
value: w("0.8 s", "0,8 s"),
|
|
40
|
+
label: w("a pause: all of its RAM written, nothing runs", "une pause : toute sa RAM écrite, plus rien ne tourne"),
|
|
41
|
+
source: `${README}; ${BENCH} — ${NESTED}`,
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
id: "sandbox-resume",
|
|
45
|
+
value: w("0.34 s", "0,34 s"),
|
|
46
|
+
label: w("a resume, every process where it was, until its agent answers", "une reprise, chaque processus où il en était, jusqu’à ce que son agent réponde"),
|
|
47
|
+
source: `${README}; ${BENCH} (0.27 – 0.34 s) — ${NESTED}`,
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
id: "sandbox-fork",
|
|
51
|
+
value: w("63 ms", "63 ms"),
|
|
52
|
+
label: w("how long a fork pauses the box it copies", "le temps qu’un fork met en pause la boîte qu’il copie"),
|
|
53
|
+
source: `${README}; ${BENCH} (39 – 77 ms) — ${NESTED}`,
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
id: "sandbox-fork-copy",
|
|
57
|
+
value: w("1.2 s", "1,2 s"),
|
|
58
|
+
label: w("until the copy runs, same memory, same processes", "jusqu’à ce que la copie tourne, même mémoire, mêmes processus"),
|
|
59
|
+
source: `${README}; ${BENCH} (0.9 – 1.2 s) — ${NESTED}`,
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
id: "sandbox-from-snapshot",
|
|
63
|
+
value: w("0.36 s", "0,36 s"),
|
|
64
|
+
label: w("a box from a memory snapshot, daemon side", "une boîte depuis un snapshot mémoire, côté démon"),
|
|
65
|
+
source: `${README}; ${BENCH} — ${NESTED}`,
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
id: "sandbox-resume-metal",
|
|
69
|
+
value: w("55–77 ms", "55–77 ms"),
|
|
70
|
+
label: w("a resume on bare metal, daemon side", "une reprise sur machine nue, côté démon"),
|
|
71
|
+
source: `${README}; ${BENCH} « Bare metal » — ${METAL}, the engine's MMDS and drives refreshed`,
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
id: "sandbox-fork-disk",
|
|
75
|
+
value: w("14 MB", "14 Mo"),
|
|
76
|
+
label: w("on disk for a fork's copy of a box holding 1.5 GB of RAM", "sur disque pour la copie d’une boîte qui tient 1,5 Go de RAM"),
|
|
77
|
+
source: `${BENCH} « Bare metal » — ${METAL}`,
|
|
78
|
+
},
|
|
79
|
+
]
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import type { BrandProductId } from "../../products"
|
|
14
14
|
|
|
15
|
-
export type ShowcaseScreenId = "cms-board" | "cms-table" | "cms-page" | "cms-views" | "desktop-wall" | "desktop-drive" | "desktop-handoff" | "desktop-launcher" | "foyer-phone" | "foyer-week" | "foyer-pantry" | "foyer-book"
|
|
15
|
+
export type ShowcaseScreenId = "cms-board" | "cms-table" | "cms-page" | "cms-views" | "desktop-wall" | "desktop-drive" | "desktop-handoff" | "desktop-launcher" | "foyer-phone" | "foyer-week" | "foyer-pantry" | "foyer-book" | "sandbox-terminal"
|
|
16
16
|
|
|
17
17
|
export type ShowcaseScreenMeta = {
|
|
18
18
|
id: ShowcaseScreenId
|
|
@@ -33,9 +33,12 @@ const CMS_SOURCE = "spuntodotnet/spunto-cms@00155ca · apps/next/public/landing/
|
|
|
33
33
|
const DESKTOP_SOURCE = "coderhammer/spunto-desktop@36a6c26 · web/src/app/Desktops.tsx, Shell.tsx (le mur des postes), desktop/branding/* et docs/branding/*.png (fond, barre des tâches, lanceur, fenêtres), server/docs.ts (les requêtes)"
|
|
34
34
|
|
|
35
35
|
// The app speaks English and French: its labels follow the page's language. Its paintings are loaded from where the
|
|
36
|
-
// app serves them (
|
|
36
|
+
// app serves them (tuppa.app/app/illustrations), never copied into the kit (foyer/sample.ts).
|
|
37
37
|
const FOYER_SOURCE = "coderhammer/foyer@aa0f3b1 · app/src/views/menus.jsx, stock.jsx, recettes.jsx, components/cuisine.jsx, panel.jsx (captures d’un foyer « Chez Camille », semaine du 16 au 22 novembre), app/src/i18n/{en,fr}.js, app/public/illustrations"
|
|
38
38
|
|
|
39
|
+
// The CLI speaks English only: its lines are printed as it prints them, on the French page too (sandbox/sample.ts).
|
|
40
|
+
const SANDBOX_SOURCE = "spuntodotnet/sandbox@ac4a9b8 · src/cli/main.ts (ce que sbx écrit), docs/content/docs/quickstart.mdx et benchmarks.mdx de docs/site@f0639c5 (les commandes, les durées mesurées)"
|
|
41
|
+
|
|
39
42
|
export const SHOWCASE_SCREENS: Record<ShowcaseScreenId, ShowcaseScreenMeta> = {
|
|
40
43
|
"cms-board": {
|
|
41
44
|
id: "cms-board",
|
|
@@ -121,6 +124,13 @@ export const SHOWCASE_SCREENS: Record<ShowcaseScreenId, ShowcaseScreenMeta> = {
|
|
|
121
124
|
story: "Le carnet du foyer : la photo d’une page de livre part à l’assistant, il la lit, la recette prend la première place, « À tester », peinte comme sa famille, et les autres cartes lui font de la place.",
|
|
122
125
|
source: FOYER_SOURCE,
|
|
123
126
|
},
|
|
127
|
+
"sandbox-terminal": {
|
|
128
|
+
id: "sandbox-terminal",
|
|
129
|
+
product: "sandbox",
|
|
130
|
+
name: "Terminal",
|
|
131
|
+
story: "Un terminal sur sa propre machine : sbx run ubuntu:24.04 fait une boîte, un compteur y tourne, sbx pause l’arrête mémoire gardée (sbx ls : paused), sbx resume le retrouve qui compte, sbx fork en fait une copie qui compte aussi — chaque sortie arrive après la durée mesurée.",
|
|
132
|
+
source: SANDBOX_SOURCE,
|
|
133
|
+
},
|
|
124
134
|
}
|
|
125
135
|
|
|
126
136
|
export const SHOWCASE_SCREEN_IDS = Object.keys(SHOWCASE_SCREENS) as ShowcaseScreenId[]
|
|
@@ -9,7 +9,7 @@ import { APP, BOOK, FROM_PHOTO, THREAD, UI, type BookCard } from "./sample"
|
|
|
9
9
|
recipe in — the card takes the first place, « À tester », painted as its family (a recipe written by the household
|
|
10
10
|
has no painting of its own), and the others make room.
|
|
11
11
|
|
|
12
|
-
Drawn from app/src/views/recettes.jsx (tabs « Notre carnet » / « Idées
|
|
12
|
+
Drawn from app/src/views/recettes.jsx (tabs « Notre carnet » / « Idées Tuppa », the filters, the cards: painting,
|
|
13
13
|
« De saison », « Officielle » / « À tester », time, « Au menu n fois ») and the assistant's own example prompt,
|
|
14
14
|
« Ajoute cette recette (photo) ». */
|
|
15
15
|
|
|
@@ -30,7 +30,7 @@ export function BookScreen({ lang, colors, night, label }: { lang: Lang; colors:
|
|
|
30
30
|
|
|
31
31
|
return (
|
|
32
32
|
<Stage stageRef={ref} colors={colors} night={night} height={H} label={label}>
|
|
33
|
-
<AppWindow {...WIN} h={H} address="
|
|
33
|
+
<AppWindow {...WIN} h={H} address="tuppa.app/app/#/recettes">
|
|
34
34
|
<AppShell lang={lang} colors={colors} active={1} title={t(UI.recipes, lang)}>
|
|
35
35
|
<div style={{ display: "flex", alignItems: "center", gap: u(8) }}>
|
|
36
36
|
<div style={{ display: "flex", padding: u(2), borderRadius: u(6), background: APP.muted, fontSize: u(9.4) }}>
|
|
@@ -36,7 +36,7 @@ export function PantryScreen({ lang, colors, night, label }: { lang: Lang; color
|
|
|
36
36
|
|
|
37
37
|
return (
|
|
38
38
|
<Stage stageRef={ref} colors={colors} night={night} height={H} label={label}>
|
|
39
|
-
<AppWindow {...WIN} h={H} address="
|
|
39
|
+
<AppWindow {...WIN} h={H} address="tuppa.app/app/#/stock">
|
|
40
40
|
<AppShell lang={lang} colors={colors} active={2} title={t(UI.pantry, lang)}>
|
|
41
41
|
{tiles.map((x, i) => (
|
|
42
42
|
<div key={i} style={{ position: "absolute", left: u(i * (TW + 8)), top: 0, width: u(TW), height: u(62), padding: `${u(8)} ${u(10)}`, borderRadius: u(8), background: APP.muted, boxShadow: `0 0 0 1px ${APP.border}` }}>
|
|
@@ -6,7 +6,7 @@ import { FONT, hexAlpha } from "../../../theme"
|
|
|
6
6
|
import { INK, MUTED, u, type StageColors } from "../stage"
|
|
7
7
|
import { APP, UI } from "./sample"
|
|
8
8
|
|
|
9
|
-
/* What the
|
|
9
|
+
/* What the Tuppa screens share: the app's shell (sidebar, page head), its paintings, its badges and icons.
|
|
10
10
|
Positions are the window's design pixels. */
|
|
11
11
|
|
|
12
12
|
export type Lang = "en" | "fr"
|
|
@@ -63,7 +63,7 @@ export function Painting({ src, w, h, radius = 8, style, children }: { src: stri
|
|
|
63
63
|
)
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
/**
|
|
66
|
+
/** Tuppa's mark: Spunto's `mark` variant on its tile, in the product's colours (app/src/components/logo.jsx:
|
|
67
67
|
`SpuntoLogo tone="product" variant="mark"` — the shapes of design-system/src/brand/logo.ts). */
|
|
68
68
|
export function FoyerMark({ size = 16, colors }: { size?: number; colors: StageColors }) {
|
|
69
69
|
return (
|
|
@@ -144,7 +144,7 @@ export function AppShell({ lang, colors, active, title, children }: { lang: Lang
|
|
|
144
144
|
<div style={{ position: "absolute", left: 0, top: 0, bottom: 0, width: u(SIDEBAR), background: APP.sidebar, borderRight: `1px solid ${APP.border}` }}>
|
|
145
145
|
<div style={{ display: "flex", alignItems: "center", gap: u(7), margin: `${u(14)} ${u(12)} 0`, fontFamily: FONT.display, fontSize: u(13), whiteSpace: "nowrap" }}>
|
|
146
146
|
<FoyerMark size={18} colors={colors} />
|
|
147
|
-
|
|
147
|
+
Tuppa
|
|
148
148
|
</div>
|
|
149
149
|
<div style={{ display: "flex", alignItems: "center", gap: u(6), height: u(26), margin: `${u(13)} ${u(9)} 0`, padding: `0 ${u(8)}`, border: `1px solid ${APP.border}`, borderRadius: u(5), background: APP.card, fontSize: u(10.4) }}>
|
|
150
150
|
<Glyph id="house" size={11} color={MUTED} />
|
|
@@ -48,7 +48,7 @@ export function PhoneScreen({ lang, colors, night, label }: { lang: Lang; colors
|
|
|
48
48
|
{/* the app's top bar */}
|
|
49
49
|
<div style={{ display: "flex", alignItems: "center", gap: u(7), height: u(46), padding: `${u(10)} ${u(14)} 0`, borderBottom: `1px solid ${APP.border}` }}>
|
|
50
50
|
<FoyerMark size={20} colors={colors} />
|
|
51
|
-
<span style={{ fontFamily: FONT.display, fontSize: u(14) }}>
|
|
51
|
+
<span style={{ fontFamily: FONT.display, fontSize: u(14) }}>Tuppa</span>
|
|
52
52
|
<span style={{ marginLeft: "auto", display: "grid", placeItems: "center", width: u(22), height: u(22), borderRadius: u(5), background: "#f6c9c4", color: "#b42318", fontSize: u(9), fontWeight: 600 }}>C</span>
|
|
53
53
|
</div>
|
|
54
54
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// What the
|
|
1
|
+
// What the Tuppa screens show: the app's own words, colours and paintings, not invented ones.
|
|
2
2
|
//
|
|
3
3
|
// Drawn from coderhammer/foyer@aa0f3b1 — the Menus, Stock and Recettes pages (app/src/views/menus.jsx,
|
|
4
4
|
// stock.jsx, recettes.jsx, components/cuisine.jsx), captured on a household seeded like the landing's
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
// (app/src/i18n/en.js, fr.js): its labels follow the page's language.
|
|
7
7
|
//
|
|
8
8
|
// The pictures are the app's own paintings (scripts/illustrations.mjs), loaded from where the app serves
|
|
9
|
-
// them —
|
|
10
|
-
// app would show for it (its recipe's from the
|
|
9
|
+
// them — tuppa.app/app/illustrations — never copied into the kit: a dish shows the painting the
|
|
10
|
+
// app would show for it (its recipe's from the Tuppa cookbook, else its family's; a pantry item its
|
|
11
11
|
// produce's or its shelf's, app/src/lib/illustrations.js). When the app or its paintings change, this
|
|
12
12
|
// file is what to refresh.
|
|
13
13
|
|
|
@@ -16,10 +16,10 @@ import type { Words } from "../../../facts"
|
|
|
16
16
|
const w = (en: string, fr: string): Words => ({ en, fr })
|
|
17
17
|
|
|
18
18
|
/** Where the app serves its paintings. */
|
|
19
|
-
const ILLUS = "https://
|
|
19
|
+
const ILLUS = "https://tuppa.app/app/illustrations"
|
|
20
20
|
export const painting = (path: string) => `${ILLUS}/${path}.webp`
|
|
21
21
|
|
|
22
|
-
/** The app's surfaces: the
|
|
22
|
+
/** The app's surfaces: the Tuppa paint's (`foyer`) light tokens (paints.ts), the one paint of the family that tints them too. */
|
|
23
23
|
export const APP = {
|
|
24
24
|
bg: "#fff9f1",
|
|
25
25
|
card: "#fffdf9",
|
|
@@ -79,7 +79,7 @@ export const UI = {
|
|
|
79
79
|
// Recettes
|
|
80
80
|
recipes: w("Recipes", "Recettes"),
|
|
81
81
|
ours: w("Our cookbook", "Notre carnet"),
|
|
82
|
-
ideas: w("
|
|
82
|
+
ideas: w("Tuppa ideas", "Idées Tuppa"),
|
|
83
83
|
searchBook: w("Recipe, ingredient, tag…", "Recette, ingrédient, étiquette…"),
|
|
84
84
|
newRecipe: w("New recipe", "Nouvelle recette"),
|
|
85
85
|
all: (n: number) => w(`All · ${n}`, `Toutes · ${n}`),
|
|
@@ -31,7 +31,7 @@ export function WeekScreen({ lang, colors, night, label }: { lang: Lang; colors:
|
|
|
31
31
|
|
|
32
32
|
return (
|
|
33
33
|
<Stage stageRef={ref} colors={colors} night={night} height={H} label={label}>
|
|
34
|
-
<AppWindow {...WIN} h={H} address="
|
|
34
|
+
<AppWindow {...WIN} h={H} address="tuppa.app/app/#/menus">
|
|
35
35
|
<AppShell lang={lang} colors={colors} active={0} title={t(UI.nav[0], lang)}>
|
|
36
36
|
<Tonight lang={lang} tone={colors.tone} meal={tonight ? TONIGHT : null} />
|
|
37
37
|
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
// What the Sandbox terminal shows: the quickstart's own commands, and what `sbx` prints for them.
|
|
2
|
+
//
|
|
3
|
+
// From spuntodotnet/sandbox @ ac4a9b8 — the commands are the quickstart's (docs/content/docs/quickstart.mdx on
|
|
4
|
+
// docs/site @ f0639c5: a box, a counter left running in it, pause, resume, fork); every output line is
|
|
5
|
+
// what src/cli/main.ts writes for that command (`run`: « making a sandbox of … » on a terminal's stderr,
|
|
6
|
+
// then « <name> running (<size>, <took>) » and the `sbx shell` hint; `pause`/`resume`: « <name> <state>
|
|
7
|
+
// in <took> », « — memory kept » after a pause; `ls`: its table; `fork`: « <copy> running, a copy of
|
|
8
|
+
// <source> (<source> paused <ms>, copy ready in <took>) »), its `ms()` formatting included (under a second
|
|
9
|
+
// in ms, else in s with one decimal). The durations are the ones measured on a GCP n2-standard-8 with
|
|
10
|
+
// nested virtualization (docs/content/docs/benchmarks.mdx; the quickstart's 819 / 336 ms), and the
|
|
11
|
+
// screen plays each output after that long. The counter's values are an example: it ticks ten times a
|
|
12
|
+
// second, so they are what a person typing at that pace would read. The CLI only speaks English.
|
|
13
|
+
|
|
14
|
+
/** A line as the CLI writes it: `b` in bold (a box's name), then `text`, then `d` dimmed (`dim: true`: all of it). */
|
|
15
|
+
export type TermLine = { b?: string; text?: string; d?: string; dim?: boolean }
|
|
16
|
+
|
|
17
|
+
export type TermStep = {
|
|
18
|
+
/** The command typed — printed as is after the prompt. */
|
|
19
|
+
cmd: string
|
|
20
|
+
/** Before the first output line (ms): how long the command takes, as measured. */
|
|
21
|
+
takes: number
|
|
22
|
+
out: TermLine[]
|
|
23
|
+
/** Lines printed at once, before `takes` (a terminal's stderr while the command runs). */
|
|
24
|
+
now?: TermLine[]
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export const PROMPT = "you@your-machine:~$"
|
|
28
|
+
|
|
29
|
+
const COUNTER = `sbx exec hello -- sh -c 'nohup sh -c "i=0; while :; do i=\\$((i+1)); echo \\$i > /tmp/n; sleep 0.1; done" >/dev/null 2>&1 &'`
|
|
30
|
+
|
|
31
|
+
export const STEPS: TermStep[] = [
|
|
32
|
+
{
|
|
33
|
+
cmd: "sbx run ubuntu:24.04 --name hello",
|
|
34
|
+
now: [{ text: "making a sandbox of ubuntu:24.04…", dim: true }],
|
|
35
|
+
takes: 2500,
|
|
36
|
+
out: [{ b: "hello", text: " running ", d: "(small, 2.5 s)" }, { text: " sbx shell hello" }],
|
|
37
|
+
},
|
|
38
|
+
{ cmd: COUNTER, takes: 400, out: [] },
|
|
39
|
+
{ cmd: "sbx exec hello -- cat /tmp/n", takes: 400, out: [{ text: "37" }] },
|
|
40
|
+
{ cmd: "sbx pause hello", takes: 819, out: [{ b: "hello", text: " paused ", d: "in 819 ms — memory kept" }] },
|
|
41
|
+
{
|
|
42
|
+
cmd: "sbx ls",
|
|
43
|
+
takes: 120,
|
|
44
|
+
out: [
|
|
45
|
+
{ text: "NAME ID STATE SIZE IMAGE AGE", dim: true },
|
|
46
|
+
{ text: "hello k3x9q2m7ab paused small ubuntu:24.04 40s" },
|
|
47
|
+
],
|
|
48
|
+
},
|
|
49
|
+
{ cmd: "sbx resume hello", takes: 336, out: [{ b: "hello", text: " running ", d: "in 336 ms" }] },
|
|
50
|
+
{ cmd: "sbx exec hello -- cat /tmp/n", takes: 400, out: [{ text: "51" }] },
|
|
51
|
+
{
|
|
52
|
+
cmd: "sbx fork hello --name hello-2",
|
|
53
|
+
takes: 1200,
|
|
54
|
+
out: [{ b: "hello-2", text: " running, a copy of hello ", d: "(hello paused 63 ms, copy ready in 1.2 s)" }],
|
|
55
|
+
},
|
|
56
|
+
{ cmd: "sbx exec hello-2 -- cat /tmp/n", takes: 400, out: [{ text: "66" }] },
|
|
57
|
+
]
|
|
58
|
+
|
|
59
|
+
/** What the window's title and the caption say, in the page's language. */
|
|
60
|
+
export const CAPTION = {
|
|
61
|
+
title: { en: "you@your-machine: ~", fr: "you@your-machine: ~" },
|
|
62
|
+
measured: { en: "played at the speed it was measured", fr: "joué à la vitesse mesurée" },
|
|
63
|
+
}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
|
|
3
|
+
import { useRef } from "react"
|
|
4
|
+
import { FONT, hexAlpha } from "../../../theme"
|
|
5
|
+
import { Float, Stage, u, useStage, type StageColors } from "../stage"
|
|
6
|
+
import { CAPTION, PROMPT, STEPS, type TermLine } from "./sample"
|
|
7
|
+
|
|
8
|
+
/* A terminal on someone's own machine: a box made from ubuntu:24.04, a counter left running in it,
|
|
9
|
+
the box paused (`sbx ls` says so), resumed — the counter carried on —, then forked, the copy counting
|
|
10
|
+
too. The quickstart's commands, and what `sbx` prints for them (sample.ts).
|
|
11
|
+
|
|
12
|
+
Each command is typed, then its output comes after as long as the command took when it was measured:
|
|
13
|
+
2.5 s for the run, 819 ms for the pause, 336 ms for the resume, 1.2 s for the fork. The terminal
|
|
14
|
+
scrolls as a terminal does: the newest line at the bottom. */
|
|
15
|
+
|
|
16
|
+
const H = 540
|
|
17
|
+
const TYPE_MS = 18
|
|
18
|
+
const typing = (cmd: string) => Math.min(1100, 260 + cmd.length * TYPE_MS)
|
|
19
|
+
/** How long each step stays: typing, the command's own time, and time to read what it printed. */
|
|
20
|
+
const LENGTHS = STEPS.map((s, i) => typing(s.cmd) + s.takes + (i === STEPS.length - 1 ? 4200 : s.out.length ? 1300 : 600))
|
|
21
|
+
/** Without motion, everything has been typed: the last step, the whole session on screen. */
|
|
22
|
+
const STILL = STEPS.length - 1
|
|
23
|
+
|
|
24
|
+
const BG = "#0e1311"
|
|
25
|
+
const TEXT = "#dfe7e2"
|
|
26
|
+
|
|
27
|
+
const KEYFRAMES = `@keyframes sbx-type { from { clip-path: inset(0 100% 0 0) } to { clip-path: inset(0 0 0 0) } }
|
|
28
|
+
@keyframes sbx-in { from { opacity: 0 } to { opacity: 1 } }
|
|
29
|
+
@media (prefers-reduced-motion: reduce) { [data-sbx-anim] { animation: none !important } }`
|
|
30
|
+
|
|
31
|
+
function Line({ line, delay, colors }: { line: TermLine; delay: number; colors: StageColors }) {
|
|
32
|
+
return (
|
|
33
|
+
<div data-sbx-anim="" style={{ animation: `sbx-in 1ms linear ${delay}ms both`, color: line.dim ? hexAlpha(TEXT, 0.5) : TEXT }}>
|
|
34
|
+
{line.b && <span style={{ fontWeight: 700, color: colors.signal }}>{line.b}</span>}
|
|
35
|
+
{line.text}
|
|
36
|
+
{line.d && <span style={{ color: hexAlpha(TEXT, 0.5) }}>{line.d}</span>}
|
|
37
|
+
{!line.b && !line.text && !line.d && " "}
|
|
38
|
+
</div>
|
|
39
|
+
)
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function TerminalScreen({ lang, colors, night, label }: { lang: "en" | "fr"; colors: StageColors; night: boolean; label: string }) {
|
|
43
|
+
const { ref, step } = useStage(LENGTHS, STILL)
|
|
44
|
+
// A new loop draws a new session: its lines are new elements, so their typing plays again.
|
|
45
|
+
const loop = useRef({ n: 0, prev: step })
|
|
46
|
+
if (step < loop.current.prev) loop.current.n++
|
|
47
|
+
loop.current.prev = step
|
|
48
|
+
|
|
49
|
+
return (
|
|
50
|
+
<Stage stageRef={ref} colors={colors} night={night} height={H} label={label}>
|
|
51
|
+
<style>{KEYFRAMES}</style>
|
|
52
|
+
<div
|
|
53
|
+
style={{
|
|
54
|
+
position: "absolute",
|
|
55
|
+
left: u(40),
|
|
56
|
+
top: u(34),
|
|
57
|
+
width: u(840),
|
|
58
|
+
height: u(452),
|
|
59
|
+
borderRadius: u(9),
|
|
60
|
+
overflow: "hidden",
|
|
61
|
+
background: BG,
|
|
62
|
+
boxShadow: `0 ${u(30)} ${u(70)} ${u(-18)} rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.06)`,
|
|
63
|
+
transform: `translateY(calc(clamp(0, (0.3 - var(--p)) * 4, 1) * ${u(46)}))`,
|
|
64
|
+
opacity: "clamp(0, calc((var(--p) - 0.04) * 7), 1)",
|
|
65
|
+
}}
|
|
66
|
+
>
|
|
67
|
+
<div style={{ position: "relative", height: u(28), display: "flex", alignItems: "center", gap: u(6), padding: `0 ${u(12)}`, background: "#1a201d", borderBottom: "1px solid rgba(255,255,255,0.06)" }}>
|
|
68
|
+
{["#ff5f57", "#febc2e", "#28c840"].map((c) => (
|
|
69
|
+
<span key={c} style={{ width: u(9), height: u(9), borderRadius: "50%", background: hexAlpha(c, 0.85) }} />
|
|
70
|
+
))}
|
|
71
|
+
<span style={{ position: "absolute", left: 0, right: 0, textAlign: "center", fontFamily: FONT.mono, fontSize: u(10), color: hexAlpha(TEXT, 0.55), pointerEvents: "none" }}>{CAPTION.title[lang]}</span>
|
|
72
|
+
</div>
|
|
73
|
+
<div
|
|
74
|
+
style={{
|
|
75
|
+
height: `calc(100% - ${u(28)})`,
|
|
76
|
+
display: "flex",
|
|
77
|
+
flexDirection: "column",
|
|
78
|
+
justifyContent: "flex-end",
|
|
79
|
+
padding: `${u(14)} ${u(18)} ${u(16)}`,
|
|
80
|
+
fontFamily: FONT.mono,
|
|
81
|
+
fontSize: u(12.2),
|
|
82
|
+
lineHeight: 1.62,
|
|
83
|
+
color: TEXT,
|
|
84
|
+
whiteSpace: "pre-wrap",
|
|
85
|
+
wordBreak: "break-all",
|
|
86
|
+
}}
|
|
87
|
+
>
|
|
88
|
+
{STEPS.slice(0, step + 1).map((s, i) => {
|
|
89
|
+
const current = i === step
|
|
90
|
+
const typed = current ? typing(s.cmd) : 0
|
|
91
|
+
const key = `${loop.current.n}-${i}`
|
|
92
|
+
return (
|
|
93
|
+
<div key={key}>
|
|
94
|
+
<div>
|
|
95
|
+
<span style={{ color: colors.signal }}>{PROMPT} </span>
|
|
96
|
+
<span data-sbx-anim="" style={{ animation: current ? `sbx-type ${typed}ms steps(${Math.max(8, Math.round(s.cmd.length / 2))}) both` : "none" }}>
|
|
97
|
+
{s.cmd}
|
|
98
|
+
</span>
|
|
99
|
+
</div>
|
|
100
|
+
{s.now?.map((l, j) => <Line key={`n${j}`} line={l} delay={current ? typed + 60 : 0} colors={colors} />)}
|
|
101
|
+
{s.out.map((l, j) => (
|
|
102
|
+
<Line key={j} line={l} delay={current ? typed + s.takes + j * 40 : 0} colors={colors} />
|
|
103
|
+
))}
|
|
104
|
+
</div>
|
|
105
|
+
)
|
|
106
|
+
})}
|
|
107
|
+
<div>
|
|
108
|
+
{step === STEPS.length - 1 && (
|
|
109
|
+
<span data-sbx-anim="" style={{ animation: `sbx-in 1ms linear ${typing(STEPS[step].cmd) + STEPS[step].takes + 300}ms both` }}>
|
|
110
|
+
<span style={{ color: colors.signal }}>{PROMPT} </span>
|
|
111
|
+
<span style={{ display: "inline-block", width: u(7), height: u(14), verticalAlign: "text-bottom", background: hexAlpha(TEXT, 0.7) }} />
|
|
112
|
+
</span>
|
|
113
|
+
)}
|
|
114
|
+
</div>
|
|
115
|
+
</div>
|
|
116
|
+
</div>
|
|
117
|
+
|
|
118
|
+
<Float x={520} y={470} w={360} depth={120} style={{ background: night ? colors.field : "#ffffff", border: night ? "1px solid rgba(255,255,255,0.14)" : "none" }}>
|
|
119
|
+
<div style={{ display: "flex", alignItems: "center", gap: u(8), padding: `${u(9)} ${u(12)}`, fontFamily: FONT.mono, fontSize: u(9.6), color: night ? hexAlpha("#ffffff", 0.8) : "#56605b" }}>
|
|
120
|
+
<span style={{ width: u(7), height: u(7), borderRadius: "50%", background: colors.signal, flexShrink: 0 }} />
|
|
121
|
+
{CAPTION.measured[lang]} · GCP n2-standard-8
|
|
122
|
+
</div>
|
|
123
|
+
</Float>
|
|
124
|
+
</Stage>
|
|
125
|
+
)
|
|
126
|
+
}
|
|
@@ -16,6 +16,7 @@ import { BookScreen } from "./foyer/book"
|
|
|
16
16
|
import { PantryScreen } from "./foyer/pantry"
|
|
17
17
|
import { PhoneScreen } from "./foyer/phone"
|
|
18
18
|
import { WeekScreen } from "./foyer/week"
|
|
19
|
+
import { TerminalScreen } from "./sandbox/terminal"
|
|
19
20
|
import type { StageColors } from "./stage"
|
|
20
21
|
|
|
21
22
|
/* The client half of a `showcase` section: the home (drawn on the server) hands a screen's id and what
|
|
@@ -36,6 +37,7 @@ const SCREENS: Record<ShowcaseScreenId, (props: ScreenProps) => ReactNode> = {
|
|
|
36
37
|
"foyer-week": WeekScreen,
|
|
37
38
|
"foyer-pantry": PantryScreen,
|
|
38
39
|
"foyer-book": BookScreen,
|
|
40
|
+
"sandbox-terminal": TerminalScreen,
|
|
39
41
|
}
|
|
40
42
|
|
|
41
43
|
export function ShowcaseScreen({ screen, locale, product, theme, palette, label }: { screen: ShowcaseScreenId; locale: "en" | "fr"; product: BrandProductId; theme: BrandTheme; palette?: BrandPalette; label: string }) {
|
package/src/home/types.ts
CHANGED
|
@@ -35,6 +35,8 @@ export type HomeSection =
|
|
|
35
35
|
/** `*stars*` mark the words in the signal colour. */
|
|
36
36
|
title: Words
|
|
37
37
|
lede?: Words
|
|
38
|
+
/** One line to copy, under the lede — an install (`curl … | sudo sh`). The real one, printed as is. */
|
|
39
|
+
command?: string
|
|
38
40
|
actions?: HomeAction[]
|
|
39
41
|
illustration?: IllustrationId
|
|
40
42
|
/** A 3D module beside (split) or under (centered) the copy — or behind it (band). Takes the illustration's place. */
|
|
@@ -132,6 +134,8 @@ export type HomeSection =
|
|
|
132
134
|
lede?: Words
|
|
133
135
|
/** The real one: never a command that doesn't work. */
|
|
134
136
|
command: string
|
|
137
|
+
/** `false`: code (a TypeScript snippet), not a shell line — printed without the `$ `. */
|
|
138
|
+
prompt?: boolean
|
|
135
139
|
caption?: Words
|
|
136
140
|
})
|
|
137
141
|
| (Base & {
|
package/src/paints.ts
CHANGED
|
@@ -18,7 +18,7 @@ import { PALETTE_BY_ID, contrast, hex as oklchHex, type Oklch } from "@spunto/de
|
|
|
18
18
|
/** An OKLCH colour as written in styles.css, without `oklch()` — `"0.28 0.07 335"`. */
|
|
19
19
|
export type Lch = string
|
|
20
20
|
|
|
21
|
-
/** The tokens a paint sets, light and dark. Extra surface tokens (`--background`…) are allowed:
|
|
21
|
+
/** The tokens a paint sets, light and dark. Extra surface tokens (`--background`…) are allowed: Tuppa tints its ground. */
|
|
22
22
|
export type PaintToken =
|
|
23
23
|
| "field" | "signal" | "tone"
|
|
24
24
|
| "primary" | "primary-foreground" | "ring"
|
|
@@ -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" | "search" | "foyer" | "ds"
|
|
31
|
+
export type PaintId = "cloud" | "sprout" | "cms" | "lite" | "browser" | "desktop" | "ci" | "sandbox" | "search" | "foyer" | "ds"
|
|
32
32
|
|
|
33
33
|
export type Paint = {
|
|
34
34
|
id: PaintId
|
|
@@ -43,7 +43,7 @@ export type Paint = {
|
|
|
43
43
|
tone: Lch
|
|
44
44
|
/** The hue of the derived tints (accent, sidebar accent, foregrounds). */
|
|
45
45
|
hue: number
|
|
46
|
-
/** Tokens that leave the rule (Cloud's deep amber primary,
|
|
46
|
+
/** Tokens that leave the rule (Cloud's deep amber primary, Tuppa's warm ground). */
|
|
47
47
|
light?: Partial<Record<PaintToken, Lch>>
|
|
48
48
|
dark?: Partial<Record<PaintToken, Lch>>
|
|
49
49
|
/** Exposed on :root as `--<id>-field`, `--<id>-signal`, `--<id>` (+ Tailwind `bg-<id>-field`…) so one page can show the whole family. */
|
|
@@ -135,6 +135,16 @@ export const PAINTS: Paint[] = [
|
|
|
135
135
|
hue: 120,
|
|
136
136
|
shelf: true,
|
|
137
137
|
},
|
|
138
|
+
{
|
|
139
|
+
id: "sandbox",
|
|
140
|
+
name: "Émeraude · corail",
|
|
141
|
+
note: `Spunto Sandbox — emerald / coral since 2026-11-25 (the \`emerald-coral\` palette): the engine
|
|
142
|
+
of Spunto Cloud, open source, on one's own machine — its own pair, far from Cloud's amber, CI's
|
|
143
|
+
moss and Search's teal`,
|
|
144
|
+
...fromPalette("emerald-coral"),
|
|
145
|
+
hue: 165,
|
|
146
|
+
shelf: true,
|
|
147
|
+
},
|
|
138
148
|
{
|
|
139
149
|
id: "search",
|
|
140
150
|
name: "Sarcelle · eau",
|
|
@@ -146,7 +156,7 @@ export const PAINTS: Paint[] = [
|
|
|
146
156
|
{
|
|
147
157
|
id: "foyer",
|
|
148
158
|
name: "Braise · miel",
|
|
149
|
-
note: `
|
|
159
|
+
note: `Tuppa — braise / miel. Menus, recettes et stock de la cuisine d'un foyer (tuppa.app) : une appli de la
|
|
150
160
|
maison, pas un tableau de bord, d'où la seule exception de la famille — elle teinte aussi les surfaces (fond
|
|
151
161
|
crème chaud en clair, brun de braise en sombre) au lieu de garder le fond quasi neutre de l'univers.`,
|
|
152
162
|
field: "0.27 0.075 32", signal: "0.88 0.15 85", tone: "0.64 0.19 42",
|
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" | "search" | "ds" | "foyer"
|
|
15
|
+
export type BrandProductId = "cloud" | "lite" | "cms" | "desktop" | "ci" | "sandbox" | "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. */
|
|
@@ -51,10 +51,12 @@ export type BrandProduct = {
|
|
|
51
51
|
href: string
|
|
52
52
|
/** The French edition of an external address, when it has one. */
|
|
53
53
|
hrefFr?: string
|
|
54
|
+
/** Its source, when it is open: the repository's address. */
|
|
55
|
+
repo?: string
|
|
54
56
|
/** Absolute. */
|
|
55
57
|
url: string
|
|
56
58
|
/** The product's own site, where its home's relative links point: its origin, and where its French lives
|
|
57
|
-
(`/fr` under the origin; `""` when the site is French at its root, like
|
|
59
|
+
(`/fr` under the origin; `""` when the site is French at its root, like Tuppa). */
|
|
58
60
|
site: { origin: string; fr: string }
|
|
59
61
|
/** Computed from the paint. */
|
|
60
62
|
colors: BrandColors
|
|
@@ -185,6 +187,35 @@ const ENTRIES: Entry[] = [
|
|
|
185
187
|
claim: "Chaque job dans *sa propre microVM*.",
|
|
186
188
|
},
|
|
187
189
|
},
|
|
190
|
+
{
|
|
191
|
+
/* The engine that runs Spunto Cloud, extracted on 2026-11-24 into spuntodotnet/sandbox (RFC 0070) and
|
|
192
|
+
released on its own: not Cloud (hosted sandboxes, by the minute) but the same microVMs on one's own
|
|
193
|
+
machine, open source. Words from its README.md and its docs (docs/content/docs/*.mdx) @ ac4a9b8. */
|
|
194
|
+
id: "sandbox",
|
|
195
|
+
name: "Spunto Sandbox",
|
|
196
|
+
paint: "sandbox",
|
|
197
|
+
family: "product",
|
|
198
|
+
href: "https://sandbox.spunto.net",
|
|
199
|
+
repo: "https://github.com/spuntodotnet/sandbox",
|
|
200
|
+
// English at its root: sandbox.spunto.net has no French edition (its links stay where they are).
|
|
201
|
+
site: { fr: "" },
|
|
202
|
+
en: {
|
|
203
|
+
kind: "microVMs on your machine",
|
|
204
|
+
promise: "Firecracker microVMs on your own Linux machine: the engine of Spunto Cloud, open source.",
|
|
205
|
+
blurb:
|
|
206
|
+
"The engine that runs Spunto Cloud, with a daemon, a CLI and a TypeScript SDK around it, under Apache-2.0. An OCI image in, a microVM in seconds; a pause keeps the memory and a resume brings every process back where it was; a fork copies a running VM. On your hardware: Linux x86_64 with KVM, ZFS underneath.",
|
|
207
|
+
status: "daemon + CLI + SDK",
|
|
208
|
+
claim: "Firecracker microVMs, *on your own machine*.",
|
|
209
|
+
},
|
|
210
|
+
fr: {
|
|
211
|
+
kind: "des microVM chez vous",
|
|
212
|
+
promise: "Des microVM Firecracker sur votre propre machine Linux : le moteur de Spunto Cloud, en open source.",
|
|
213
|
+
blurb:
|
|
214
|
+
"Le moteur qui fait tourner Spunto Cloud, avec un démon, une CLI et un SDK TypeScript autour, sous Apache-2.0. Une image OCI en entrée, une microVM en quelques secondes ; une pause garde la mémoire et une reprise ramène chaque processus où il en était ; un fork copie une VM qui tourne. Sur votre matériel : Linux x86_64 avec KVM, ZFS dessous.",
|
|
215
|
+
status: "démon + CLI + SDK",
|
|
216
|
+
claim: "Des microVM Firecracker, *sur votre propre machine*.",
|
|
217
|
+
},
|
|
218
|
+
},
|
|
188
219
|
{
|
|
189
220
|
id: "search",
|
|
190
221
|
name: "Spunto Search",
|
|
@@ -237,11 +268,11 @@ const ENTRIES: Entry[] = [
|
|
|
237
268
|
},
|
|
238
269
|
{
|
|
239
270
|
id: "foyer",
|
|
240
|
-
name: "
|
|
271
|
+
name: "Tuppa",
|
|
241
272
|
paint: "foyer",
|
|
242
273
|
family: "workshop",
|
|
243
|
-
href: "https://
|
|
244
|
-
// French at its root:
|
|
274
|
+
href: "https://tuppa.app",
|
|
275
|
+
// French at its root: tuppa.app has no English edition.
|
|
245
276
|
site: { fr: "" },
|
|
246
277
|
en: {
|
|
247
278
|
kind: "a household kitchen",
|