@taloswork/ose-shared 0.1.8 → 0.1.10
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/mcp/gen/mcp.json +2 -2
- package/package.json +3 -3
- package/skills/cozy-static-svg/SKILL.md +76 -0
- package/skills/cozy-static-svg/references/approved-preview.png +0 -0
- package/skills/cozy-static-svg/references/cross-platform.md +73 -0
- package/skills/cozy-static-svg/references/moon_keeps_watch.svg +229 -0
- package/skills/cozy-static-svg/references/style-anchor.md +271 -0
- package/skills/cozy-static-svg/scripts/artkit.py +321 -0
- package/skills/cozy-static-svg/scripts/to_png.py +333 -0
- package/skills/diagram-design/SKILL.md +568 -0
- package/skills/diagram-design/assets/example-architecture-dark.html +182 -0
- package/skills/diagram-design/assets/example-architecture-full.html +194 -0
- package/skills/diagram-design/assets/example-architecture.html +183 -0
- package/skills/diagram-design/assets/example-bar-dark.html +129 -0
- package/skills/diagram-design/assets/example-bar-full.html +105 -0
- package/skills/diagram-design/assets/example-bar.html +129 -0
- package/skills/diagram-design/assets/example-data-flow-dark.html +143 -0
- package/skills/diagram-design/assets/example-data-flow-full.html +185 -0
- package/skills/diagram-design/assets/example-data-flow.html +143 -0
- package/skills/diagram-design/assets/example-datalake-dark.html +243 -0
- package/skills/diagram-design/assets/example-datalake-full.html +248 -0
- package/skills/diagram-design/assets/example-datalake.html +269 -0
- package/skills/diagram-design/assets/example-dp-integration-dark.html +80 -0
- package/skills/diagram-design/assets/example-dp-integration-full.html +90 -0
- package/skills/diagram-design/assets/example-dp-integration.html +80 -0
- package/skills/diagram-design/assets/example-dp-security-matrix-dark.html +31 -0
- package/skills/diagram-design/assets/example-dp-security-matrix-full.html +32 -0
- package/skills/diagram-design/assets/example-dp-security-matrix.html +88 -0
- package/skills/diagram-design/assets/example-er-dark.html +202 -0
- package/skills/diagram-design/assets/example-er-full.html +205 -0
- package/skills/diagram-design/assets/example-er.html +202 -0
- package/skills/diagram-design/assets/example-flowchart-dark.html +156 -0
- package/skills/diagram-design/assets/example-flowchart-full.html +159 -0
- package/skills/diagram-design/assets/example-flowchart.html +156 -0
- package/skills/diagram-design/assets/example-gantt-dark.html +137 -0
- package/skills/diagram-design/assets/example-gantt-full.html +127 -0
- package/skills/diagram-design/assets/example-gantt.html +137 -0
- package/skills/diagram-design/assets/example-high-level-dark.html +251 -0
- package/skills/diagram-design/assets/example-high-level-full.html +247 -0
- package/skills/diagram-design/assets/example-high-level-vertical-dark.html +274 -0
- package/skills/diagram-design/assets/example-high-level-vertical-full.html +252 -0
- package/skills/diagram-design/assets/example-high-level-vertical.html +325 -0
- package/skills/diagram-design/assets/example-high-level.html +301 -0
- package/skills/diagram-design/assets/example-import-drawio.html +185 -0
- package/skills/diagram-design/assets/example-import-mermaid.html +70 -0
- package/skills/diagram-design/assets/example-it-state-dark.html +90 -0
- package/skills/diagram-design/assets/example-it-state-full.html +69 -0
- package/skills/diagram-design/assets/example-it-state.html +128 -0
- package/skills/diagram-design/assets/example-layers-dark.html +123 -0
- package/skills/diagram-design/assets/example-layers-full.html +126 -0
- package/skills/diagram-design/assets/example-layers.html +123 -0
- package/skills/diagram-design/assets/example-line-dark.html +111 -0
- package/skills/diagram-design/assets/example-line-full.html +105 -0
- package/skills/diagram-design/assets/example-line.html +111 -0
- package/skills/diagram-design/assets/example-loop-dark.html +100 -0
- package/skills/diagram-design/assets/example-loop-full.html +137 -0
- package/skills/diagram-design/assets/example-loop-terminal.html +347 -0
- package/skills/diagram-design/assets/example-loop.html +100 -0
- package/skills/diagram-design/assets/example-medallion-dark.html +159 -0
- package/skills/diagram-design/assets/example-medallion-full.html +201 -0
- package/skills/diagram-design/assets/example-medallion.html +159 -0
- package/skills/diagram-design/assets/example-nested-dark.html +132 -0
- package/skills/diagram-design/assets/example-nested-full.html +135 -0
- package/skills/diagram-design/assets/example-nested.html +136 -0
- package/skills/diagram-design/assets/example-org-chart-dark.html +45 -0
- package/skills/diagram-design/assets/example-org-chart-full.html +45 -0
- package/skills/diagram-design/assets/example-org-chart.html +45 -0
- package/skills/diagram-design/assets/example-paved-road-animated.html +546 -0
- package/skills/diagram-design/assets/example-policy-trace-animated.html +490 -0
- package/skills/diagram-design/assets/example-process-dark.html +64 -0
- package/skills/diagram-design/assets/example-process-full.html +74 -0
- package/skills/diagram-design/assets/example-process.html +64 -0
- package/skills/diagram-design/assets/example-pyramid-dark.html +119 -0
- package/skills/diagram-design/assets/example-pyramid-full.html +122 -0
- package/skills/diagram-design/assets/example-pyramid.html +119 -0
- package/skills/diagram-design/assets/example-quadrant-consultant.html +166 -0
- package/skills/diagram-design/assets/example-quadrant-dark.html +135 -0
- package/skills/diagram-design/assets/example-quadrant-full.html +138 -0
- package/skills/diagram-design/assets/example-quadrant.html +135 -0
- package/skills/diagram-design/assets/example-queue-animated.html +577 -0
- package/skills/diagram-design/assets/example-radar-dark.html +139 -0
- package/skills/diagram-design/assets/example-radar-full.html +135 -0
- package/skills/diagram-design/assets/example-radar.html +139 -0
- package/skills/diagram-design/assets/example-scatter-dark.html +141 -0
- package/skills/diagram-design/assets/example-scatter-full.html +116 -0
- package/skills/diagram-design/assets/example-scatter.html +141 -0
- package/skills/diagram-design/assets/example-sequence-dark.html +222 -0
- package/skills/diagram-design/assets/example-sequence-full.html +388 -0
- package/skills/diagram-design/assets/example-sequence-oauth-dark.html +188 -0
- package/skills/diagram-design/assets/example-sequence-oauth-full.html +350 -0
- package/skills/diagram-design/assets/example-sequence-oauth.html +227 -0
- package/skills/diagram-design/assets/example-sequence.html +222 -0
- package/skills/diagram-design/assets/example-state-dark.html +147 -0
- package/skills/diagram-design/assets/example-state-full.html +150 -0
- package/skills/diagram-design/assets/example-state.html +147 -0
- package/skills/diagram-design/assets/example-swimlane-dark.html +172 -0
- package/skills/diagram-design/assets/example-swimlane-full.html +175 -0
- package/skills/diagram-design/assets/example-swimlane.html +172 -0
- package/skills/diagram-design/assets/example-timeline-dark.html +135 -0
- package/skills/diagram-design/assets/example-timeline-full.html +138 -0
- package/skills/diagram-design/assets/example-timeline.html +135 -0
- package/skills/diagram-design/assets/example-tree-dark.html +173 -0
- package/skills/diagram-design/assets/example-tree-full.html +176 -0
- package/skills/diagram-design/assets/example-tree.html +173 -0
- package/skills/diagram-design/assets/example-venn-dark.html +132 -0
- package/skills/diagram-design/assets/example-venn-full.html +135 -0
- package/skills/diagram-design/assets/example-venn.html +110 -0
- package/skills/diagram-design/assets/icons.html +230 -0
- package/skills/diagram-design/assets/index.html +369 -0
- package/skills/diagram-design/assets/template-dark.html +85 -0
- package/skills/diagram-design/assets/template-full.html +413 -0
- package/skills/diagram-design/assets/template-motion.html +434 -0
- package/skills/diagram-design/assets/template-terminal.html +173 -0
- package/skills/diagram-design/assets/template.html +86 -0
- package/skills/diagram-design/references/animation.md +141 -0
- package/skills/diagram-design/references/export.md +136 -0
- package/skills/diagram-design/references/import-drawio.md +171 -0
- package/skills/diagram-design/references/import-mermaid.md +126 -0
- package/skills/diagram-design/references/onboarding.md +297 -0
- package/skills/diagram-design/references/output-spec.md +181 -0
- package/skills/diagram-design/references/primitive-annotation.md +36 -0
- package/skills/diagram-design/references/primitive-icons.md +827 -0
- package/skills/diagram-design/references/primitive-sketchy.md +43 -0
- package/skills/diagram-design/references/primitive-terminal.md +76 -0
- package/skills/diagram-design/references/semantic-patterns.md +122 -0
- package/skills/diagram-design/references/style-guide.md +139 -0
- package/skills/diagram-design/references/type-architecture.md +78 -0
- package/skills/diagram-design/references/type-bar.md +48 -0
- package/skills/diagram-design/references/type-data-flow.md +374 -0
- package/skills/diagram-design/references/type-dp-integration.md +410 -0
- package/skills/diagram-design/references/type-dp-security-matrix.md +379 -0
- package/skills/diagram-design/references/type-er.md +23 -0
- package/skills/diagram-design/references/type-flowchart.md +23 -0
- package/skills/diagram-design/references/type-gantt.md +45 -0
- package/skills/diagram-design/references/type-high-level.md +458 -0
- package/skills/diagram-design/references/type-it-state.md +470 -0
- package/skills/diagram-design/references/type-layers.md +26 -0
- package/skills/diagram-design/references/type-line.md +44 -0
- package/skills/diagram-design/references/type-loop.md +223 -0
- package/skills/diagram-design/references/type-medallion.md +356 -0
- package/skills/diagram-design/references/type-nested.md +22 -0
- package/skills/diagram-design/references/type-org-chart.md +44 -0
- package/skills/diagram-design/references/type-process.md +495 -0
- package/skills/diagram-design/references/type-pyramid.md +33 -0
- package/skills/diagram-design/references/type-quadrant.md +81 -0
- package/skills/diagram-design/references/type-radar.md +80 -0
- package/skills/diagram-design/references/type-scatter.md +39 -0
- package/skills/diagram-design/references/type-sequence.md +130 -0
- package/skills/diagram-design/references/type-state.md +21 -0
- package/skills/diagram-design/references/type-swimlane.md +20 -0
- package/skills/diagram-design/references/type-timeline.md +20 -0
- package/skills/diagram-design/references/type-tree.md +24 -0
- package/skills/diagram-design/references/type-venn.md +26 -0
- package/skills/diagram-design/scripts/drawio_extract.py +856 -0
- package/skills/diagram-design/scripts/mermaid_extract.py +1285 -0
- package/skills/diagram-design/scripts/self_check.py +389 -0
- package/skills/document/SKILL.md +63 -75
- package/skills/document/bin/deck-build.cjs +51 -1
- package/skills/document/bin/deck-qa.cjs +18745 -279
- package/skills/document/bin/doc-convert.cjs +9280 -76489
- package/skills/document/bin/doc-fill.cjs +0 -0
- package/skills/document/bin/doc-gen.cjs +3043 -46825
- package/skills/document/bin/doc-run.cjs +65095 -1967
- package/skills/document/bin/doc-scan.cjs +0 -0
- package/skills/document/bin/doc-text.cjs +0 -0
- package/skills/document/bin/doc-validate.cjs +18067 -226
- package/skills/document/bin/doc-xml.cjs +1 -1
- package/skills/document/bin/docx-annotate.cjs +0 -0
- package/skills/document/bin/html2pptx.cjs +32498 -145280
- package/skills/document/bin/ocr-worker.cjs +0 -0
- package/skills/document/bin/ocr.cjs +0 -0
- package/skills/document/bin/pdf-form.cjs +0 -0
- package/skills/document/bin/pdf-images.cjs +0 -0
- package/skills/document/bin/pdf-ops.cjs +0 -0
- package/skills/document/bin/pdf-render.cjs +11 -9
- package/skills/document/bin/pdf-tables.cjs +0 -0
- package/skills/document/bin/pptx-clone.cjs +21 -25
- package/skills/document/bin/pptx-embed-fonts.cjs +8 -6
- package/skills/document/bin/pptx-set-image.cjs +0 -0
- package/skills/document/bin/pptx-slide.cjs +22 -32
- package/skills/document/bin/pptx-theme.cjs +1 -20
- package/skills/document/bin/pptx-tokenize.cjs +1 -1
- package/skills/document/bin/xlsx-query.cjs +0 -0
- package/skills/document/bin/xlsx-recalc.cjs +0 -0
- package/skills/document/bin-reference.md +35 -0
- package/skills/document/content-pipeline.md +19 -18
- package/skills/document/deck-design.md +110 -211
- package/skills/document/layouts/README.md +4 -33
- package/skills/document/motion/README.md +4 -2
- package/skills/document/office.md +5 -1
- package/skills/document/rewrite.md +43 -99
- package/skills/document/styles/README.md +0 -7
- package/skills/document/theme-system.md +1 -0
- package/skills/document/themes/README.md +5 -5
- package/skills/document/themes/anthropic-clay.json +1 -7
- package/skills/document/themes/apple-keynote.json +1 -7
- package/skills/document/themes/black-gold.json +1 -2
- package/skills/document/themes/cinereel.json +1 -2
- package/skills/document/themes/cool-tech.json +1 -2
- package/skills/document/themes/hand-drawn.json +1 -2
- package/skills/document/themes/ivory-gold.json +1 -2
- package/skills/document/themes/magazine-ink.json +1 -2
- package/skills/document/themes/mckinsey-consulting.json +1 -7
- package/skills/document/themes/mono.json +1 -2
- package/skills/document/themes/swiss-grid.json +1 -2
- package/skills/document/themes/warm-editorial.json +1 -2
- package/skills/image-layout/SKILL.md +1 -1
- package/skills/image-layout/bin/html2img.cjs +0 -0
|
@@ -0,0 +1,413 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>[PROJECT NAME] Architecture</title>
|
|
7
|
+
<link href="https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@400;500;600&family=Geist+Mono:wght@400;500;600&display=swap" rel="stylesheet">
|
|
8
|
+
<style>
|
|
9
|
+
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
|
10
|
+
|
|
11
|
+
/* ── Tokens ─────────────────────────────────────────────────── */
|
|
12
|
+
:root {
|
|
13
|
+
--color-paper: #f5f5f5;
|
|
14
|
+
--color-paper-2: #ececec;
|
|
15
|
+
--color-ink: #2d3142;
|
|
16
|
+
--color-muted: #4f5d75;
|
|
17
|
+
--color-soft: #7a8399;
|
|
18
|
+
--color-rule: rgba(45,49,66,0.12);
|
|
19
|
+
--color-rule-solid: rgba(79,93,117,0.25);
|
|
20
|
+
--color-accent: #eb6c36;
|
|
21
|
+
--color-accent-tint: rgba(235,108,54,0.08);
|
|
22
|
+
--color-link: #2e5aa8;
|
|
23
|
+
--font-sans: 'Geist', system-ui, sans-serif;
|
|
24
|
+
--font-serif: 'Instrument Serif', 'Times New Roman', serif;
|
|
25
|
+
--font-mono: 'Geist Mono', ui-monospace, Menlo, monospace;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
body {
|
|
29
|
+
font-family: var(--font-sans);
|
|
30
|
+
background: var(--color-paper);
|
|
31
|
+
min-height: 100vh;
|
|
32
|
+
padding: 3rem 2rem;
|
|
33
|
+
color: var(--color-ink);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.container { max-width: 1200px; margin: 0 auto; }
|
|
37
|
+
|
|
38
|
+
/* ── Header ─────────────────────────────────────────────────── */
|
|
39
|
+
.header { margin-bottom: 2.5rem; }
|
|
40
|
+
|
|
41
|
+
.header-eyebrow {
|
|
42
|
+
font-family: var(--font-mono);
|
|
43
|
+
font-size: 0.66rem;
|
|
44
|
+
font-weight: 500;
|
|
45
|
+
letter-spacing: 0.18em;
|
|
46
|
+
text-transform: uppercase;
|
|
47
|
+
color: var(--color-muted);
|
|
48
|
+
margin-bottom: 0.75rem;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
h1 {
|
|
52
|
+
font-family: var(--font-serif);
|
|
53
|
+
font-size: clamp(1.75rem, 3vw + 1rem, 2.5rem);
|
|
54
|
+
font-weight: 400;
|
|
55
|
+
letter-spacing: -0.02em;
|
|
56
|
+
line-height: 1.1;
|
|
57
|
+
color: var(--color-ink);
|
|
58
|
+
margin-bottom: 0.5rem;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.subtitle {
|
|
62
|
+
font-family: var(--font-sans);
|
|
63
|
+
font-size: 1rem;
|
|
64
|
+
line-height: 1.55;
|
|
65
|
+
color: var(--color-muted);
|
|
66
|
+
max-width: 52ch;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* ── Diagram container ────────────────────────────────────────── */
|
|
70
|
+
/* Default: clean, borderless — diagram sits directly on the page paper.
|
|
71
|
+
For the framed/boxed variant, uncomment the background/border/padding below. */
|
|
72
|
+
.diagram-container {
|
|
73
|
+
background: transparent;
|
|
74
|
+
border: none;
|
|
75
|
+
padding: 0;
|
|
76
|
+
overflow-x: auto;
|
|
77
|
+
/* background: var(--color-paper-2); */
|
|
78
|
+
/* border: 1px solid var(--color-rule); */
|
|
79
|
+
/* border-radius: 8px; */
|
|
80
|
+
/* padding: 1.5rem; */
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
svg { width: 100%; min-width: 900px; display: block; }
|
|
84
|
+
|
|
85
|
+
/* ── Info cards ───────────────────────────────────────────────── */
|
|
86
|
+
.cards {
|
|
87
|
+
display: grid;
|
|
88
|
+
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
|
89
|
+
gap: 1rem;
|
|
90
|
+
margin-top: 1.5rem;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.card {
|
|
94
|
+
background: #ffffff;
|
|
95
|
+
border-radius: 6px;
|
|
96
|
+
border: 1px solid var(--color-rule);
|
|
97
|
+
padding: 1.25rem;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.card-header {
|
|
101
|
+
display: flex;
|
|
102
|
+
align-items: center;
|
|
103
|
+
gap: 0.6rem;
|
|
104
|
+
margin-bottom: 0.875rem;
|
|
105
|
+
padding-bottom: 0.875rem;
|
|
106
|
+
border-bottom: 1px solid rgba(45,49,66,0.08);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.card-dot {
|
|
110
|
+
width: 7px; height: 7px;
|
|
111
|
+
border-radius: 50%;
|
|
112
|
+
flex-shrink: 0;
|
|
113
|
+
}
|
|
114
|
+
.card-dot.ink { background: var(--color-ink); }
|
|
115
|
+
.card-dot.muted { background: var(--color-muted); }
|
|
116
|
+
.card-dot.coral { background: var(--color-accent); }
|
|
117
|
+
.card-dot.link { background: var(--color-link); }
|
|
118
|
+
.card-dot.soft { background: var(--color-soft); }
|
|
119
|
+
|
|
120
|
+
.card h3 {
|
|
121
|
+
font-family: var(--font-sans);
|
|
122
|
+
font-size: 0.875rem;
|
|
123
|
+
font-weight: 600;
|
|
124
|
+
color: var(--color-ink);
|
|
125
|
+
letter-spacing: -0.005em;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.card ul {
|
|
129
|
+
list-style: none;
|
|
130
|
+
color: var(--color-muted);
|
|
131
|
+
font-size: 0.8125rem;
|
|
132
|
+
line-height: 1.55;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.card li {
|
|
136
|
+
margin-bottom: 0.3rem;
|
|
137
|
+
padding-left: 0.875rem;
|
|
138
|
+
position: relative;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.card li::before {
|
|
142
|
+
content: '—';
|
|
143
|
+
position: absolute;
|
|
144
|
+
left: 0;
|
|
145
|
+
color: rgba(45,49,66,0.25);
|
|
146
|
+
font-size: 0.75rem;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/* ── Footer ─────────────────────────────────────────────────── */
|
|
150
|
+
.footer {
|
|
151
|
+
margin-top: 2rem;
|
|
152
|
+
padding-top: 1.5rem;
|
|
153
|
+
border-top: 1px solid rgba(45,49,66,0.10);
|
|
154
|
+
font-family: var(--font-mono);
|
|
155
|
+
font-size: 0.72rem;
|
|
156
|
+
letter-spacing: 0.06em;
|
|
157
|
+
color: var(--color-soft);
|
|
158
|
+
display: flex;
|
|
159
|
+
justify-content: space-between;
|
|
160
|
+
align-items: center;
|
|
161
|
+
flex-wrap: wrap;
|
|
162
|
+
gap: 0.5rem;
|
|
163
|
+
}
|
|
164
|
+
</style>
|
|
165
|
+
</head>
|
|
166
|
+
<body>
|
|
167
|
+
<div class="container">
|
|
168
|
+
|
|
169
|
+
<!-- Header -->
|
|
170
|
+
<div class="header">
|
|
171
|
+
<p class="header-eyebrow">Architecture · [Date]</p>
|
|
172
|
+
<h1>[Project Name]</h1>
|
|
173
|
+
<p class="subtitle">[One-sentence description of what this diagram shows.]</p>
|
|
174
|
+
</div>
|
|
175
|
+
|
|
176
|
+
<!-- Main Diagram -->
|
|
177
|
+
<div class="diagram-container">
|
|
178
|
+
<!-- Replace [diagram-slug] with a unique slug for this diagram before export. -->
|
|
179
|
+
<svg viewBox="0 0 1000 700" xmlns="http://www.w3.org/2000/svg" role="img" aria-labelledby="[diagram-slug]-title [diagram-slug]-desc">
|
|
180
|
+
<title id="[diagram-slug]-title">[Diagram title]</title>
|
|
181
|
+
<desc id="[diagram-slug]-desc">[One sentence describing what the diagram shows]</desc>
|
|
182
|
+
<defs>
|
|
183
|
+
|
|
184
|
+
<!-- OPTIONAL: dot-pattern background. Uncomment the <pattern> below and the second <rect> in the bg section to enable. -->
|
|
185
|
+
<!--
|
|
186
|
+
<pattern id="dots" width="22" height="22" patternUnits="userSpaceOnUse">
|
|
187
|
+
<circle cx="1" cy="1" r="0.9" fill="rgba(45,49,66,0.10)"/>
|
|
188
|
+
</pattern>
|
|
189
|
+
-->
|
|
190
|
+
|
|
191
|
+
<!-- Arrow: muted (default — generic / internal connections) -->
|
|
192
|
+
<marker id="arrow" markerWidth="8" markerHeight="6" refX="7" refY="3" orient="auto">
|
|
193
|
+
<polygon points="0 0, 8 3, 0 6" fill="#4f5d75"/>
|
|
194
|
+
</marker>
|
|
195
|
+
|
|
196
|
+
<!-- Arrow: coral (accent — primary / highlighted flows) -->
|
|
197
|
+
<marker id="arrow-accent" markerWidth="8" markerHeight="6" refX="7" refY="3" orient="auto">
|
|
198
|
+
<polygon points="0 0, 8 3, 0 6" fill="#eb6c36"/>
|
|
199
|
+
</marker>
|
|
200
|
+
|
|
201
|
+
<!-- Arrow: link-blue (#2e5aa8 — HTTP/API / external calls) -->
|
|
202
|
+
<marker id="arrow-link" markerWidth="8" markerHeight="6" refX="7" refY="3" orient="auto">
|
|
203
|
+
<polygon points="0 0, 8 3, 0 6" fill="#2e5aa8"/>
|
|
204
|
+
</marker>
|
|
205
|
+
|
|
206
|
+
</defs>
|
|
207
|
+
|
|
208
|
+
<!-- Background: paper + dot grid -->
|
|
209
|
+
<rect width="100%" height="100%" fill="#f5f5f5"/>
|
|
210
|
+
<!-- <rect width="100%" height="100%" fill="url(#dots)" opacity="0.6"/> -->
|
|
211
|
+
|
|
212
|
+
<!-- =================================================================
|
|
213
|
+
DRAW ARROWS FIRST — they paint behind boxes (SVG document order).
|
|
214
|
+
================================================================= -->
|
|
215
|
+
|
|
216
|
+
<!-- HTTP/API arrow (link-blue) with label -->
|
|
217
|
+
<line x1="130" y1="305" x2="195" y2="305" stroke="#2e5aa8" stroke-width="1.2" marker-end="url(#arrow-link)"/>
|
|
218
|
+
<text x="162" y="297" fill="#2e5aa8" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.06em">HTTPS</text>
|
|
219
|
+
|
|
220
|
+
<!-- Generic internal arrow -->
|
|
221
|
+
<line x1="310" y1="305" x2="356" y2="305" stroke="#4f5d75" stroke-width="1.2" marker-end="url(#arrow)"/>
|
|
222
|
+
|
|
223
|
+
<!-- Vertical arrow -->
|
|
224
|
+
<line x1="253" y1="332" x2="253" y2="376" stroke="#4f5d75" stroke-width="1.2" marker-end="url(#arrow)"/>
|
|
225
|
+
|
|
226
|
+
<!-- Auth / security flow (dashed coral) -->
|
|
227
|
+
<path d="M 80 140 L 80 200 Q 80 218 98 218 L 200 218 Q 218 218 218 236 L 218 276"
|
|
228
|
+
fill="none" stroke="#eb6c36" stroke-width="1.2" stroke-dasharray="5,4"
|
|
229
|
+
marker-end="url(#arrow-accent)"/>
|
|
230
|
+
<text x="148" y="212" fill="#eb6c36" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.06em">JWT</text>
|
|
231
|
+
|
|
232
|
+
<!-- Primary data flow (coral) -->
|
|
233
|
+
<line x1="620" y1="305" x2="696" y2="305" stroke="#eb6c36" stroke-width="1.2" marker-end="url(#arrow-accent)"/>
|
|
234
|
+
<text x="655" y="297" fill="#eb6c36" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.06em">TLS</text>
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
<!-- =================================================================
|
|
238
|
+
COMPONENT BOXES
|
|
239
|
+
Pattern: opaque paper rect first (masks arrows), then styled rect.
|
|
240
|
+
Mono type labels use Geist Mono — mono is dominant in tool/data.
|
|
241
|
+
================================================================= -->
|
|
242
|
+
|
|
243
|
+
<!-- ── External / User ──────────────────────────────────────── -->
|
|
244
|
+
<rect x="30" y="278" width="100" height="54" rx="6" fill="#f5f5f5"/>
|
|
245
|
+
<rect x="30" y="278" width="100" height="54" rx="6" fill="rgba(79,93,117,0.10)" stroke="#7a8399" stroke-width="1"/>
|
|
246
|
+
<!-- Rectangular type tag (not rounded — brand rule) -->
|
|
247
|
+
<rect x="38" y="284" width="26" height="12" rx="2" fill="transparent" stroke="rgba(122,131,153,0.4)" stroke-width="0.8"/>
|
|
248
|
+
<text x="51" y="293" fill="#7a8399" font-size="7" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">EXT</text>
|
|
249
|
+
<!-- Main label -->
|
|
250
|
+
<text x="80" y="308" fill="#2d3142" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">Users</text>
|
|
251
|
+
<text x="80" y="323" fill="#4f5d75" font-size="9" font-family="'Geist Mono', monospace" text-anchor="middle">Browser / Mobile</text>
|
|
252
|
+
|
|
253
|
+
<!-- ── Security / Auth ──────────────────────────────────────── -->
|
|
254
|
+
<rect x="30" y="78" width="100" height="56" rx="6" fill="#f5f5f5"/>
|
|
255
|
+
<rect x="30" y="78" width="100" height="56" rx="6" fill="rgba(235,108,54,0.06)" stroke="rgba(235,108,54,0.50)" stroke-width="1"/>
|
|
256
|
+
<rect x="38" y="84" width="28" height="12" rx="2" fill="transparent" stroke="rgba(235,108,54,0.40)" stroke-width="0.8"/>
|
|
257
|
+
<text x="52" y="93" fill="rgba(235,108,54,0.8)" font-size="7" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.06em">AUTH</text>
|
|
258
|
+
<text x="80" y="110" fill="#2d3142" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">Auth Provider</text>
|
|
259
|
+
<text x="80" y="125" fill="#4f5d75" font-size="9" font-family="'Geist Mono', monospace" text-anchor="middle">OAuth 2.0</text>
|
|
260
|
+
|
|
261
|
+
<!-- ── Region boundary (dashed) ─────────────────────────────── -->
|
|
262
|
+
<rect x="158" y="38" width="822" height="624" rx="8" fill="transparent" stroke="rgba(45,49,66,0.18)" stroke-width="1" stroke-dasharray="6,4"/>
|
|
263
|
+
<text x="170" y="55" fill="#4f5d75" font-size="8" font-weight="500" font-family="'Geist Mono', monospace" letter-spacing="0.12em">AWS REGION · US-WEST-2</text>
|
|
264
|
+
|
|
265
|
+
<!-- ── Cloud / CDN (with faded watermark numeral — slide card pattern) -->
|
|
266
|
+
<rect x="198" y="278" width="112" height="54" rx="6" fill="#f5f5f5"/>
|
|
267
|
+
<rect x="198" y="278" width="112" height="54" rx="6" fill="rgba(45,49,66,0.03)" stroke="rgba(45,49,66,0.30)" stroke-width="1"/>
|
|
268
|
+
<!-- Faded mono watermark numeral (background) -->
|
|
269
|
+
<text x="294" y="323" fill="rgba(45,49,66,0.06)" font-size="40" font-weight="600" font-family="'Geist Mono', monospace" text-anchor="end">01</text>
|
|
270
|
+
<rect x="206" y="284" width="24" height="12" rx="2" fill="transparent" stroke="rgba(45,49,66,0.22)" stroke-width="0.8"/>
|
|
271
|
+
<text x="218" y="293" fill="#7a8399" font-size="7" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">CDN</text>
|
|
272
|
+
<text x="254" y="308" fill="#2d3142" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">CloudFront</text>
|
|
273
|
+
<text x="254" y="323" fill="#4f5d75" font-size="9" font-family="'Geist Mono', monospace" text-anchor="middle">AWS CDN</text>
|
|
274
|
+
|
|
275
|
+
<!-- ── Cloud / Storage ───────────────────────────────────────── -->
|
|
276
|
+
<rect x="198" y="378" width="112" height="102" rx="6" fill="#f5f5f5"/>
|
|
277
|
+
<rect x="198" y="378" width="112" height="102" rx="6" fill="rgba(45,49,66,0.03)" stroke="rgba(45,49,66,0.30)" stroke-width="1"/>
|
|
278
|
+
<text x="294" y="468" fill="rgba(45,49,66,0.06)" font-size="40" font-weight="600" font-family="'Geist Mono', monospace" text-anchor="end">02</text>
|
|
279
|
+
<rect x="206" y="384" width="22" height="12" rx="2" fill="transparent" stroke="rgba(45,49,66,0.22)" stroke-width="0.8"/>
|
|
280
|
+
<text x="217" y="393" fill="#7a8399" font-size="7" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">S3</text>
|
|
281
|
+
<text x="254" y="408" fill="#2d3142" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">S3 Buckets</text>
|
|
282
|
+
<text x="254" y="426" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle">bucket-assets</text>
|
|
283
|
+
<text x="254" y="440" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle">bucket-uploads</text>
|
|
284
|
+
<text x="254" y="466" fill="#eb6c36" font-size="7" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">OAI PROTECTED</text>
|
|
285
|
+
|
|
286
|
+
<!-- ── Security group boundary ───────────────────────────────── -->
|
|
287
|
+
<rect x="348" y="264" width="120" height="80" rx="6" fill="transparent" stroke="rgba(235,108,54,0.45)" stroke-width="1" stroke-dasharray="4,4"/>
|
|
288
|
+
<text x="356" y="278" fill="rgba(235,108,54,0.7)" font-size="8" font-family="'Geist Mono', monospace" letter-spacing="0.08em">SG · :443</text>
|
|
289
|
+
|
|
290
|
+
<!-- ── Load Balancer (inside security group) ──────────────────── -->
|
|
291
|
+
<rect x="358" y="282" width="100" height="54" rx="6" fill="#f5f5f5"/>
|
|
292
|
+
<rect x="358" y="282" width="100" height="54" rx="6" fill="rgba(45,49,66,0.03)" stroke="rgba(45,49,66,0.30)" stroke-width="1"/>
|
|
293
|
+
<rect x="366" y="288" width="22" height="12" rx="2" fill="transparent" stroke="rgba(45,49,66,0.22)" stroke-width="0.8"/>
|
|
294
|
+
<text x="377" y="297" fill="#7a8399" font-size="7" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.06em">LB</text>
|
|
295
|
+
<text x="408" y="311" fill="#2d3142" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">Load Balancer</text>
|
|
296
|
+
<text x="408" y="326" fill="#4f5d75" font-size="9" font-family="'Geist Mono', monospace" text-anchor="middle">HTTPS :443</text>
|
|
297
|
+
|
|
298
|
+
<!-- ── Backend / API ─────────────────────────────────────────── -->
|
|
299
|
+
<rect x="508" y="278" width="112" height="54" rx="6" fill="#f5f5f5"/>
|
|
300
|
+
<rect x="508" y="278" width="112" height="54" rx="6" fill="#ffffff" stroke="#2d3142" stroke-width="1"/>
|
|
301
|
+
<rect x="516" y="284" width="26" height="12" rx="2" fill="transparent" stroke="rgba(45,49,66,0.40)" stroke-width="0.8"/>
|
|
302
|
+
<text x="529" y="293" fill="#2d3142" font-size="7" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">API</text>
|
|
303
|
+
<text x="564" y="308" fill="#2d3142" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">API Server</text>
|
|
304
|
+
<text x="564" y="323" fill="#4f5d75" font-size="9" font-family="'Geist Mono', monospace" text-anchor="middle">FastAPI :8000</text>
|
|
305
|
+
|
|
306
|
+
<!-- ── Database ───────────────────────────────────────────────── -->
|
|
307
|
+
<rect x="698" y="278" width="120" height="54" rx="6" fill="#f5f5f5"/>
|
|
308
|
+
<rect x="698" y="278" width="120" height="54" rx="6" fill="rgba(45,49,66,0.05)" stroke="#4f5d75" stroke-width="1"/>
|
|
309
|
+
<rect x="706" y="284" width="22" height="12" rx="2" fill="transparent" stroke="rgba(79,93,117,0.50)" stroke-width="0.8"/>
|
|
310
|
+
<text x="717" y="293" fill="#4f5d75" font-size="7" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">DB</text>
|
|
311
|
+
<text x="758" y="308" fill="#2d3142" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">Database</text>
|
|
312
|
+
<text x="758" y="323" fill="#4f5d75" font-size="9" font-family="'Geist Mono', monospace" text-anchor="middle">PostgreSQL</text>
|
|
313
|
+
|
|
314
|
+
<!-- ── Frontend / UI ─────────────────────────────────────────── -->
|
|
315
|
+
<rect x="198" y="518" width="200" height="112" rx="6" fill="#f5f5f5"/>
|
|
316
|
+
<rect x="198" y="518" width="200" height="112" rx="6" fill="rgba(235,108,54,0.08)" stroke="#eb6c36" stroke-width="1"/>
|
|
317
|
+
<rect x="206" y="524" width="22" height="12" rx="2" fill="transparent" stroke="rgba(235,108,54,0.50)" stroke-width="0.8"/>
|
|
318
|
+
<text x="217" y="533" fill="#eb6c36" font-size="7" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">UI</text>
|
|
319
|
+
<text x="298" y="550" fill="#2d3142" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">Web App</text>
|
|
320
|
+
<text x="298" y="567" fill="#4f5d75" font-size="9" font-family="'Geist Mono', monospace" text-anchor="middle">React + TypeScript</text>
|
|
321
|
+
<text x="298" y="581" fill="#4f5d75" font-size="9" font-family="'Geist Mono', monospace" text-anchor="middle">Astro SSG</text>
|
|
322
|
+
<!-- Link-blue URL label -->
|
|
323
|
+
<text x="298" y="614" fill="#2e5aa8" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.04em">app.example.com</text>
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
<!-- =================================================================
|
|
327
|
+
LEGEND — OUTSIDE all boundary boxes.
|
|
328
|
+
Region boundary ends at y=662 → legend starts at y=682.
|
|
329
|
+
================================================================= -->
|
|
330
|
+
<text x="510" y="544" fill="#2d3142" font-size="9" font-weight="500" font-family="'Geist Mono', monospace" letter-spacing="0.12em">LEGEND</text>
|
|
331
|
+
|
|
332
|
+
<rect x="510" y="558" width="14" height="10" rx="2" fill="rgba(235,108,54,0.08)" stroke="#eb6c36" stroke-width="1"/>
|
|
333
|
+
<text x="530" y="567" fill="#4f5d75" font-size="9" font-family="'Geist', sans-serif">Frontend / UI</text>
|
|
334
|
+
|
|
335
|
+
<rect x="510" y="576" width="14" height="10" rx="2" fill="#ffffff" stroke="#2d3142" stroke-width="1"/>
|
|
336
|
+
<text x="530" y="585" fill="#4f5d75" font-size="9" font-family="'Geist', sans-serif">Backend / API</text>
|
|
337
|
+
|
|
338
|
+
<rect x="510" y="594" width="14" height="10" rx="2" fill="rgba(45,49,66,0.03)" stroke="rgba(45,49,66,0.30)" stroke-width="1"/>
|
|
339
|
+
<text x="530" y="603" fill="#4f5d75" font-size="9" font-family="'Geist', sans-serif">Cloud / Service</text>
|
|
340
|
+
|
|
341
|
+
<rect x="510" y="612" width="14" height="10" rx="2" fill="rgba(45,49,66,0.05)" stroke="#4f5d75" stroke-width="1"/>
|
|
342
|
+
<text x="530" y="621" fill="#4f5d75" font-size="9" font-family="'Geist', sans-serif">Database</text>
|
|
343
|
+
|
|
344
|
+
<rect x="510" y="630" width="14" height="10" rx="2" fill="rgba(79,93,117,0.10)" stroke="#7a8399" stroke-width="1"/>
|
|
345
|
+
<text x="530" y="639" fill="#4f5d75" font-size="9" font-family="'Geist', sans-serif">External / User</text>
|
|
346
|
+
|
|
347
|
+
<!-- Arrow types -->
|
|
348
|
+
<line x1="510" y1="655" x2="524" y2="655" stroke="#2e5aa8" stroke-width="1.2" marker-end="url(#arrow-link)"/>
|
|
349
|
+
<text x="530" y="659" fill="#4f5d75" font-size="9" font-family="'Geist', sans-serif">HTTP / API call</text>
|
|
350
|
+
|
|
351
|
+
<line x1="510" y1="671" x2="524" y2="671" stroke="#eb6c36" stroke-width="1.2" stroke-dasharray="4,3" marker-end="url(#arrow-accent)"/>
|
|
352
|
+
<text x="530" y="675" fill="#4f5d75" font-size="9" font-family="'Geist', sans-serif">Auth flow</text>
|
|
353
|
+
|
|
354
|
+
<line x1="510" y1="687" x2="524" y2="687" stroke="#4f5d75" stroke-width="1.2" marker-end="url(#arrow)"/>
|
|
355
|
+
<text x="530" y="691" fill="#4f5d75" font-size="9" font-family="'Geist', sans-serif">Internal connection</text>
|
|
356
|
+
|
|
357
|
+
<rect x="510" y="698" width="14" height="10" rx="2" fill="transparent" stroke="rgba(235,108,54,0.45)" stroke-width="1" stroke-dasharray="3,3"/>
|
|
358
|
+
<text x="530" y="707" fill="#4f5d75" font-size="9" font-family="'Geist', sans-serif">Security group</text>
|
|
359
|
+
|
|
360
|
+
</svg>
|
|
361
|
+
</div>
|
|
362
|
+
|
|
363
|
+
<!-- Info Cards -->
|
|
364
|
+
<div class="cards">
|
|
365
|
+
<div class="card">
|
|
366
|
+
<div class="card-header">
|
|
367
|
+
<span class="card-dot coral"></span>
|
|
368
|
+
<h3>Card Title 1</h3>
|
|
369
|
+
</div>
|
|
370
|
+
<ul>
|
|
371
|
+
<li>Item one</li>
|
|
372
|
+
<li>Item two</li>
|
|
373
|
+
<li>Item three</li>
|
|
374
|
+
<li>Item four</li>
|
|
375
|
+
</ul>
|
|
376
|
+
</div>
|
|
377
|
+
|
|
378
|
+
<div class="card">
|
|
379
|
+
<div class="card-header">
|
|
380
|
+
<span class="card-dot ink"></span>
|
|
381
|
+
<h3>Card Title 2</h3>
|
|
382
|
+
</div>
|
|
383
|
+
<ul>
|
|
384
|
+
<li>Item one</li>
|
|
385
|
+
<li>Item two</li>
|
|
386
|
+
<li>Item three</li>
|
|
387
|
+
<li>Item four</li>
|
|
388
|
+
</ul>
|
|
389
|
+
</div>
|
|
390
|
+
|
|
391
|
+
<div class="card">
|
|
392
|
+
<div class="card-header">
|
|
393
|
+
<span class="card-dot muted"></span>
|
|
394
|
+
<h3>Card Title 3</h3>
|
|
395
|
+
</div>
|
|
396
|
+
<ul>
|
|
397
|
+
<li>Item one</li>
|
|
398
|
+
<li>Item two</li>
|
|
399
|
+
<li>Item three</li>
|
|
400
|
+
<li>Item four</li>
|
|
401
|
+
</ul>
|
|
402
|
+
</div>
|
|
403
|
+
</div>
|
|
404
|
+
|
|
405
|
+
<!-- Footer -->
|
|
406
|
+
<div class="footer">
|
|
407
|
+
<span>[Project Name] · Architecture Overview</span>
|
|
408
|
+
<span>[Date]</span>
|
|
409
|
+
</div>
|
|
410
|
+
|
|
411
|
+
</div>
|
|
412
|
+
</body>
|
|
413
|
+
</html>
|