@@ -46,7 +46,14 @@ Three core modules form the **ingest → drive → emit** spine: `source` brings
4646events in, ` state ` decides what happens, and ` sink ` fans the resulting effects
4747out. Each is a thin seam you can adopt on its own, and none imports another.
4848
49+ <!--
50+ Canonical Crucible mermaid palette: molten ember/copper over deep steel/charcoal.
51+ These hexes are kept in sync with docs/src/styles/crucible.css and the central
52+ docs theme in docs/src/mermaid-theme.mjs (used by the docs site for every diagram).
53+ GitHub ignores the astro config, so each diagram below carries the same %%{init}%%.
54+ -->
4955``` mermaid
56+ %%{init: {'theme':'base','themeVariables':{'darkMode':true,'background':'#16191d','primaryColor':'#23272c','primaryBorderColor':'#d9620a','primaryTextColor':'#f4f6f8','lineColor':'#c47a3d','secondaryColor':'#353b42','secondaryBorderColor':'#c47a3d','tertiaryColor':'#1b1f24','tertiaryBorderColor':'#2b3036','mainBkg':'#23272c','nodeBorder':'#d9620a','nodeTextColor':'#f4f6f8','clusterBkg':'#1b1f24','clusterBorder':'#c47a3d','titleColor':'#f6a85b','edgeLabelBackground':'#23272c','labelColor':'#f4f6f8','altBackground':'#353b42','textColor':'#f4f6f8'}}}%%
5057flowchart LR
5158 streams[(external streams)] -->|source| engine[state engine]
5259 engine -->|sink| destinations[(destinations)]
@@ -59,6 +66,7 @@ folds an event into a new instance and emits effects as plain data, leaving
5966persistence and dispatch to the host.
6067
6168``` mermaid
69+ %%{init: {'theme':'base','themeVariables':{'darkMode':true,'background':'#16191d','primaryColor':'#23272c','primaryBorderColor':'#d9620a','primaryTextColor':'#f4f6f8','lineColor':'#c47a3d','secondaryColor':'#353b42','secondaryBorderColor':'#c47a3d','tertiaryColor':'#1b1f24','tertiaryBorderColor':'#2b3036','mainBkg':'#23272c','nodeBorder':'#d9620a','nodeTextColor':'#f4f6f8','clusterBkg':'#1b1f24','clusterBorder':'#c47a3d','titleColor':'#f6a85b','edgeLabelBackground':'#23272c','labelColor':'#f4f6f8','altBackground':'#353b42','textColor':'#f4f6f8'}}}%%
6270stateDiagram-v2
6371 [*] --> Idle
6472 Idle --> Working: Start [guard]
@@ -74,6 +82,7 @@ Consumes external streams (Kafka, JetStream, Redis, CDC, and more) and drives a
7482machine, with the ack tied to a durable transition so redelivery is safe.
7583
7684``` mermaid
85+ %%{init: {'theme':'base','themeVariables':{'darkMode':true,'background':'#16191d','primaryColor':'#23272c','primaryBorderColor':'#d9620a','primaryTextColor':'#f4f6f8','lineColor':'#c47a3d','secondaryColor':'#353b42','secondaryBorderColor':'#c47a3d','tertiaryColor':'#1b1f24','tertiaryBorderColor':'#2b3036','mainBkg':'#23272c','nodeBorder':'#d9620a','nodeTextColor':'#f4f6f8','clusterBkg':'#1b1f24','clusterBorder':'#c47a3d','titleColor':'#f6a85b','edgeLabelBackground':'#23272c','labelColor':'#f4f6f8','altBackground':'#353b42','textColor':'#f4f6f8'}}}%%
7786flowchart LR
7887 stream[(stream)] --> decode[decode / codec] --> route["route to (key, event)"] --> fire["Fire on instance"] --> commit[durable commit] --> ack[ack]
7988```
@@ -84,6 +93,7 @@ Fans emitted effects out to many destinations through a `Manifold`,
8493fire-and-forget; one outlet's failure never stops the rest.
8594
8695``` mermaid
96+ %%{init: {'theme':'base','themeVariables':{'darkMode':true,'background':'#16191d','primaryColor':'#23272c','primaryBorderColor':'#d9620a','primaryTextColor':'#f4f6f8','lineColor':'#c47a3d','secondaryColor':'#353b42','secondaryBorderColor':'#c47a3d','tertiaryColor':'#1b1f24','tertiaryBorderColor':'#2b3036','mainBkg':'#23272c','nodeBorder':'#d9620a','nodeTextColor':'#f4f6f8','clusterBkg':'#1b1f24','clusterBorder':'#c47a3d','titleColor':'#f6a85b','edgeLabelBackground':'#23272c','labelColor':'#f4f6f8','altBackground':'#353b42','textColor':'#f4f6f8'}}}%%
8797flowchart LR
8898 effect[emitted effect] --> manifold[Manifold]
8999 manifold --> a[destination A]
0 commit comments