vizmatic 0.1.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/LICENSE +21 -0
- package/PROMPT.md +500 -0
- package/README.md +530 -0
- package/dist/chunk-ADU7JROD.js +627 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +303 -0
- package/dist/index.d.ts +1433 -0
- package/dist/index.js +4702 -0
- package/docs/PROMPT.md +500 -0
- package/docs/assets/examples/.gitkeep +1 -0
- package/docs/assets/examples/agent-pipeline_dark.png +0 -0
- package/docs/assets/examples/agent-pipeline_light.png +0 -0
- package/docs/assets/examples/animated-pipeline_dark.gif +0 -0
- package/docs/assets/examples/animated-pipeline_dark.png +0 -0
- package/docs/assets/examples/animated-pipeline_light.gif +0 -0
- package/docs/assets/examples/animated-pipeline_light.png +0 -0
- package/docs/assets/examples/attention-head_dark.png +0 -0
- package/docs/assets/examples/attention-head_light.png +0 -0
- package/docs/assets/examples/embedding-map_dark.png +0 -0
- package/docs/assets/examples/embedding-map_light.png +0 -0
- package/docs/assets/examples/eval-dashboard_dark.png +0 -0
- package/docs/assets/examples/eval-dashboard_light.png +0 -0
- package/docs/assets/examples/gif-manifest.json +12 -0
- package/docs/assets/examples/manifest.json +108 -0
- package/docs/assets/examples/model-router_dark.png +0 -0
- package/docs/assets/examples/model-router_light.png +0 -0
- package/docs/assets/examples/presentation-frame_dark.png +0 -0
- package/docs/assets/examples/presentation-frame_light.png +0 -0
- package/docs/assets/examples/rag-graph_dark.png +0 -0
- package/docs/assets/examples/rag-graph_light.png +0 -0
- package/docs/assets/examples/release-card_dark.png +0 -0
- package/docs/assets/examples/release-card_light.png +0 -0
- package/docs/assets/examples/research-landscape_dark.png +0 -0
- package/docs/assets/examples/research-landscape_light.png +0 -0
- package/docs/assets/examples/sources.json +93 -0
- package/docs/assets/examples/spec-anatomy_dark.png +0 -0
- package/docs/assets/examples/spec-anatomy_light.png +0 -0
- package/docs/assets/examples/theme-system_dark.png +0 -0
- package/docs/assets/examples/theme-system_light.png +0 -0
- package/docs/assets/examples/token-matrix_dark.png +0 -0
- package/docs/assets/examples/token-matrix_light.png +0 -0
- package/docs/assets/icon.svg +16 -0
- package/docs/assets/logo.svg +30 -0
- package/examples/agent-pipeline.tsx +27 -0
- package/examples/animated-pipeline.tsx +72 -0
- package/examples/attention-head.tsx +27 -0
- package/examples/embedding-map.tsx +34 -0
- package/examples/eval-dashboard.tsx +44 -0
- package/examples/model-router.tsx +35 -0
- package/examples/presentation-frame.tsx +32 -0
- package/examples/rag-graph.tsx +36 -0
- package/examples/release-card.tsx +39 -0
- package/examples/research-landscape.tsx +34 -0
- package/examples/spec-anatomy.tsx +44 -0
- package/examples/theme-system.tsx +30 -0
- package/examples/token-matrix.tsx +49 -0
- package/package.json +84 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" role="img" aria-label="Vizmatic icon">
|
|
2
|
+
<defs>
|
|
3
|
+
<linearGradient id="g" x1="18" y1="14" x2="112" y2="118" gradientUnits="userSpaceOnUse">
|
|
4
|
+
<stop offset="0" stop-color="#22d3ee"/>
|
|
5
|
+
<stop offset="0.46" stop-color="#8b5cf6"/>
|
|
6
|
+
<stop offset="1" stop-color="#10b981"/>
|
|
7
|
+
</linearGradient>
|
|
8
|
+
</defs>
|
|
9
|
+
<rect width="128" height="128" rx="30" fill="#070912"/>
|
|
10
|
+
<rect x="23" y="23" width="82" height="82" rx="22" fill="#101827" stroke="#334155" stroke-width="3"/>
|
|
11
|
+
<rect x="36" y="36" width="24" height="24" rx="8" fill="#1e293b" stroke="#475569"/>
|
|
12
|
+
<rect x="68" y="36" width="24" height="24" rx="8" fill="url(#g)"/>
|
|
13
|
+
<rect x="36" y="68" width="24" height="24" rx="8" fill="url(#g)" opacity="0.86"/>
|
|
14
|
+
<rect x="68" y="68" width="24" height="24" rx="8" fill="#1e293b" stroke="#475569"/>
|
|
15
|
+
<path d="M48 48h32M48 80h32M48 48v32M80 48v32" stroke="#f8fafc" stroke-width="5" stroke-linecap="round"/>
|
|
16
|
+
</svg>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 220" role="img" aria-labelledby="title desc">
|
|
2
|
+
<title id="title">Vizmatic</title>
|
|
3
|
+
<desc id="desc">Vizmatic logo with theme-aware frame grid mark</desc>
|
|
4
|
+
<defs>
|
|
5
|
+
<linearGradient id="vizmatic-a" x1="120" y1="24" x2="210" y2="166" gradientUnits="userSpaceOnUse">
|
|
6
|
+
<stop offset="0" stop-color="#22d3ee"/>
|
|
7
|
+
<stop offset="0.52" stop-color="#8b5cf6"/>
|
|
8
|
+
<stop offset="1" stop-color="#10b981"/>
|
|
9
|
+
</linearGradient>
|
|
10
|
+
<linearGradient id="vizmatic-b" x1="260" y1="52" x2="642" y2="170" gradientUnits="userSpaceOnUse">
|
|
11
|
+
<stop offset="0" stop-color="#f8fafc"/>
|
|
12
|
+
<stop offset="0.55" stop-color="#a78bfa"/>
|
|
13
|
+
<stop offset="1" stop-color="#22d3ee"/>
|
|
14
|
+
</linearGradient>
|
|
15
|
+
<filter id="soft-shadow" x="-30%" y="-30%" width="160%" height="160%">
|
|
16
|
+
<feDropShadow dx="0" dy="18" stdDeviation="18" flood-color="#020617" flood-opacity="0.35"/>
|
|
17
|
+
</filter>
|
|
18
|
+
</defs>
|
|
19
|
+
<rect width="720" height="220" rx="44" fill="#070912"/>
|
|
20
|
+
<g filter="url(#soft-shadow)">
|
|
21
|
+
<rect x="54" y="44" width="142" height="132" rx="28" fill="#101827" stroke="#334155" stroke-width="2"/>
|
|
22
|
+
<rect x="76" y="66" width="42" height="42" rx="14" fill="#1e293b" stroke="#475569"/>
|
|
23
|
+
<rect x="130" y="66" width="42" height="42" rx="14" fill="url(#vizmatic-a)"/>
|
|
24
|
+
<rect x="76" y="120" width="42" height="34" rx="13" fill="url(#vizmatic-a)" opacity="0.82"/>
|
|
25
|
+
<rect x="130" y="120" width="42" height="34" rx="13" fill="#1e293b" stroke="#475569"/>
|
|
26
|
+
<path d="M97 87h54M97 137h54M97 87v50M151 87v50" stroke="#e2e8f0" stroke-width="5" stroke-linecap="round" opacity="0.9"/>
|
|
27
|
+
</g>
|
|
28
|
+
<text x="236" y="125" fill="url(#vizmatic-b)" font-family="Inter, ui-sans-serif, system-ui" font-size="76" font-weight="850" letter-spacing="0">vizmatic</text>
|
|
29
|
+
<text x="241" y="164" fill="#94a3b8" font-family="Inter, ui-sans-serif, system-ui" font-size="22" font-weight="560">theme-aware visuals from structured scenes</text>
|
|
30
|
+
</svg>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { CalloutCard, defineIllustration, Flow, Row, Scene } from 'vizmatic'
|
|
3
|
+
|
|
4
|
+
export const width = 1040
|
|
5
|
+
export const height = 560
|
|
6
|
+
|
|
7
|
+
const frame = defineIllustration((c) =>
|
|
8
|
+
<Scene c={c} title="Agent visual pipeline" subtitle="spec -> themed scene -> verified artifact" gap={26}>
|
|
9
|
+
<Flow
|
|
10
|
+
c={c}
|
|
11
|
+
connectorTone="purple"
|
|
12
|
+
stages={[
|
|
13
|
+
{ eyebrow: 'input', title: 'Prompt', subtitle: 'intent and constraints', tone: 'blue', lines: ['domain language', 'audience', 'theme tokens'], width: 190 },
|
|
14
|
+
{ eyebrow: 'contract', title: 'Scene spec', subtitle: 'typed structure', tone: 'purple', lines: ['cards', 'flows', 'charts', 'tables'], width: 190 },
|
|
15
|
+
{ eyebrow: 'render', title: 'Satori frame', subtitle: 'React primitives', tone: 'cyan', lines: ['layout defaults', 'safe text', 'semantic tones'], width: 190 },
|
|
16
|
+
{ eyebrow: 'output', title: 'PNG / SVG', subtitle: 'CI-ready asset', tone: 'green', lines: ['autocrop', 'overflow checks', 'retina scale'], width: 190 },
|
|
17
|
+
]}
|
|
18
|
+
/>
|
|
19
|
+
<Row width="100%" gap={14}>
|
|
20
|
+
<CalloutCard c={c} title="Model writes structure" detail="No hand-written SVG paths or brittle x/y layout for common cases." tone="purple" width={470} />
|
|
21
|
+
<CalloutCard c={c} title="Design system stays in control" detail="Theme tokens decide color, typography, radius, spacing, and contrast." tone="green" width={470} />
|
|
22
|
+
</Row>
|
|
23
|
+
</Scene>
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
export const create = frame.create
|
|
27
|
+
export default frame.default
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import {
|
|
3
|
+
CalloutCard,
|
|
4
|
+
Column,
|
|
5
|
+
defineIllustration,
|
|
6
|
+
Flow,
|
|
7
|
+
MetricCard,
|
|
8
|
+
Row,
|
|
9
|
+
Scene,
|
|
10
|
+
getThemeColors,
|
|
11
|
+
type AnimatedScene,
|
|
12
|
+
type ThemeMode,
|
|
13
|
+
} from 'vizmatic'
|
|
14
|
+
|
|
15
|
+
export const width = 1040
|
|
16
|
+
export const height = 560
|
|
17
|
+
|
|
18
|
+
const stages = [
|
|
19
|
+
{ eyebrow: 'input', title: 'Prompt', subtitle: 'intent', tone: 'blue' as const, lines: ['goal', 'audience', 'constraints'], width: 190 },
|
|
20
|
+
{ eyebrow: 'contract', title: 'Scene spec', subtitle: 'typed', tone: 'purple' as const, lines: ['cards', 'flows', 'charts'], width: 190 },
|
|
21
|
+
{ eyebrow: 'render', title: 'Satori frame', subtitle: 'React tree', tone: 'cyan' as const, lines: ['layout', 'theme', 'safe text'], width: 190 },
|
|
22
|
+
{ eyebrow: 'output', title: 'GIF / PNG', subtitle: 'verified', tone: 'green' as const, lines: ['autocrop', 'overflow checks', 'retina'], width: 190 },
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
function buildFrame(theme: ThemeMode, active: number) {
|
|
26
|
+
const c = getThemeColors(theme)
|
|
27
|
+
const visibleStages = stages.map((stage, index) => ({
|
|
28
|
+
...stage,
|
|
29
|
+
title: index <= active ? stage.title : 'Pending',
|
|
30
|
+
subtitle: index <= active ? stage.subtitle : 'queued',
|
|
31
|
+
lines: index <= active ? stage.lines : ['waiting', 'for', 'input'],
|
|
32
|
+
tone: index <= active ? stage.tone : 'neutral' as const,
|
|
33
|
+
}))
|
|
34
|
+
|
|
35
|
+
return (
|
|
36
|
+
<Scene c={c} title="Animated render pipeline" subtitle="same scene contract, exported as GIF" gap={24}>
|
|
37
|
+
<Flow c={c} connectorTone="purple" stages={visibleStages} />
|
|
38
|
+
<Row width="100%" gap={14} align="stretch">
|
|
39
|
+
<Column gap={12} width={360}>
|
|
40
|
+
<MetricCard c={c} label="Step" value={`${active + 1}/4`} tone="purple" detail={stages[active].title} width="100%" minHeight={96} />
|
|
41
|
+
<MetricCard c={c} label="Format" value="GIF" tone="green" detail="animated scenes" width="100%" minHeight={96} />
|
|
42
|
+
</Column>
|
|
43
|
+
<CalloutCard
|
|
44
|
+
c={c}
|
|
45
|
+
tone={active === stages.length - 1 ? 'green' : 'ocean'}
|
|
46
|
+
title={active === stages.length - 1 ? 'Ready to share' : 'Scene changes over time'}
|
|
47
|
+
detail="Use createScenes(theme) and render with vizmatic gif."
|
|
48
|
+
width={580}
|
|
49
|
+
minHeight={204}
|
|
50
|
+
/>
|
|
51
|
+
</Row>
|
|
52
|
+
</Scene>
|
|
53
|
+
)
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
const frame = defineIllustration((c) => {
|
|
57
|
+
const theme: ThemeMode = c.bg === getThemeColors('light').bg ? 'light' : 'dark'
|
|
58
|
+
return buildFrame(theme, stages.length - 1)
|
|
59
|
+
})
|
|
60
|
+
|
|
61
|
+
export function createScenes(theme: ThemeMode): AnimatedScene[] {
|
|
62
|
+
return stages.map((_, index) => ({
|
|
63
|
+
element: buildFrame(theme, index),
|
|
64
|
+
duration: index === stages.length - 1 ? 1100 : 760,
|
|
65
|
+
transition: index === 0 ? 'appear' : 'fade',
|
|
66
|
+
transitionDuration: 420,
|
|
67
|
+
label: stages[index].title,
|
|
68
|
+
}))
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export const create = frame.create
|
|
72
|
+
export default frame.default
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { defineIllustration, LayeredNetwork, Scene } from 'vizmatic'
|
|
3
|
+
|
|
4
|
+
export const width = 1040
|
|
5
|
+
export const height = 560
|
|
6
|
+
|
|
7
|
+
const frame = defineIllustration((c) =>
|
|
8
|
+
<Scene c={c} title="Attention head as a routed circuit" subtitle="QK scores choose which value vectors matter" align="center">
|
|
9
|
+
<LayeredNetwork
|
|
10
|
+
c={c}
|
|
11
|
+
width={900}
|
|
12
|
+
height={390}
|
|
13
|
+
activePath={[1, 2, 1, 1]}
|
|
14
|
+
annotations={['query token', 'key match', 'weighted values']}
|
|
15
|
+
formula="softmax(QK^T / sqrt(d_k))V"
|
|
16
|
+
layers={[
|
|
17
|
+
{ title: 'tokens', nodes: ['the', 'model', 'routes'], tone: 'blue' },
|
|
18
|
+
{ title: 'Q/K', nodes: ['q_0', 'q_1', 'q_2', 'k_2'], tone: 'purple' },
|
|
19
|
+
{ title: 'scores', nodes: ['0.08', '0.74', '0.18'], tone: 'cyan' },
|
|
20
|
+
{ title: 'output', nodes: ['context'], tone: 'green' },
|
|
21
|
+
]}
|
|
22
|
+
/>
|
|
23
|
+
</Scene>
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
export const create = frame.create
|
|
27
|
+
export default frame.default
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { defineIllustration, QuadrantChart, Scene } from 'vizmatic'
|
|
3
|
+
|
|
4
|
+
export const width = 1040
|
|
5
|
+
export const height = 560
|
|
6
|
+
|
|
7
|
+
const frame = defineIllustration((c) =>
|
|
8
|
+
<Scene c={c} title="Embedding space triage" subtitle="structured scatterplots with labeled regions" align="center">
|
|
9
|
+
<QuadrantChart
|
|
10
|
+
c={c}
|
|
11
|
+
width={860}
|
|
12
|
+
height={360}
|
|
13
|
+
xAxisLabel="retrieval confidence"
|
|
14
|
+
yAxisLabel="answer usefulness"
|
|
15
|
+
regions={{
|
|
16
|
+
topLeft: { label: 'needs query rewrite', detail: 'useful but hard to retrieve', color: 'warning' },
|
|
17
|
+
topRight: { label: 'ship path', detail: 'relevant and useful', color: 'positive' },
|
|
18
|
+
bottomLeft: { label: 'dead zone', detail: 'low signal', color: 'neutral' },
|
|
19
|
+
bottomRight: { label: 'retrieval trap', detail: 'looks relevant, weak answer', color: 'critical' },
|
|
20
|
+
}}
|
|
21
|
+
points={[
|
|
22
|
+
{ x: 0.84, y: 0.82, label: 'A', color: 'positive', size: 8 },
|
|
23
|
+
{ x: 0.74, y: 0.62, label: 'B', color: 'positive', size: 7 },
|
|
24
|
+
{ x: 0.38, y: 0.76, label: 'C', color: 'warning', size: 8 },
|
|
25
|
+
{ x: 0.66, y: 0.32, label: 'D', color: 'critical', size: 8 },
|
|
26
|
+
{ x: 0.28, y: 0.26, label: 'E', color: 'neutral', size: 7 },
|
|
27
|
+
{ x: 0.48, y: 0.54, label: 'F', color: 'info', size: 7 },
|
|
28
|
+
]}
|
|
29
|
+
/>
|
|
30
|
+
</Scene>
|
|
31
|
+
)
|
|
32
|
+
|
|
33
|
+
export const create = frame.create
|
|
34
|
+
export default frame.default
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { BarChart, CalloutCard, defineIllustration, LineChart, Row, Scene } from 'vizmatic'
|
|
3
|
+
|
|
4
|
+
export const width = 1040
|
|
5
|
+
export const height = 620
|
|
6
|
+
|
|
7
|
+
const frame = defineIllustration((c) =>
|
|
8
|
+
<Scene c={c} title="Evaluation snapshot" subtitle="charts inherit theme, grid, labels, and contrast" gap={18}>
|
|
9
|
+
<Row gap={18} align="stretch">
|
|
10
|
+
<BarChart
|
|
11
|
+
c={c}
|
|
12
|
+
width={440}
|
|
13
|
+
height={260}
|
|
14
|
+
title="Pass rate by task"
|
|
15
|
+
subtitle="held-out suite"
|
|
16
|
+
format="percent"
|
|
17
|
+
data={[
|
|
18
|
+
{ label: 'tools', value: 0.82, color: 'positive' },
|
|
19
|
+
{ label: 'math', value: 0.71, color: 'secondary' },
|
|
20
|
+
{ label: 'code', value: 0.77, color: 'primary' },
|
|
21
|
+
{ label: 'long', value: 0.58, color: 'warning' },
|
|
22
|
+
{ label: 'cite', value: 0.64, color: 'info' },
|
|
23
|
+
]}
|
|
24
|
+
/>
|
|
25
|
+
<LineChart
|
|
26
|
+
c={c}
|
|
27
|
+
width={440}
|
|
28
|
+
height={260}
|
|
29
|
+
title="Quality over releases"
|
|
30
|
+
subtitle="weighted score"
|
|
31
|
+
format="percent"
|
|
32
|
+
labels={['v1', 'v2', 'v3', 'v4', 'v5']}
|
|
33
|
+
series={[
|
|
34
|
+
{ name: 'quality', points: [0.55, 0.61, 0.69, 0.74, 0.81], color: 'positive', area: true },
|
|
35
|
+
{ name: 'latency', points: [0.72, 0.69, 0.66, 0.62, 0.59], color: 'warning' },
|
|
36
|
+
]}
|
|
37
|
+
/>
|
|
38
|
+
</Row>
|
|
39
|
+
<CalloutCard c={c} tone="cyan" title="One theme, many visual forms" detail="Charts, cards, flows, and tables share typography and semantic color tokens." width={900} />
|
|
40
|
+
</Scene>
|
|
41
|
+
)
|
|
42
|
+
|
|
43
|
+
export const create = frame.create
|
|
44
|
+
export default frame.default
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { CalloutCard, Column, defineIllustration, Flow, MetricCard, Row, Scene } from 'vizmatic'
|
|
3
|
+
|
|
4
|
+
export const width = 1040
|
|
5
|
+
export const height = 560
|
|
6
|
+
|
|
7
|
+
const frame = defineIllustration((c) =>
|
|
8
|
+
<Scene c={c} title="Model routing board" subtitle="operational diagrams without custom drawing code" gap={18}>
|
|
9
|
+
<Row gap={18} align="stretch">
|
|
10
|
+
<Flow
|
|
11
|
+
c={c}
|
|
12
|
+
direction="vertical"
|
|
13
|
+
connectorTone="cyan"
|
|
14
|
+
stages={[
|
|
15
|
+
{ title: 'Classify request', subtitle: 'cost + risk + latency', tone: 'blue', width: 300 },
|
|
16
|
+
{ title: 'Pick model', subtitle: 'small / reasoning / vision', tone: 'purple', width: 300 },
|
|
17
|
+
{ title: 'Apply policy', subtitle: 'tools, budget, eval gates', tone: 'warm', width: 300 },
|
|
18
|
+
{ title: 'Observe result', subtitle: 'quality and drift', tone: 'green', width: 300 },
|
|
19
|
+
]}
|
|
20
|
+
/>
|
|
21
|
+
<Column gap={14} width={560}>
|
|
22
|
+
<Row gap={12}>
|
|
23
|
+
<MetricCard c={c} tone="green" label="simple" value="72%" detail="small model" width={170} />
|
|
24
|
+
<MetricCard c={c} tone="purple" label="hard" value="19%" detail="reasoning" width={170} />
|
|
25
|
+
<MetricCard c={c} tone="cyan" label="vision" value="9%" detail="multimodal" width={170} />
|
|
26
|
+
</Row>
|
|
27
|
+
<CalloutCard c={c} tone="ocean" title="Agent-friendly output" detail="The model describes routing stages and metrics; Vizmatic handles layout, spacing, and theme." width={530} minHeight={120} />
|
|
28
|
+
<CalloutCard c={c} tone="critical" title="CI catches clipped frames" detail="Overflow detection fails builds before broken images ship." width={530} minHeight={100} filled={false} />
|
|
29
|
+
</Column>
|
|
30
|
+
</Row>
|
|
31
|
+
</Scene>
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
export const create = frame.create
|
|
35
|
+
export default frame.default
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { CalloutCard, Column, defineIllustration, MetricCard, Panel, Row, Scene, TextLabel } from 'vizmatic'
|
|
3
|
+
|
|
4
|
+
export const width = 1280
|
|
5
|
+
export const height = 720
|
|
6
|
+
|
|
7
|
+
const frame = defineIllustration((c) =>
|
|
8
|
+
<Scene c={c} title="One frame can become a slide" subtitle="same primitive tree, wider canvas" gap={22}>
|
|
9
|
+
<Row gap={20} align="stretch">
|
|
10
|
+
<Panel c={c} title="Narrative" tone="purple" width={430} minHeight={330}>
|
|
11
|
+
<Column gap={13} align="stretch">
|
|
12
|
+
<TextLabel c={c} variant="label" color={c.textPrimary} text="Models are good at structure." />
|
|
13
|
+
<TextLabel c={c} text="Vizmatic turns that structure into a design-system-aware artifact instead of asking the model to draw pixels." />
|
|
14
|
+
<CalloutCard c={c} tone="purple" title="Typed scene contract" detail="Better than raw SVG for agents." align="left" />
|
|
15
|
+
</Column>
|
|
16
|
+
</Panel>
|
|
17
|
+
<Panel c={c} title="Render guarantees" tone="green" width={610} minHeight={330}>
|
|
18
|
+
<Row gap={14} wrap align="stretch">
|
|
19
|
+
<MetricCard c={c} tone="green" label="Output" value="PNG/SVG" detail="retina-ready" width={180} minHeight={106} />
|
|
20
|
+
<MetricCard c={c} tone="cyan" label="Layout" value="flex" detail="no x/y for common paths" width={180} minHeight={106} />
|
|
21
|
+
<MetricCard c={c} tone="warm" label="Checks" value="overflow" detail="fail fast in CI" width={180} minHeight={106} />
|
|
22
|
+
<MetricCard c={c} tone="purple" label="Theme" value="tokens" detail="brand adapters" width={180} minHeight={106} />
|
|
23
|
+
<MetricCard c={c} tone="blue" label="Runtime" value="Node" detail="no browser required" width={180} minHeight={106} />
|
|
24
|
+
<MetricCard c={c} tone="pink" label="Authoring" value="JSX" detail="agent-friendly" width={180} minHeight={106} />
|
|
25
|
+
</Row>
|
|
26
|
+
</Panel>
|
|
27
|
+
</Row>
|
|
28
|
+
</Scene>
|
|
29
|
+
)
|
|
30
|
+
|
|
31
|
+
export const create = frame.create
|
|
32
|
+
export default frame.default
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { defineIllustration, GraphDiagram, Scene } from 'vizmatic'
|
|
3
|
+
|
|
4
|
+
export const width = 1040
|
|
5
|
+
export const height = 560
|
|
6
|
+
|
|
7
|
+
const frame = defineIllustration((c) =>
|
|
8
|
+
<Scene c={c} title="RAG control graph" subtitle="retrieval is a graph, not a linear prompt append" align="center">
|
|
9
|
+
<GraphDiagram
|
|
10
|
+
c={c}
|
|
11
|
+
width={820}
|
|
12
|
+
height={390}
|
|
13
|
+
nodeWidth={150}
|
|
14
|
+
nodes={[
|
|
15
|
+
{ id: 'query', label: 'Query', detail: 'user intent', x: 0.08, y: 0.52, tone: 'blue' },
|
|
16
|
+
{ id: 'rewrite', label: 'Rewrite', detail: 'search form', x: 0.30, y: 0.25, tone: 'purple' },
|
|
17
|
+
{ id: 'retrieve', label: 'Retrieve', detail: 'top-k docs', x: 0.52, y: 0.25, tone: 'cyan' },
|
|
18
|
+
{ id: 'rerank', label: 'Rerank', detail: 'cross-encoder', x: 0.74, y: 0.25, tone: 'warm' },
|
|
19
|
+
{ id: 'answer', label: 'Answer', detail: 'grounded draft', x: 0.92, y: 0.52, tone: 'green' },
|
|
20
|
+
{ id: 'verify', label: 'Verify', detail: 'citations', x: 0.52, y: 0.78, tone: 'critical' },
|
|
21
|
+
]}
|
|
22
|
+
edges={[
|
|
23
|
+
{ from: 'query', to: 'rewrite', label: 'normalize', tone: 'blue' },
|
|
24
|
+
{ from: 'rewrite', to: 'retrieve', label: 'search', tone: 'purple' },
|
|
25
|
+
{ from: 'retrieve', to: 'rerank', label: 'rank', tone: 'cyan' },
|
|
26
|
+
{ from: 'rerank', to: 'answer', label: 'context', tone: 'green' },
|
|
27
|
+
{ from: 'answer', to: 'verify', label: 'claims', tone: 'critical' },
|
|
28
|
+
{ from: 'verify', to: 'retrieve', label: 'retry', dashed: true, tone: 'warm' },
|
|
29
|
+
{ from: 'query', to: 'answer', label: 'direct?', muted: true },
|
|
30
|
+
]}
|
|
31
|
+
/>
|
|
32
|
+
</Scene>
|
|
33
|
+
)
|
|
34
|
+
|
|
35
|
+
export const create = frame.create
|
|
36
|
+
export default frame.default
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { CalloutCard, Column, defineIllustration, MetricCard, MiniBarChart, Panel, Row, Scene, TextLabel } from 'vizmatic'
|
|
3
|
+
|
|
4
|
+
export const width = 1040
|
|
5
|
+
export const height = 560
|
|
6
|
+
|
|
7
|
+
const frame = defineIllustration((c) =>
|
|
8
|
+
<Scene c={c} title="Release readiness card" subtitle="compact operational visuals for reports and decks" gap={18}>
|
|
9
|
+
<Row gap={18} align="stretch">
|
|
10
|
+
<Panel c={c} title="Checks" tone="green" width={360}>
|
|
11
|
+
<Column gap={12} align="stretch">
|
|
12
|
+
<MetricCard c={c} tone="green" label="unit" value="418" detail="passing" width="100%" />
|
|
13
|
+
<MetricCard c={c} tone="cyan" label="visual" value="12" detail="frames rendered" width="100%" />
|
|
14
|
+
<MetricCard c={c} tone="warm" label="bundle" value="42kB" detail="minified core" width="100%" />
|
|
15
|
+
</Column>
|
|
16
|
+
</Panel>
|
|
17
|
+
<Panel c={c} title="Risk burn-down" tone="purple" width={360}>
|
|
18
|
+
<MiniBarChart
|
|
19
|
+
c={c}
|
|
20
|
+
showValues
|
|
21
|
+
data={[
|
|
22
|
+
{ label: 'Mon', value: 8, tone: 'critical', valueLabel: '8' },
|
|
23
|
+
{ label: 'Tue', value: 6, tone: 'warm', valueLabel: '6' },
|
|
24
|
+
{ label: 'Wed', value: 4, tone: 'cyan', valueLabel: '4' },
|
|
25
|
+
{ label: 'Thu', value: 2, tone: 'green', valueLabel: '2' },
|
|
26
|
+
{ label: 'Fri', value: 1, tone: 'green', valueLabel: '1' },
|
|
27
|
+
]}
|
|
28
|
+
/>
|
|
29
|
+
<TextLabel c={c} text="Mini charts work inside cards, callouts, and dashboards." align="center" />
|
|
30
|
+
</Panel>
|
|
31
|
+
<Panel c={c} title="Decision" tone="ocean" width={220}>
|
|
32
|
+
<CalloutCard c={c} tone="ocean" title="Ship" detail="all release gates are green" minHeight={190} />
|
|
33
|
+
</Panel>
|
|
34
|
+
</Row>
|
|
35
|
+
</Scene>
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
export const create = frame.create
|
|
39
|
+
export default frame.default
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { defineIllustration, ScatterPlot, Scene } from 'vizmatic'
|
|
3
|
+
|
|
4
|
+
export const width = 1040
|
|
5
|
+
export const height = 560
|
|
6
|
+
|
|
7
|
+
const frame = defineIllustration((c) =>
|
|
8
|
+
<Scene c={c} title="Research landscape" subtitle="scatterplots stay legible without hand-placed labels" align="center">
|
|
9
|
+
<ScatterPlot
|
|
10
|
+
c={c}
|
|
11
|
+
width={840}
|
|
12
|
+
height={390}
|
|
13
|
+
title="Approach tradeoff"
|
|
14
|
+
subtitle="illustrative positions"
|
|
15
|
+
xAxisLabel="implementation complexity"
|
|
16
|
+
yAxisLabel="visual fidelity"
|
|
17
|
+
xMin={0}
|
|
18
|
+
xMax={10}
|
|
19
|
+
yMin={0}
|
|
20
|
+
yMax={10}
|
|
21
|
+
points={[
|
|
22
|
+
{ x: 2.0, y: 3.0, label: 'Mermaid', color: 'secondary', size: 8 },
|
|
23
|
+
{ x: 3.8, y: 5.8, label: 'D2', color: 'info', size: 8 },
|
|
24
|
+
{ x: 6.8, y: 7.2, label: 'Canvas SDK', color: 'warning', size: 9 },
|
|
25
|
+
{ x: 5.8, y: 8.4, label: 'Vizmatic', color: 'positive', size: 10 },
|
|
26
|
+
{ x: 8.6, y: 9.0, label: 'Custom SVG', color: 'critical', size: 8 },
|
|
27
|
+
{ x: 4.9, y: 6.6, label: 'Vega', color: 'purple', size: 8 },
|
|
28
|
+
]}
|
|
29
|
+
/>
|
|
30
|
+
</Scene>
|
|
31
|
+
)
|
|
32
|
+
|
|
33
|
+
export const create = frame.create
|
|
34
|
+
export default frame.default
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { DataTable, defineIllustration, Flow, Panel, Row, Scene, TextLabel } from 'vizmatic'
|
|
3
|
+
|
|
4
|
+
export const width = 1040
|
|
5
|
+
export const height = 680
|
|
6
|
+
|
|
7
|
+
const frame = defineIllustration((c) =>
|
|
8
|
+
<Scene c={c} title="Scene spec anatomy" subtitle="strong defaults with escape hatches" gap={18}>
|
|
9
|
+
<Row gap={18} align="stretch">
|
|
10
|
+
<Panel c={c} title="Spec fields" tone="purple" width={420} align="center">
|
|
11
|
+
<DataTable
|
|
12
|
+
c={c}
|
|
13
|
+
firstColWidth={110}
|
|
14
|
+
cellWidth={210}
|
|
15
|
+
cellHeight={34}
|
|
16
|
+
rows={[
|
|
17
|
+
['field', 'meaning'],
|
|
18
|
+
['canvas', 'width, height, theme'],
|
|
19
|
+
['layout', 'row, column, flow, grid'],
|
|
20
|
+
['content', 'labels, metrics, chart data'],
|
|
21
|
+
['tone', 'semantic color token'],
|
|
22
|
+
['verify', 'overflow and bounds'],
|
|
23
|
+
]}
|
|
24
|
+
/>
|
|
25
|
+
</Panel>
|
|
26
|
+
<Panel c={c} title="Render path" tone="cyan" width={520}>
|
|
27
|
+
<Flow
|
|
28
|
+
c={c}
|
|
29
|
+
direction="vertical"
|
|
30
|
+
stages={[
|
|
31
|
+
{ title: 'Validate', subtitle: 'typed module or schema', tone: 'blue', width: 430 },
|
|
32
|
+
{ title: 'Compose', subtitle: 'React primitive tree', tone: 'purple', width: 430 },
|
|
33
|
+
{ title: 'Render', subtitle: 'Satori + resvg', tone: 'cyan', width: 430 },
|
|
34
|
+
{ title: 'Verify', subtitle: 'crop, contrast, overflow', tone: 'green', width: 430 },
|
|
35
|
+
]}
|
|
36
|
+
/>
|
|
37
|
+
<TextLabel c={c} text="Use raw SVG only where custom geometry is the point." align="center" width={440} />
|
|
38
|
+
</Panel>
|
|
39
|
+
</Row>
|
|
40
|
+
</Scene>
|
|
41
|
+
)
|
|
42
|
+
|
|
43
|
+
export const create = frame.create
|
|
44
|
+
export default frame.default
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { CalloutCard, Column, defineIllustration, MetricCard, Panel, Row, Scene, StepCard, TextLabel, ToneStrip } from 'vizmatic'
|
|
3
|
+
|
|
4
|
+
export const width = 1040
|
|
5
|
+
export const height = 560
|
|
6
|
+
|
|
7
|
+
const tones = ['blue', 'purple', 'green', 'warm', 'cyan', 'pink', 'critical', 'ocean'] as const
|
|
8
|
+
|
|
9
|
+
const frame = defineIllustration((c) =>
|
|
10
|
+
<Scene c={c} title="Theme-aware primitives" subtitle="semantic tones, not hard-coded colors" gap={18}>
|
|
11
|
+
<Row gap={14} wrap width="100%">
|
|
12
|
+
{tones.map((tone) => (
|
|
13
|
+
<Panel key={tone} c={c} title={tone} tone={tone} width={225} minHeight={106}>
|
|
14
|
+
<Column gap={9} align="stretch">
|
|
15
|
+
<ToneStrip tone={tone} width={62} />
|
|
16
|
+
<TextLabel c={c} text="inherits border, fill, label, and chart color" fontSize={11} />
|
|
17
|
+
</Column>
|
|
18
|
+
</Panel>
|
|
19
|
+
))}
|
|
20
|
+
</Row>
|
|
21
|
+
<Row gap={14}>
|
|
22
|
+
<StepCard c={c} tone="purple" title="Spec first" subtitle="models write intent" width={210} />
|
|
23
|
+
<MetricCard c={c} tone="green" label="Themes" value="2 modes" detail="dark + light" width={180} />
|
|
24
|
+
<CalloutCard c={c} tone="ocean" title="Adapters own the brand" detail="Bring your own palette and typography." width={430} />
|
|
25
|
+
</Row>
|
|
26
|
+
</Scene>
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
export const create = frame.create
|
|
30
|
+
export default frame.default
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { Column, DataTable, defineIllustration, Grid, Panel, Row, Scene, TextLabel } from 'vizmatic'
|
|
3
|
+
|
|
4
|
+
export const width = 1040
|
|
5
|
+
export const height = 560
|
|
6
|
+
|
|
7
|
+
const heat = ['#172033', '#123044', '#0f4a58', '#126a5b', '#6c7f2c', '#b46b24', '#d54545']
|
|
8
|
+
|
|
9
|
+
const frame = defineIllustration((c) =>
|
|
10
|
+
<Scene c={c} title="Token matrix view" subtitle="tables and grids use wrapping-safe cells" gap={18}>
|
|
11
|
+
<Row gap={18} align="stretch">
|
|
12
|
+
<Panel c={c} title="Attention weights" tone="purple" width={480} align="center">
|
|
13
|
+
<Grid
|
|
14
|
+
c={c}
|
|
15
|
+
cellWidth={48}
|
|
16
|
+
cellHeight={34}
|
|
17
|
+
headerRows={1}
|
|
18
|
+
headerCols={1}
|
|
19
|
+
rows={[
|
|
20
|
+
['', 'the', 'cat', 'sat', 'down'],
|
|
21
|
+
['the', { label: '.91', backgroundColor: heat[6] }, { label: '.04', backgroundColor: heat[1] }, { label: '.03', backgroundColor: heat[1] }, { label: '.02', backgroundColor: heat[0] }],
|
|
22
|
+
['cat', { label: '.10', backgroundColor: heat[2] }, { label: '.70', backgroundColor: heat[5] }, { label: '.14', backgroundColor: heat[3] }, { label: '.06', backgroundColor: heat[1] }],
|
|
23
|
+
['sat', { label: '.05', backgroundColor: heat[1] }, { label: '.22', backgroundColor: heat[4] }, { label: '.61', backgroundColor: heat[5] }, { label: '.12', backgroundColor: heat[2] }],
|
|
24
|
+
['down', { label: '.03', backgroundColor: heat[0] }, { label: '.09', backgroundColor: heat[2] }, { label: '.18', backgroundColor: heat[3] }, { label: '.70', backgroundColor: heat[5] }],
|
|
25
|
+
]}
|
|
26
|
+
/>
|
|
27
|
+
</Panel>
|
|
28
|
+
<Panel c={c} title="Feature table" tone="cyan" width={420} align="center">
|
|
29
|
+
<Column gap={12}>
|
|
30
|
+
<DataTable
|
|
31
|
+
c={c}
|
|
32
|
+
firstColWidth={98}
|
|
33
|
+
cellWidth={76}
|
|
34
|
+
rows={[
|
|
35
|
+
['metric', 'base', 'tuned', 'delta'],
|
|
36
|
+
['BLEU', '31.2', '34.8', '+3.6'],
|
|
37
|
+
['faith', '.72', '.81', '+.09'],
|
|
38
|
+
['latency', '1.3s', '1.1s', '-.2s'],
|
|
39
|
+
]}
|
|
40
|
+
/>
|
|
41
|
+
<TextLabel c={c} text="Same component renders dark and light themes without rewriting cells." align="center" width={330} />
|
|
42
|
+
</Column>
|
|
43
|
+
</Panel>
|
|
44
|
+
</Row>
|
|
45
|
+
</Scene>
|
|
46
|
+
)
|
|
47
|
+
|
|
48
|
+
export const create = frame.create
|
|
49
|
+
export default frame.default
|