Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
592 lines (541 loc) · 34 KB
/
Copy pathindex.html
File metadata and controls
592 lines (541 loc) · 34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
<!DOCTYPE html>
<html lang="en" data-theme="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ProjectCompass — Mariner & Sailboat Command Deck | Technical Documentation</title>
<meta name="description" content="Complete engineering and operational documentation for ProjectCompass: DuckDB & ConnectorX analytics, scomp-link ML pipelines, Mithril RAG, k0s Kubernetes cluster orchestration, and the custom worker library SDK.">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism-tomorrow.min.css">
<link rel="stylesheet" href="docs/assets/docs.css">
</head>
<body>
<!-- ── Top Command Bar ──────────────────────────────────────────────────── -->
<header class="top-nav">
<div class="top-nav-inner">
<a href="index.html" class="brand-link">
<svg class="compass-mini" viewBox="0 0 36 36" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="18" cy="18" r="15.5" stroke="currentColor" stroke-width="1.6" stroke-dasharray="3 2" opacity="0.6"/>
<circle cx="18" cy="18" r="13" stroke="currentColor" stroke-width="1.5"/>
<path d="M18 7 L18 24" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"/>
<path d="M18 8 L26 22 L18 22 Z" fill="currentColor" fill-opacity="0.32" stroke="currentColor" stroke-width="1.3" stroke-linejoin="round"/>
<path d="M16.5 10.5 L11 22 L16.5 22 Z" fill="#fbbf24" fill-opacity="0.45" stroke="#fbbf24" stroke-width="1.2" stroke-linejoin="round"/>
<path d="M10 24.5 L26 24.5 L23.5 27.5 L12.5 27.5 Z" fill="currentColor" fill-opacity="0.5" stroke="currentColor" stroke-width="1.2" stroke-linejoin="round"/>
</svg>
<span>ProjectCompass</span>
<span class="brand-tag">⛵ Regatta Deck v2.6</span>
</a>
<div class="nav-actions">
<a href="https://giacomosaccaggi.github.io/" target="_blank" rel="noopener" class="badge badge-gold" title="Skipper's Engineering Portfolio">⚓ G. Saccaggi</a>
<button type="button" id="theme-toggle" class="theme-toggle-btn">
<span aria-hidden="true">⛵</span> <span>Day Sail</span>
</button>
<button type="button" class="nav-toggle" id="nav-toggle" aria-label="Toggle navigation">
<svg class="icon-menu" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><line x1="3" y1="6" x2="21" y2="6"/><line x1="3" y1="12" x2="21" y2="12"/><line x1="3" y1="18" x2="21" y2="18"/></svg>
<svg class="icon-close" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><line x1="6" y1="6" x2="18" y2="18"/><line x1="6" y1="18" x2="18" y2="6"/></svg>
<span class="nav-toggle-label-open">Menu</span>
<span class="nav-toggle-label-close">Close</span>
</button>
</div>
</div>
</header>
<!-- Nav drawer + overlay (outside header to avoid backdrop-filter stacking context) -->
<nav class="nav-links" id="nav-links" aria-label="Primary Documentation Navigation">
<span class="nav-group-label">Getting Started</span>
<a href="index.html" class="active">Hub</a>
<a href="docs/overview.html">Overview</a>
<a href="docs/user_guide.html">User Guide</a>
<span class="nav-separator"></span>
<span class="nav-group-label">Architecture</span>
<a href="docs/architecture.html">Architecture</a>
<a href="docs/core_classes.html">Core Classes</a>
<a href="docs/templates.html">Templates</a>
<a href="docs/routes.html">API & CLI</a>
<span class="nav-separator"></span>
<span class="nav-group-label">Infrastructure</span>
<a href="docs/k0s_setup.html">k0s Setup</a>
<a href="docs/kubernetes_console.html">K8s Console</a>
<a href="docs/worker_library.html">Worker Library</a>
<span class="nav-separator"></span>
<span class="nav-group-label">Operations</span>
<a href="docs/configuration.html">Config</a>
<a href="docs/docker.html">Docker</a>
<a href="docs/demo/index.html" class="nav-demo">🚀 Demo</a>
</nav>
<div class="nav-overlay" id="nav-overlay"></div>
<!-- ── Hero Sailboat & Mariner Command Deck ─────────────────────────────── -->
<section class="hero-deck">
<div class="hero-deck-inner">
<div>
<div class="hero-eyebrow">
<span>⛵ Hoist the Mainsail & Trim the Sheets</span>
<span>•</span>
<span>Organization Is Everything®</span>
</div>
<h1 class="hero-title">
Sail Your Analytical Fleet with <span class="gradient-text">ProjectCompass</span>
</h1>
<p class="hero-subtitle">
Welcome aboard the flagship chartroom and engineering command deck. Whether you are tacking through interactive DuckDB & ConnectorX queries, rigging visual <code>scomp-link</code> ML pipelines, consulting your per-analysis <strong>Mithril RAG</strong> navigator, or commanding a regatta of isolated Python worker Pods across a <strong>k0s Kubernetes</strong> flotilla, every nautical chart and shipwright blueprint is right here.
</p>
<!-- Quick Filter / Search -->
<div class="search-bar-wrap">
<span class="search-icon" aria-hidden="true">🔭</span>
<input
type="search"
id="docs-search"
class="search-input"
placeholder="Scan the horizon by topic (e.g. k0s, worker library, RAG, scomp-link, CLI, SQLite)..."
aria-label="Filter documentation guides"
>
<span class="search-kbd">Ctrl+K / /</span>
</div>
<div id="search-result-count" style="font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.5rem;">
Showing all 11 nautical charts across 4 regatta pillars
</div>
<!-- High-Signal Platform Telemetry -->
<div class="hero-stats">
<div class="stat-chip">
<span class="stat-value">8 Blueprints</span>
<span class="stat-label">Auth, Catalog, Data, Connections, Agent, RAG, K8s & API</span>
</div>
<div class="stat-chip">
<span class="stat-value">Hybrid Cargo Hold</span>
<span class="stat-label">SQLite + FTS5 + ChromaDB Vectors + Git Sync</span>
</div>
<div class="stat-chip">
<span class="stat-value">k0s Regatta Fleet</span>
<span class="stat-label">Isolated batch/v1 Jobs & Cron Schedules</span>
</div>
<div class="stat-chip">
<span class="stat-value">Dual-Layer SDK</span>
<span class="stat-label">BaseCompassTask Pod Runtime + Master API Client</span>
</div>
</div>
</div>
<!-- Animated SVG Sailboat ("Barca a Vela") + 16-Point Mariner's Compass Rose -->
<div class="hero-compass-figure" aria-hidden="true">
<svg class="compass-rose-svg" viewBox="0 0 260 260" fill="none" xmlns="http://www.w3.org/2000/svg">
<defs>
<linearGradient id="mainsailGrad" x1="130" y1="48" x2="196" y2="165" gradientUnits="userSpaceOnUse">
<stop offset="0%" stop-color="#38bdf8" stop-opacity="0.88"/>
<stop offset="60%" stop-color="#2dd4bf" stop-opacity="0.52"/>
<stop offset="100%" stop-color="#0284c7" stop-opacity="0.28"/>
</linearGradient>
<linearGradient id="genoaGrad" x1="72" y1="64" x2="125" y2="164" gradientUnits="userSpaceOnUse">
<stop offset="0%" stop-color="#fbbf24" stop-opacity="0.88"/>
<stop offset="100%" stop-color="#f59e0b" stop-opacity="0.28"/>
</linearGradient>
<linearGradient id="hullGrad" x1="76" y1="168" x2="188" y2="190" gradientUnits="userSpaceOnUse">
<stop offset="0%" stop-color="#0f172a"/>
<stop offset="50%" stop-color="#1e293b"/>
<stop offset="100%" stop-color="#0f172a"/>
</linearGradient>
</defs>
<!-- Outer Rotating Azimuth Degree Bezel -->
<g class="compass-outer-bezel">
<circle cx="130" cy="130" r="120" stroke="#38bdf8" stroke-width="1.3" stroke-dasharray="3 5" opacity="0.6"/>
<circle cx="130" cy="130" r="110" stroke="#fbbf24" stroke-width="1" stroke-dasharray="1 7" opacity="0.45"/>
<!-- 8 Azimuth Tick Marks -->
<line x1="130" y1="6" x2="130" y2="16" stroke="#fbbf24" stroke-width="2"/>
<line x1="254" y1="130" x2="244" y2="130" stroke="#38bdf8" stroke-width="2"/>
<line x1="130" y1="254" x2="130" y2="244" stroke="#38bdf8" stroke-width="2"/>
<line x1="6" y1="130" x2="16" y2="130" stroke="#38bdf8" stroke-width="2"/>
<line x1="217" y1="43" x2="210" y2="50" stroke="#fbbf24" stroke-width="1.5"/>
<line x1="217" y1="217" x2="210" y2="210" stroke="#fbbf24" stroke-width="1.5"/>
<line x1="43" y1="217" x2="50" y2="210" stroke="#fbbf24" stroke-width="1.5"/>
<line x1="43" y1="43" x2="50" y2="50" stroke="#fbbf24" stroke-width="1.5"/>
</g>
<!-- Fixed Brass & Rhumb Line Compass Ring -->
<circle cx="130" cy="130" r="98" stroke="#fbbf24" stroke-width="1.4" opacity="0.5"/>
<circle cx="130" cy="130" r="76" stroke="#38bdf8" stroke-width="1" opacity="0.3"/>
<line x1="32" y1="130" x2="228" y2="130" stroke="#38bdf8" stroke-width="0.7" opacity="0.25"/>
<line x1="130" y1="32" x2="130" y2="228" stroke="#38bdf8" stroke-width="0.7" opacity="0.25"/>
<line x1="60" y1="60" x2="200" y2="200" stroke="#fbbf24" stroke-width="0.6" opacity="0.2"/>
<line x1="200" y1="60" x2="60" y2="200" stroke="#fbbf24" stroke-width="0.6" opacity="0.2"/>
<!-- 16-Point Compass Rose Star (Interactive Needle Group) -->
<g id="compass-needle-group">
<!-- Intercardinal Points (NE, SE, SW, NW) -->
<polygon points="130,38 140,116 222,130 140,144 130,222 120,144 38,130 120,116"
fill="#fbbf24" fill-opacity="0.14" stroke="#fbbf24" stroke-width="1.1"
transform="rotate(45 130 130)"/>
<!-- Cardinal Points (N, E, S, W) -->
<polygon points="130,20 143,115 240,130 143,145 130,240 117,145 20,130 117,115"
fill="#38bdf8" fill-opacity="0.14" stroke="#38bdf8" stroke-width="1.4"/>
</g>
<!-- Cardinal & Intercardinal Labels -->
<text x="130" y="15" text-anchor="middle" fill="#fbbf24" font-size="11" font-weight="800" font-family="JetBrains Mono, monospace">000° N</text>
<text x="246" y="134" text-anchor="middle" fill="#38bdf8" font-size="10" font-weight="700" font-family="JetBrains Mono, monospace">E</text>
<text x="130" y="252" text-anchor="middle" fill="#38bdf8" font-size="10" font-weight="700" font-family="JetBrains Mono, monospace">180° S</text>
<text x="14" y="134" text-anchor="middle" fill="#38bdf8" font-size="10" font-weight="700" font-family="JetBrains Mono, monospace">W</text>
<text x="206" y="54" text-anchor="middle" fill="#fbbf24" font-size="8.5" font-weight="700" font-family="JetBrains Mono, monospace">NE</text>
<text x="206" y="212" text-anchor="middle" fill="#fbbf24" font-size="8.5" font-weight="700" font-family="JetBrains Mono, monospace">SE</text>
<text x="54" y="212" text-anchor="middle" fill="#fbbf24" font-size="8.5" font-weight="700" font-family="JetBrains Mono, monospace">SW</text>
<text x="54" y="54" text-anchor="middle" fill="#fbbf24" font-size="8.5" font-weight="700" font-family="JetBrains Mono, monospace">NW</text>
<!-- ── Animated Sailing Sloop ("Barca a Vela") ── -->
<g class="sailboat-vessel">
<!-- Forestay & Backstay Rigging Cables -->
<line x1="130" y1="46" x2="64" y2="170" stroke="#94a3b8" stroke-width="1" stroke-dasharray="2 2" opacity="0.7"/>
<line x1="130" y1="46" x2="196" y2="168" stroke="#94a3b8" stroke-width="1" stroke-dasharray="2 2" opacity="0.7"/>
<!-- Mainsail (Starboard / Aft) with Reef Seams -->
<path d="M133 48 C164 78, 186 118, 192 158 L133 158 Z"
fill="url(#mainsailGrad)" stroke="#38bdf8" stroke-width="1.8" stroke-linejoin="round"/>
<path d="M133 86 Q156 89 170 96" stroke="#e0f2fe" stroke-width="1" opacity="0.45"/>
<path d="M133 116 Q162 120 182 128" stroke="#e0f2fe" stroke-width="1" opacity="0.45"/>
<path d="M133 142 Q165 144 189 149" stroke="#e0f2fe" stroke-width="1" opacity="0.45"/>
<!-- Genoa Jib / Headsail (Port / Forward) -->
<path d="M126 56 C100 88, 84 124, 72 158 C94 154, 112 155, 126 158 Z"
fill="url(#genoaGrad)" stroke="#fbbf24" stroke-width="1.7" stroke-linejoin="round"/>
<path d="M126 98 Q106 104 92 112" stroke="#fef3c7" stroke-width="1" opacity="0.45"/>
<path d="M126 130 Q100 134 82 142" stroke="#fef3c7" stroke-width="1" opacity="0.45"/>
<!-- Main Mast & Boom -->
<line x1="130" y1="42" x2="130" y2="170" stroke="#f8fafc" stroke-width="2.8" stroke-linecap="round"/>
<line x1="130" y1="159" x2="194" y2="159" stroke="#fbbf24" stroke-width="2.4" stroke-linecap="round"/>
<!-- Fluttering Masthead Burgee Pennant -->
<path class="sailboat-pennant" d="M130 42 L156 47 L130 53 Z" fill="#f87171" stroke="#fbbf24" stroke-width="1"/>
<!-- Yacht Hull, Bowsprit & Brass Sheer Stripe -->
<line x1="76" y1="168" x2="58" y2="163" stroke="#fbbf24" stroke-width="2.2" stroke-linecap="round"/>
<path d="M70 167 L192 167 L176 186 C148 190, 108 190, 84 185 Z"
fill="url(#hullGrad)" stroke="#38bdf8" stroke-width="1.8" stroke-linejoin="round"/>
<line x1="76" y1="173" x2="185" y2="173" stroke="#fbbf24" stroke-width="1.5" opacity="0.9"/>
<!-- Cabin Portholes -->
<circle cx="115" cy="179" r="2.2" fill="#38bdf8"/>
<circle cx="130" cy="179" r="2.2" fill="#fbbf24"/>
<circle cx="145" cy="179" r="2.2" fill="#38bdf8"/>
</g>
<!-- Foaming Ocean Waves & Bow Wake Under Hull -->
<g class="sailboat-wake">
<path d="M48 186 Q72 178 96 186 T144 186 T192 186 T216 186"
stroke="#38bdf8" stroke-width="2.4" stroke-linecap="round" fill="none"/>
<path d="M58 195 Q84 188 110 195 T162 195 T206 195"
stroke="#2dd4bf" stroke-width="1.8" stroke-linecap="round" fill="none" opacity="0.75"/>
<path d="M74 203 Q104 198 134 203 T190 203"
stroke="#fbbf24" stroke-width="1.3" stroke-linecap="round" fill="none" opacity="0.55"/>
</g>
</svg>
</div>
</div>
<!-- ── Live Mariner's Bridge Telemetry Strip ──────────────────────────── -->
<div class="bridge-telemetry-bar" role="region" aria-label="Mariner's Bridge Instrument Telemetry">
<div class="bridge-instruments">
<div class="bridge-gauge" title="Move cursor across the bridge to steer compass bearing">
<span aria-hidden="true">🧭</span>
<span class="bridge-gauge-label">HDG</span>
<span id="bridge-hdg" class="bridge-gauge-value gold">042° NE</span>
</div>
<div class="bridge-gauge" title="True Wind Speed & Beaufort Scale">
<span aria-hidden="true">💨</span>
<span class="bridge-gauge-label">TWS</span>
<span id="bridge-tws" class="bridge-gauge-value">18.4 kn • Force 5</span>
</div>
<div class="bridge-gauge" title="Current Point of Sail & Rigging Trim">
<span aria-hidden="true">⛵</span>
<span class="bridge-gauge-label">TRIM</span>
<span id="bridge-trim" class="bridge-gauge-value">Beam Reach • Full Main & Genoa</span>
</div>
<div class="bridge-gauge" title="k0s Kubernetes Flotilla Readiness">
<span aria-hidden="true">⚓</span>
<span class="bridge-gauge-label">FLOTILLA</span>
<span class="bridge-gauge-value emerald">k0s Ready • 11 Charts</span>
</div>
</div>
<div class="bridge-waypoints" aria-label="Quick Course Waypoints">
<a href="docs/demo/index.html" class="waypoint-btn" style="background:linear-gradient(135deg,#0284c7,#0d9488);color:#fff;border-color:#fbbf24;font-weight:700;" data-bearing="0">🚀 Live Demo</a>
<a href="#pillar-usage" class="waypoint-btn" data-bearing="15">015° NNE • Voyages</a>
<a href="#pillar-architecture" class="waypoint-btn" data-bearing="105">105° ESE • Hull & Rigging</a>
<a href="#pillar-fleet" class="waypoint-btn" data-bearing="195">195° SSW • k0s Flotilla</a>
<a href="#pillar-operations" class="waypoint-btn" data-bearing="285">285° WNW • Sextant & Ops</a>
</div>
</div>
<!-- Multi-Layer Animated Ocean Wave Divider -->
<div class="ocean-wave-divider" aria-hidden="true">
<svg viewBox="0 0 1440 54" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg">
<path class="wave-layer-1" d="M0,18 C240,48 480,-6 720,20 C960,46 1200,2 1440,24 L1440,54 L0,54 Z"></path>
<path class="wave-layer-2" d="M0,30 C300,4 600,50 900,22 C1140,2 1320,38 1440,28 L1440,54 L0,54 Z"></path>
<path class="wave-layer-3" d="M0,40 C360,56 720,24 1080,44 C1260,52 1380,38 1440,42 L1440,54 L0,54 Z"></path>
</svg>
</div>
</section>
<!-- ── Main Documentation Hub ───────────────────────────────────────────── -->
<main class="hub-container">
<div class="callout callout-captain">
<div class="callout-title">🧭 Skipper's Log — Why We Built This Sloop</div>
<p>
Data teams often drift in becalmed waters: scattered Jupyter notebooks, orphan CSVs, undocumented cron scripts, and AI assistants that hallucinate because they lack project bearings. <strong>ProjectCompass</strong> brings your entire analytical crew aboard one self-hosted racing yacht: an FTS5-indexed analysis catalog, a DuckDB + ConnectorX SQL chartroom, a visual <code>scomp-link</code> ML pipeline rigging loft, a per-analysis hybrid RAG navigator powered by <strong>Mithril</strong>, and a <strong>k0s Kubernetes</strong> flotilla where every Python workload sails in an isolated Pod.
</p>
</div>
<!-- ── Pillar I: Hoisting Sail & First Tack (Voyages & Usage) ─────────── -->
<section class="pillar-section" id="pillar-usage">
<div class="pillar-header">
<h2 class="pillar-title">⛵ Pillar I — Hoisting Sail & First Tack (Voyages & Usage)</h2>
<p class="pillar-subtitle">Step aboard, learn the ropes, and master every workspace instrument from Catalog to RAG Chat.</p>
</div>
<div class="card-grid">
<article class="doc-card" data-keywords="overview capabilities features stack duckdb connectorx rawgraphs mithril rag k0s sailboat">
<div>
<span class="badge badge-cyan">01 • Maiden Voyage</span>
<h3>Platform Overview & Ecosystem</h3>
<p>
Complete tour of the vessel: the problem statement, all 10 functional subsystems (Catalog, Structured Analyses, Pipeline Builder, Data Explorer, RAWGraphs, AI Agent, Hybrid RAG, k0s Console, RBAC, and CLI), and the full technology matrix.
</p>
</div>
<div class="doc-card-footer">
<span style="color: var(--text-muted);">docs/overview.html</span>
<a href="docs/overview.html" class="doc-card-link">Hoist Sails →</a>
</div>
</article>
<article class="doc-card" data-keywords="user guide tutorial catalog compass_flow pipeline builder scomp-link sql duckdb connectorx rawgraphs rag chat">
<div>
<span class="badge badge-emerald">02 • Skipper's Manual</span>
<h3>End-to-End User Guide</h3>
<p>
Hands-on operational seamanship: creating HTML/Notebook/Structured analyses, configuring <code>compass_flow.yaml</code> + <code>Dockerfile</code>, rigging visual <code>scomp-link</code> ML pipelines with the <code>>></code> operator, querying remote DBs via ConnectorX, and chatting with per-analysis RAG indexes.
</p>
</div>
<div class="doc-card-footer">
<span style="color: var(--text-muted);">docs/user_guide.html</span>
<a href="docs/user_guide.html" class="doc-card-link">Take the Helm →</a>
</div>
</article>
</div>
</section>
<!-- ── Pillar II: Shipwright's Hull & Rigging (Core Architecture) ──────── -->
<section class="pillar-section" id="pillar-architecture">
<div class="pillar-header">
<h2 class="pillar-title">🧭 Pillar II — Shipwright's Hull & Rigging (Core Architecture)</h2>
<p class="pillar-subtitle">Inspect the 8 Flask blueprints, the 9-class cooperative MRO keel, hybrid storage, and HTMX 2.0 canvas.</p>
</div>
<div class="card-grid">
<article class="doc-card" data-keywords="architecture blueprints sqlite sqlalchemy fts5 chromadb rag bm25 reranking git sync connections">
<div>
<span class="badge badge-purple">03 • Hull & Keel Design</span>
<h3>System Architecture & Storage</h3>
<p>
Request lifecycle across the 8 Flask blueprints (<code>auth</code>, <code>catalog</code>, <code>data</code>, <code>connections</code>, <code>agent</code>, <code>rag</code>, <code>k8s</code>, <code>api</code>), the 11 SQLAlchemy models in <code>models.py</code>, FTS5 triggers, ChromaDB + BM25 hybrid RAG retrieval, and Git sync.
</p>
</div>
<div class="doc-card-footer">
<span style="color: var(--text-muted);">docs/architecture.html</span>
<a href="docs/architecture.html" class="doc-card-link">Inspect Hull →</a>
</div>
</article>
<article class="doc-card" data-keywords="core classes mro inheritance projectcompass datautils analysisutils gitsyncutils htmlutils k8sclient mithril ragstore">
<div>
<span class="badge badge-purple">04 • Standing Rigging</span>
<h3>Core Classes & Cooperative MRO</h3>
<p>
Complete class hierarchy and method reference for <code>ProjectCompass</code>, <code>DataUtils</code>, <code>AnalysisUtils</code>, <code>GitSyncUtils</code>, <code>HTMLUtils</code>, the Kubernetes MRO (<code>BaseK8sClient</code> → <code>K8sFlowRunnerUtils</code>), and the RAG/Agent engines.
</p>
</div>
<div class="doc-card-footer">
<span style="color: var(--text-muted);">docs/core_classes.html</span>
<a href="docs/core_classes.html" class="doc-card-link">Check Rigging →</a>
</div>
</article>
<article class="doc-card" data-keywords="templates jinja2 htmx header.html partials frontend rawgraphs codemirror">
<div>
<span class="badge badge-purple">05 • Sailcloth & Canvas</span>
<h3>Templates, Header Injection & HTMX</h3>
<p>
How <code>HTMLUtils.substitute_html()</code> dynamically instruments every page with <code>header.html</code>, the full inventory of Jinja2 views, HTMX 2.0 partial swap targets (<code>templates/components/</code>), and admin/cluster consoles.
</p>
</div>
<div class="doc-card-footer">
<span style="color: var(--text-muted);">docs/templates.html</span>
<a href="docs/templates.html" class="doc-card-link">Trim Canvas →</a>
</div>
</article>
</div>
</section>
<!-- ── Pillar III: The k0s Flotilla & Regatta Fleet (Cluster & SDK) ───── -->
<section class="pillar-section" id="pillar-fleet">
<div class="pillar-header">
<h2 class="pillar-title">⚓ Pillar III — The k0s Flotilla & Regatta Fleet (Cluster & Worker SDK)</h2>
<p class="pillar-subtitle">Provision k0s master/worker nodes, orchestrate isolated Pods, and build your custom Python worker library.</p>
</div>
<div class="card-grid">
<article class="doc-card" data-keywords="k0s setup master worker token join ports firewall kubeconfig drain reset pytest">
<div>
<span class="badge badge-gold">06 • Flotilla Provisioning</span>
<h3>k0s Master & Worker Setup</h3>
<p>
Provision a single-binary <code>k0s</code> control plane with <code>scripts/k0s_master_setup.sh</code>, configure firewall ports (<code>6443</code>, <code>8132</code>, <code>9443</code>, <code>10250</code>, <code>4789</code>), generate join tokens, attach external Linux workers, and safely drain/remove nodes.
</p>
</div>
<div class="doc-card-footer">
<span style="color: var(--text-muted);">docs/k0s_setup.html</span>
<a href="docs/k0s_setup.html" class="doc-card-link">Launch Flotilla →</a>
</div>
</article>
<article class="doc-card" data-keywords="kubernetes console flows jobs configmap secret apscheduler pvc kustomize security">
<div>
<span class="badge badge-gold">07 • Regatta Dispatch</span>
<h3>Kubernetes Console, Workers & Jobs</h3>
<p>
Deep-dive into <code>/workers</code> state reconciliation, Dockerfile-based image builds with the local registry, isolated <code>batch/v1</code> Job execution, APScheduler cron triggers, PVC persistence, and security boundaries. Flows are managed from the Analysis catalog.
</p>
</div>
<div class="doc-card-footer">
<span style="color: var(--text-muted);">docs/kubernetes_console.html</span>
<a href="docs/kubernetes_console.html" class="doc-card-link">Command Fleet →</a>
</div>
</article>
<article class="doc-card" data-keywords="worker library sdk custom package compass_worker_kit BaseCompassTask CompassMasterClient FLOW_PARAMS_JSON PC_PARAM pyproject docker">
<div>
<span class="badge badge-gold">08 • Worker Kit Blueprint</span>
<h3>Building the Custom Worker Library</h3>
<p>
Complete architectural specification & copy-pasteable code for creating your own OOP Python library (<code>compass_worker_kit</code>) to connect worker Pods and external nodes to the Master: <code>BaseCompassTask</code> runtime + <code>CompassMasterClient</code> REST SDK.
</p>
</div>
<div class="doc-card-footer">
<span style="color: var(--text-muted);">docs/worker_library.html</span>
<a href="docs/worker_library.html" class="doc-card-link">Forge Worker Kit →</a>
</div>
</article>
</div>
</section>
<!-- ── Pillar IV: Sextant, Logbook & Harbor Ops (API, CLI, Config, Docker) -->
<section class="pillar-section" id="pillar-operations">
<div class="pillar-header">
<h2 class="pillar-title">🔭 Pillar IV — Sextant, Logbook & Harbor Ops (API, CLI, Config & Docker)</h2>
<p class="pillar-subtitle">Automate ProjectCompass via REST or CLI, tune YAML/Env bearings, and berth containers with Docker Compose.</p>
</div>
<div class="card-grid">
<article class="doc-card" data-keywords="routes api rest endpoints cli compass_cli.py bearer token sse streaming webhooks">
<div>
<span class="badge badge-cyan">09 • Sextant & Telegraph</span>
<h3>Web Routes, REST API & External CLI</h3>
<p>
Complete reference for all Web UI endpoints, JSON REST APIs (<code>/api/*</code>, <code>/workers</code>, <code>/runs</code>, <code>/schedules</code>, <code>/rag</code>), Bearer token authentication, SSE log streaming, and <code>scripts/compass_cli.py</code>. <code>GET /flows</code> now redirects to <code>/analysis</code>.
</p>
</div>
<div class="doc-card-footer">
<span style="color: var(--text-muted);">docs/routes.html</span>
<a href="docs/routes.html" class="doc-card-link">Consult Sextant →</a>
</div>
</article>
<article class="doc-card" data-keywords="configuration yaml env projectcompass.yaml k8s_namespace mithril rag rbac auth">
<div>
<span class="badge badge-cyan">10 • Ship's Trim & Ballast</span>
<h3>Configuration & RBAC Reference</h3>
<p>
Master reference for <code>projectcompass.yaml</code>, <code>PC_<SECTION>__<KEY></code> overrides, Kubernetes & RAG environment variables, database encryption keys, and multi-role RBAC user/token administration.
</p>
</div>
<div class="doc-card-footer">
<span style="color: var(--text-muted);">docs/configuration.html</span>
<a href="docs/configuration.html" class="doc-card-link">Tune Compass →</a>
</div>
</article>
<article class="doc-card" data-keywords="docker compose mithril ollama volumes healthcheck production deployment">
<div>
<span class="badge badge-cyan">11 • Drydock & Berth</span>
<h3>Docker & Production Deployment</h3>
<p>
Multi-profile Docker Compose configurations (development, public demo, production with Nginx & Mithril sidecar), persistent volume mappings, container healthchecks, and production hardening checklists.
</p>
</div>
<div class="doc-card-footer">
<span style="color: var(--text-muted);">docs/docker.html</span>
<a href="docs/docker.html" class="doc-card-link">Clear Harbor →</a>
</div>
</article>
</div>
</section>
<!-- ── Ecosystem Architecture Overview Diagram ────────────────────────── -->
<section class="pillar-section">
<div class="pillar-header">
<h2 class="pillar-title">🗺️ Fleet Topology at a Glance</h2>
<p class="pillar-subtitle">How the Web UI, CLI, Hybrid Storage, Mithril RAG, and k0s Worker Pods interconnect.</p>
</div>
<div class="mermaid-card">
<pre class="mermaid">
flowchart LR
subgraph Clients["Operators and Automation"]
Browser["Web UI (Jinja2 + HTMX 2.0)"]
CLI["scripts/compass_cli.py"]
SDK["CompassMasterClient (Worker SDK)"]
end
subgraph Master["ProjectCompass Master (Flask + ProjectCompass MRO)"]
BPs["8 Blueprints (auth, catalog, data, connections, agent, rag, k8s, api)"]
Sched["APScheduler Cron Engine"]
Duck["DuckDB + ConnectorX Engine"]
RAG["Hybrid RAG (ChromaDB + BM25 + Reranker)"]
end
subgraph Storage["Hybrid Persistence (DATA_DIR)"]
SQLite[("projectcompass.db (SQLite + FTS5)")]
Files[("Analyses/ and Saved_data/")]
Mithril["Mithril LLM Server (:16180)"]
end
subgraph Cluster["k0s Kubernetes Fleet (kube-compass)"]
API["k0s Control Plane (:6443)"]
Job["batch/v1 Job Pod (pc-flow-job-id)"]
Task["BaseCompassTask (/workspace/flow.py)"]
end
Browser --> BPs
CLI -->|Bearer Token| BPs
SDK -->|Bearer Token REST| BPs
Sched --> BPs
BPs --> Duck
BPs --> RAG
BPs --> SQLite
BPs --> Files
RAG --> Mithril
BPs -->|ConfigMap + Secret + Job| API
API --> Job
Job --> Task
Task -.->|Optional HTTP Callback| SDK
</pre>
<div class="mermaid-caption">
Figure 1 — End-to-end architecture connecting operators, the ProjectCompass Master, Mithril AI/RAG, and distributed k0s worker Pods.
</div>
</div>
</section>
<!-- ── Fast-Start Command Bar ─────────────────────────────────────────── -->
<section class="pillar-section">
<div class="pillar-header">
<h2 class="pillar-title">⚡ 60-Second Helm Check (Quick Start)</h2>
<p class="pillar-subtitle">Boot the master locally, provision a k0s control plane, or inspect your cluster from the CLI.</p>
</div>
<pre><code class="language-bash"># 1. Install dependencies and launch ProjectCompass Master (http://localhost:5002)
uv sync
uv run python run.py
# 2. (Optional) Bootstrap a local k0s Master + Worker node & export kubeconfig
sudo ./scripts/k0s_master_setup.sh --kubeconfig-out ~/.kube/k0s-compass.conf
export KUBECONFIG=~/.kube/k0s-compass.conf
# 3. Query cluster nodes, flows, and DuckDB datasets via the External CLI
uv run python scripts/compass_cli.py --url http://localhost:5002 --token "$PC_API_TOKEN" workers list
uv run python scripts/compass_cli.py --url http://localhost:5002 --token "$PC_API_TOKEN" flows run --name etl-daily --wait</code></pre>
</section>
</main>
<!-- ── Global Footer ────────────────────────────────────────────────────── -->
<footer class="site-footer">
<div class="site-footer-inner">
<div>
<strong>ProjectCompass</strong> — <em>Organization Is Everything®</em> • Crafted by
<a href="https://giacomosaccaggi.github.io/" target="_blank" rel="noopener">Giacomo Saccaggi</a>
</div>
<div class="footer-links">
<a href="docs/overview.html">Overview</a>
<a href="docs/user_guide.html">User Guide</a>
<a href="docs/architecture.html">Architecture</a>
<a href="docs/k0s_setup.html">k0s Setup</a>
<a href="docs/worker_library.html">Worker Library</a>
<a href="docs/routes.html">API & CLI</a>
<a href="https://giacomosaccaggi.github.io/Mithril/" target="_blank" rel="noopener">Mithril</a>
<a href="https://giacomosaccaggi.github.io/scomp_link/index.html" target="_blank" rel="noopener">Scomp-Link</a>
</div>
</div>
</footer>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-python.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-bash.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-yaml.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-json.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.min.js"></script>
<script src="docs/assets/docs.js"></script>
</body>
</html>