-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
515 lines (485 loc) · 27.5 KB
/
Copy pathindex.html
File metadata and controls
515 lines (485 loc) · 27.5 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- Every link opens in a new tab. -->
<base target="_blank" />
<title>Graph DB Viewer — Query, visualize & edit graph databases in the browser</title>
<meta name="description" content="A zero-backend Blazor WebAssembly app for exploring Gremlin, openCypher and SPARQL graphs. Query, visualize in 2D/3D, debug traversals, edit your graph — or generate one from text with AI, all in the browser." />
<link rel="icon" type="image/svg+xml" href="../GraphDBViewerWeb/wwwroot/favicon.svg" />
<style>
:root{
--blue:#3B82F6;
--blue-600:#2563eb;
--blue-400:#60a5fa;
--ink:#0b1220;
--panel:#111a2e;
--panel-2:#16233d;
--line:rgba(148,163,184,.16);
--text:#e6edf7;
--muted:#9fb0c7;
--radius:16px;
--maxw:1140px;
--shadow:0 20px 60px -20px rgba(0,0,0,.6);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
margin:0;
font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,"Apple Color Emoji","Segoe UI Emoji",sans-serif;
color:var(--text);
background:
radial-gradient(1100px 600px at 82% -10%, rgba(59,130,246,.18), transparent 60%),
radial-gradient(900px 600px at 0% 10%, rgba(96,165,250,.10), transparent 55%),
var(--ink);
line-height:1.6;
-webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 22px}
.muted{color:var(--muted)}
.accent{color:var(--blue-400)}
/* Nav */
header.nav{position:sticky;top:0;z-index:50;backdrop-filter:blur(10px);
background:rgba(11,18,32,.72);border-bottom:1px solid var(--line)}
.nav-inner{display:flex;align-items:center;gap:18px;height:64px}
.brand{display:flex;align-items:center;gap:10px;font-weight:800;letter-spacing:-.02em;font-size:1.05rem}
.brand svg{width:30px;height:26px}
.nav-links{display:flex;gap:26px;margin-left:auto;font-size:.93rem}
.nav-links a{color:var(--muted);transition:color .15s}
.nav-links a:hover{color:var(--text)}
.btn{display:inline-flex;align-items:center;gap:8px;border-radius:999px;padding:11px 20px;
font-weight:650;font-size:.92rem;border:1px solid transparent;cursor:pointer;transition:transform .12s ease, box-shadow .2s, background .2s}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:linear-gradient(180deg,var(--blue-400),var(--blue-600));color:#fff;
box-shadow:0 10px 24px -8px rgba(37,99,235,.7)}
.btn-ghost{background:rgba(255,255,255,.04);border-color:var(--line);color:var(--text)}
@media(max-width:760px){.nav-links{display:none}}
/* Hero */
.hero{padding:76px 0 54px;display:grid;grid-template-columns:1fr 1.2fr;gap:44px;align-items:center}
.eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:.78rem;font-weight:650;letter-spacing:.06em;
text-transform:uppercase;color:var(--blue-400);background:rgba(59,130,246,.12);
border:1px solid rgba(59,130,246,.28);padding:6px 12px;border-radius:999px}
h1{font-size:clamp(2.1rem,4.6vw,3.4rem);line-height:1.07;letter-spacing:-.03em;margin:18px 0 16px;font-weight:830}
h1 .grad{background:linear-gradient(90deg,#fff,var(--blue-400));-webkit-background-clip:text;background-clip:text;color:transparent}
.lede{font-size:1.12rem;color:var(--muted);max-width:36ch}
.hero-cta{display:flex;gap:12px;margin-top:26px;flex-wrap:wrap}
.hero-note{margin-top:16px;font-size:.85rem;color:var(--muted)}
.hero-note code{background:rgba(255,255,255,.06);border:1px solid var(--line);padding:2px 7px;border-radius:6px;font-size:.85em}
@media(max-width:860px){.hero{grid-template-columns:1fr;padding-top:48px}}
/* Hero visual */
.viz{position:relative;border:1px solid var(--line);border-radius:var(--radius);
background:linear-gradient(180deg,var(--panel),var(--ink));box-shadow:var(--shadow);overflow:hidden}
.viz .titlebar{display:flex;align-items:center;gap:7px;padding:12px 14px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.02)}
.dot{width:11px;height:11px;border-radius:50%}
.viz .tag{margin-left:auto;font-size:.72rem;color:var(--muted)}
.viz svg{display:block;width:100%;height:auto}
.node{fill:var(--blue)}
.node.alt{fill:#22d3ee}
.node.alt2{fill:#a78bfa}
.edge{stroke:rgba(148,163,184,.5);stroke-width:1.6}
.pulse{animation:pulse 2.6s ease-in-out infinite}
@keyframes pulse{0%,100%{opacity:.55}50%{opacity:1}}
.float{animation:float 6s ease-in-out infinite}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
/* Hero app slideshow */
.viz .slides{position:relative;overflow:hidden;background:var(--ink)}
.viz .slide{display:block;width:100%;opacity:0;transition:opacity .7s ease}
.viz .slide:first-child{position:relative;height:auto} /* the in-flow sizer — all shots share one size */
.viz .slide:not(:first-child){position:absolute;inset:0;height:100%;object-fit:cover;object-position:top}
.viz .slide.on{opacity:1}
.viz .dots{position:absolute;left:0;right:0;bottom:11px;display:flex;gap:7px;justify-content:center;z-index:2}
.viz .dot-btn{width:9px;height:9px;border-radius:50%;border:0;padding:0;cursor:pointer;
background:rgba(255,255,255,.42);box-shadow:0 1px 4px rgba(0,0,0,.55);transition:background .2s,transform .2s}
.viz .dot-btn:hover{background:rgba(255,255,255,.7)}
.viz .dot-btn.on{background:var(--blue-400);transform:scale(1.3)}
/* Stats strip */
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:12px 0 20px}
.stat{background:rgba(255,255,255,.03);border:1px solid var(--line);border-radius:14px;padding:18px 16px;text-align:center}
.stat b{display:block;font-size:1.7rem;letter-spacing:-.02em;background:linear-gradient(90deg,#fff,var(--blue-400));
-webkit-background-clip:text;background-clip:text;color:transparent}
.stat span{font-size:.82rem;color:var(--muted)}
@media(max-width:680px){.stats{grid-template-columns:repeat(2,1fr)}}
/* Sections */
section{padding:58px 0}
.sec-head{text-align:center;max-width:640px;margin:0 auto 40px}
.sec-head h2{font-size:clamp(1.7rem,3.2vw,2.3rem);letter-spacing:-.02em;margin:0 0 12px;font-weight:800}
.sec-head p{color:var(--muted);margin:0;font-size:1.05rem}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
@media(max-width:900px){.grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.grid{grid-template-columns:1fr}}
.card{background:linear-gradient(180deg,var(--panel),var(--panel-2));border:1px solid var(--line);
border-radius:var(--radius);padding:24px;transition:transform .18s ease,border-color .18s ease,box-shadow .18s}
.card:hover{transform:translateY(-4px);border-color:rgba(96,165,250,.4);box-shadow:var(--shadow)}
.card .ico{width:46px;height:46px;border-radius:12px;display:grid;place-items:center;font-size:1.4rem;
background:rgba(59,130,246,.14);border:1px solid rgba(59,130,246,.28);margin-bottom:14px}
.card h3{margin:0 0 8px;font-size:1.12rem;letter-spacing:-.01em}
.card p{margin:0;color:var(--muted);font-size:.95rem}
.card ul{margin:12px 0 0;padding-left:18px;color:var(--muted);font-size:.9rem}
.card ul li{margin:3px 0}
/* Alternating feature rows */
.feature{display:grid;grid-template-columns:1fr 1fr;gap:44px;align-items:center;padding:34px 0;border-top:1px solid var(--line)}
.feature:nth-child(even) .feature-media{order:-1}
@media(max-width:820px){.feature{grid-template-columns:1fr}.feature:nth-child(even) .feature-media{order:0}}
.feature h3{font-size:1.5rem;letter-spacing:-.02em;margin:0 0 12px}
.feature p{color:var(--muted);margin:0 0 14px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{font-size:.8rem;padding:6px 12px;border-radius:999px;background:rgba(255,255,255,.04);border:1px solid var(--line);color:var(--text)}
.feature-media{background:linear-gradient(180deg,var(--panel),var(--ink));border:1px solid var(--line);
border-radius:var(--radius);padding:20px;box-shadow:var(--shadow);min-height:210px;display:flex;flex-direction:column;gap:10px;justify-content:center}
/* mock UI bits */
.code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.82rem;background:#0a1424;
border:1px solid var(--line);border-radius:10px;padding:12px 14px;color:#cfe0f7;overflow:auto}
.code .k{color:#60a5fa}.code .s{color:#7ee787}.code .m{color:#c792ea}.code .c{color:#6b7c93}
.viewtabs{display:flex;gap:6px;flex-wrap:wrap}
.vtab{font-size:.78rem;font-family:inherit;padding:6px 12px;border-radius:8px;border:1px solid var(--line);color:var(--muted);background:rgba(255,255,255,.02);cursor:pointer;transition:color .15s,background .15s}
.vtab:hover{color:var(--text)}
.vtab.on{color:#fff;background:linear-gradient(180deg,var(--blue-400),var(--blue-600));border-color:transparent}
.viewimg{display:block;width:100%;height:auto;max-height:360px;object-fit:contain;border-radius:10px}
.steprow{display:flex;justify-content:space-between;align-items:center;font-family:ui-monospace,Menlo,Consolas,monospace;
font-size:.8rem;padding:7px 12px;border:1px solid var(--line);border-radius:8px;background:rgba(255,255,255,.02)}
.steprow.zero{border-color:rgba(248,113,113,.5);background:rgba(248,113,113,.08)}
.count{color:var(--blue-400);font-weight:700}
.count.zero{color:#f87171}
/* DB table */
.dbtable{width:100%;border-collapse:collapse;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.dbtable th,.dbtable td{text-align:left;padding:14px 16px;border-bottom:1px solid var(--line);font-size:.94rem}
.dbtable th{background:rgba(255,255,255,.03);color:var(--muted);font-weight:650;letter-spacing:.02em}
.dbtable tr:last-child td{border-bottom:none}
.ok{color:#4ade80;font-weight:650}
.soon{color:var(--blue-400);font-weight:650}
/* CTA */
.cta{margin:20px 0 8px;text-align:center;padding:56px 28px;border:1px solid var(--line);border-radius:24px;
background:radial-gradient(700px 300px at 50% -30%,rgba(59,130,246,.25),transparent 70%),linear-gradient(180deg,var(--panel),var(--ink))}
.cta h2{font-size:clamp(1.6rem,3vw,2.2rem);margin:0 0 12px;letter-spacing:-.02em}
.cta p{color:var(--muted);max-width:52ch;margin:0 auto 24px}
.cta .btns{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
footer{border-top:1px solid var(--line);padding:34px 0;color:var(--muted);font-size:.9rem}
.foot-inner{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.foot-inner .brand{color:var(--text)}
.foot-inner .sp{margin-left:auto}
/* reveal */
.reveal{opacity:0;transform:translateY(18px);transition:opacity .6s ease,transform .6s ease}
.reveal.in{opacity:1;transform:none}
</style>
</head>
<body>
<!-- NAV -->
<header class="nav">
<div class="wrap nav-inner">
<a class="brand" href="#top">
<svg viewBox="-10 -15 100 90" fill="none" stroke="#60a5fa" stroke-width="3" xmlns="http://www.w3.org/2000/svg">
<g transform="scale(1.59) translate(-16.6,-8.6)">
<g transform="rotate(-5)">
<line x1="20" y1="20" x2="40" y2="12"/><line x1="20" y1="20" x2="30" y2="40"/>
<line x1="40" y1="12" x2="60" y2="22"/><line x1="40" y1="12" x2="50" y2="36"/>
<line x1="30" y1="40" x2="50" y2="36"/><line x1="60" y1="22" x2="50" y2="36"/>
<circle cx="20" cy="20" r="4" fill="#3B82F6"/><circle cx="40" cy="12" r="4" fill="#3B82F6"/>
<circle cx="30" cy="40" r="4" fill="#3B82F6"/><circle cx="50" cy="36" r="4" fill="#3B82F6"/>
<circle cx="60" cy="22" r="4" fill="#3B82F6"/>
</g>
<g transform="translate(24,24) scale(0.7)">
<path d="M22 32c4-6 11-10 15-10s11 4 15 10c-4 6-11 10-15 10S26 38 22 32z" stroke="#60a5fa" fill="none"/>
<circle cx="37" cy="32" r="6" fill="#60a5fa"/>
</g>
</g>
</svg>
Graph DB Viewer
</a>
<nav class="nav-links">
<a href="#features">Features</a>
<a href="#visualize">Visualize</a>
<a href="#generate">Generate with AI</a>
<a href="#debug">Debug</a>
<a href="#databases">Databases</a>
</nav>
<a class="btn btn-primary" href="https://eecs.blog/BlazorApps/GraphDBViewer/" target="_blank" rel="noopener">Try it live →</a>
</div>
</header>
<a id="top"></a>
<!-- HERO -->
<div class="wrap">
<div class="hero">
<div class="reveal in">
<span class="eyebrow">● Blazor WebAssembly · No backend</span>
<h1>Explore your graph database <span class="grad">in the browser.</span></h1>
<p class="lede">Connect to Gremlin, openCypher or SPARQL, run a query, and see your data as an interactive 2D or 3D graph, a table, or raw JSON — edit it and commit changes back, or generate a whole graph from text with AI.</p>
<div class="hero-cta">
<a class="btn btn-primary" href="https://eecs.blog/BlazorApps/GraphDBViewer/" target="_blank" rel="noopener">Try it live</a>
<a class="btn btn-ghost" href="#features">See features</a>
</div>
<p class="hero-note">Runs entirely in your browser — nothing to install to try it, and your queries and connections never leave your machine.</p>
</div>
<!-- Hero app slideshow — the real app in a few different states -->
<div class="viz reveal in" id="heroshow">
<div class="titlebar">
<span class="dot" style="background:#ff5f56"></span>
<span class="dot" style="background:#ffbd2e"></span>
<span class="dot" style="background:#27c93f"></span>
<span class="tag" id="heroTag">2D graph view</span>
</div>
<div class="slides">
<img class="slide on" src="img/app-2d.png" alt="The full app showing a loaded graph in the interactive 2D view" data-tag="2D graph view" />
<img class="slide" src="img/app-3d.png" alt="The full app showing the same graph in the interactive 3D view" data-tag="3D graph view" />
<img class="slide" src="img/app-table.png" alt="The full app showing the results as a vertices and edges table" data-tag="Table view" />
<img class="slide" src="img/app-json.png" alt="The full app showing the raw JSON results" data-tag="JSON results" />
<img class="slide" src="img/app-debug.png" alt="The full app showing the step-through traversal debugger" data-tag="Traversal debugger" />
</div>
<div class="dots" id="heroDots"></div>
</div>
</div>
<!-- STATS -->
<div class="stats reveal">
<div class="stat"><b>4</b><span>view modes: JSON · 2D · 3D · Table</span></div>
<div class="stat"><b>12</b><span>graph layouts (6 in 2D, 6 in 3D)</span></div>
<div class="stat"><b>3</b><span>query languages highlighted</span></div>
<div class="stat"><b>0</b><span>servers to run — 100% in-browser</span></div>
</div>
</div>
<!-- FEATURE GRID -->
<section id="features">
<div class="wrap">
<div class="sec-head reveal">
<h2>Everything you need to explore a graph</h2>
<p>One page, no install. Connect, query, visualize, debug and edit — then export the result.</p>
</div>
<div class="grid">
<div class="card reveal"><div class="ico">🔌</div>
<h3>Browser-direct connections</h3>
<p>Talk to your database with no proxy in between.</p>
<ul>
<li>Gremlin over WebSocket <em>or</em> HTTP</li>
<li>Azure Cosmos DB (HMAC-SHA256 auth)</li>
<li>SPARQL / RDF endpoints</li>
<li>Saved connections, SSL toggle, status badge</li>
</ul>
</div>
<div class="card reveal"><div class="ico">🧠</div>
<h3>Schema-aware editor</h3>
<p>A vendored Monaco editor that knows your graph.</p>
<ul>
<li>Gremlin, openCypher & SPARQL highlighting</li>
<li>Autocomplete from real labels & property keys</li>
<li>Context-aware suggestions & auto-indent</li>
<li>✨ Ask AI in plain English — Anthropic · OpenAI · Gemini (bring your own key)</li>
</ul>
</div>
<div class="card reveal"><div class="ico">🎨</div>
<h3>Four ways to see it</h3>
<p>Flip any result between views instantly.</p>
<ul>
<li>Interactive 2D (Cytoscape.js) & 3D (three.js)</li>
<li>Property table & raw JSON</li>
<li>Per-label styling · edge colours · image & 3D-model nodes</li>
<li>WebXR VR/AR viewer with a phone QR</li>
</ul>
</div>
<div class="card reveal"><div class="ico">🐞</div>
<h3>Traversal debugger</h3>
<p>gdotV-style step-through for Gremlin.</p>
<ul>
<li>Traverser count after every step</li>
<li>Zero-drops highlighted</li>
<li>Profile & Explain tabs · mutation-safe</li>
</ul>
</div>
<div class="card reveal"><div class="ico">✏️</div>
<h3>Safe graph editing</h3>
<p>Mutations are staged and committed on your word.</p>
<ul>
<li>Add / edit / delete vertices, edges, properties</li>
<li>Two-click edge creation</li>
<li>Review generated queries before commit</li>
</ul>
</div>
<div class="card reveal"><div class="ico">📥</div>
<h3>Import & export</h3>
<p>Bring data in, take pictures out.</p>
<ul>
<li>Paste GraphSON, Graphviz DOT or Mermaid — or draw offline</li>
<li>✨ Generate a graph from text, files or Wikipedia</li>
<li>Export CSV · Excel · PNG/JPEG/SVG · DOT · 3D models</li>
</ul>
</div>
</div>
</div>
</section>
<!-- VISUALIZE -->
<section id="visualize">
<div class="wrap">
<div class="feature reveal">
<div>
<h3>See your data the way that makes sense</h3>
<p>Every result is one click away from four representations, with a search box and per-label filter in both graph views. Style each vertex label with its own colour, size, display property and icon.</p>
<div class="chips">
<span class="chip">Force-directed</span><span class="chip">Tree</span><span class="chip">Concentric</span>
<span class="chip">Circle</span><span class="chip">Grid</span><span class="chip">Radial 3D</span>
<span class="chip">Double-click to expand</span><span class="chip">Multiple tabs</span>
</div>
</div>
<div class="feature-media">
<div class="viewtabs" id="viewtabs">
<button type="button" class="vtab" data-img="img/graph-json.png" data-alt="The sample graph shown as raw JSON">JSON</button>
<button type="button" class="vtab on" data-img="img/graph-2d.svg" data-alt="The sample graph shown in the interactive 2D view">2D</button>
<button type="button" class="vtab" data-img="img/graph-3d.png" data-alt="The sample graph shown in the interactive 3D view">3D</button>
<button type="button" class="vtab" data-img="img/graph-table.png" data-alt="The sample graph shown as a vertices and edges table">Table</button>
</div>
<img id="viewimg" class="viewimg" src="img/graph-2d.svg" alt="The sample graph shown in the interactive 2D view" />
</div>
</div>
<div class="feature reveal">
<div>
<h3>Write in the language your database speaks</h3>
<p>A self-hosted Monaco editor highlights Gremlin, openCypher and SPARQL, auto-closes brackets and quotes, and completes real vertex labels, edge labels and property keys pulled live from your database.</p>
<div class="chips"><span class="chip">Gremlin</span><span class="chip">openCypher</span><span class="chip">SPARQL</span><span class="chip">Schema autocomplete</span></div>
</div>
<div class="feature-media">
<img src="img/query-editor.png" alt="The self-hosted Monaco query editor showing a syntax-highlighted Gremlin query" style="display:block;width:100%;height:auto;border-radius:10px" />
</div>
</div>
</div>
</section>
<!-- GENERATE WITH AI -->
<section id="generate">
<div class="wrap">
<div class="sec-head reveal">
<h2>Turn text into a graph</h2>
<p>Paste notes, drop in a Word, Excel or CSV file, or name a Wikipedia article — an AI model extracts the entities and relationships and draws them, ready to review before anything is saved.</p>
</div>
<div class="feature reveal">
<div>
<h3>Generate a knowledge graph with AI</h3>
<p>Bring your own model — Anthropic, OpenAI, Gemini or any OpenAI-compatible server. The app asks for strict JSON, cleans it up (merging “Acme” and “Acme Inc.” into one node), and previews the counts, labels and every repair before you accept. Then <em>merge</em> it into your drawing or <em>replace</em> it — and write to a database only when you say so.</p>
<div class="chips">
<span class="chip">Anthropic</span><span class="chip">OpenAI</span><span class="chip">Gemini</span>
<span class="chip">Word · Excel · CSV</span><span class="chip">Wikipedia</span>
<span class="chip">Entity de-duplication</span><span class="chip">Merge or replace</span><span class="chip">Review before commit</span>
</div>
</div>
<div class="feature-media">
<div class="code" style="text-align:left">
<span class="c">"Alice, an engineer at Acme,</span><br>
<span class="c"> works with Bob on the Table project."</span><br><br>
<span class="k">→</span> Person <span class="m">Alice</span> <span class="s">—[worksAt]→</span> Company <span class="m">Acme</span><br>
<span class="k">→</span> Person <span class="m">Alice</span> <span class="s">—[worksWith]→</span> Person <span class="m">Bob</span><br>
<span class="k">→</span> Person <span class="m">Alice</span> <span class="s">—[worksOn]→</span> Project <span class="m">Table</span>
</div>
<div style="display:flex;gap:8px;align-items:center;justify-content:center;font-size:.82rem;color:var(--muted)">
<span class="count" style="color:var(--blue-400)">4 nodes</span> · <span class="count" style="color:var(--blue-400)">3 edges</span> · previewed before drawing
</div>
</div>
</div>
</div>
</section>
<!-- DEBUG -->
<section id="debug">
<div class="wrap">
<div class="sec-head reveal">
<h2>Find out where your traversal goes wrong</h2>
<p>The step debugger re-runs your query truncated at each step and shows how many traversers survive — so a query that returns nothing stops being a mystery.</p>
</div>
<div class="feature-media reveal" style="max-width:680px;margin:0 auto">
<img src="img/debugger.png" alt="The step debugger showing the traverser count after each step, with the final step dropped to zero highlighted in red" style="display:block;width:100%;height:auto;border-radius:10px" />
<p class="muted" style="font-size:.82rem;margin:8px 2px 0">Each step shows the traverser count; the red zero is where every result was dropped — click any step to visualize that intermediate result in 2D or 3D.</p>
</div>
</div>
</section>
<!-- DATABASES -->
<section id="databases">
<div class="wrap">
<div class="sec-head reveal">
<h2>Connects to the graphs you already use</h2>
<p>Anything reachable from your browser over WebSocket or HTTP (with CORS) works — no server component required.</p>
</div>
<div class="reveal">
<table class="dbtable">
<thead><tr><th>Database</th><th>Protocol</th><th>Status</th></tr></thead>
<tbody>
<tr><td>Apache TinkerPop / TinkerGraph</td><td>Gremlin over WebSocket or HTTP</td><td class="ok">✔ Supported</td></tr>
<tr><td>Azure Cosmos DB (Gremlin API)</td><td>Gremlin + HMAC-SHA256</td><td class="ok">✔ Supported</td></tr>
<tr><td>Fuseki · Blazegraph · GraphDB · Virtuoso</td><td>SPARQL 1.1 over HTTP</td><td class="ok">✔ Supported</td></tr>
<tr><td>Wikidata · DBpedia (public)</td><td>SPARQL over HTTPS</td><td class="ok">✔ Supported</td></tr>
<tr><td>Neo4j · Memgraph · ArangoDB · Dgraph</td><td>Cypher / AQL / DQL</td><td class="soon">◷ On the roadmap</td></tr>
</tbody>
</table>
</div>
</div>
</section>
<!-- CTA / GET STARTED -->
<section id="start">
<div class="wrap">
<div class="cta reveal">
<h2>Try it in your browser</h2>
<p>Nothing to install — open the live demo and load a built-in sample graph or paste a Mermaid diagram. Prefer to run your own? It's a static Blazor WebAssembly app: clone the repo and start the dev server.</p>
<div class="btns" style="margin-bottom:24px">
<a class="btn btn-primary" href="https://eecs.blog/BlazorApps/GraphDBViewer/" target="_blank" rel="noopener">Try it live →</a>
</div>
<div class="code" style="max-width:560px;margin:0 auto;text-align:left">
<span class="c"># or run your own — requires the .NET 10 SDK & git</span><br>
<span class="k">git</span> clone https://github.com/EECSB/GraphDBViewerWeb.git<br>
<span class="k">cd</span> GraphDBViewerWeb/GraphDBViewerWeb<br>
<span class="k">dotnet</span> run<br>
<span class="c"># → http://localhost:5154 · already cloned? git pull</span><br>
</div>
</div>
</div>
</section>
<footer>
<div class="wrap foot-inner">
<span class="brand">
<svg viewBox="-10 -15 100 90" width="24" height="20" fill="none" stroke="#60a5fa" stroke-width="3" xmlns="http://www.w3.org/2000/svg">
<g transform="scale(1.59) translate(-16.6,-8.6)"><g transform="rotate(-5)">
<line x1="20" y1="20" x2="40" y2="12"/><line x1="40" y1="12" x2="60" y2="22"/><line x1="30" y1="40" x2="50" y2="36"/>
<circle cx="20" cy="20" r="4" fill="#3B82F6"/><circle cx="40" cy="12" r="4" fill="#3B82F6"/>
<circle cx="60" cy="22" r="4" fill="#3B82F6"/><circle cx="50" cy="36" r="4" fill="#3B82F6"/>
</g></g>
</svg>
Graph DB Viewer
</span>
<span>Blazor WebAssembly · Cytoscape.js · three.js · Monaco</span>
<span class="sp">Built for developers who just want to see the graph.</span>
</div>
</footer>
<script>
const io = new IntersectionObserver((entries)=>{
entries.forEach(e=>{ if(e.isIntersecting){ e.target.classList.add('in'); io.unobserve(e.target); } });
},{threshold:.12});
document.querySelectorAll('.reveal').forEach(el=>io.observe(el));
// View-mode tabs: swap the screenshot to the selected view.
const viewtabs = document.querySelectorAll('#viewtabs .vtab');
const viewimg = document.getElementById('viewimg');
viewtabs.forEach(tab=>tab.addEventListener('click',()=>{
viewtabs.forEach(t=>t.classList.remove('on'));
tab.classList.add('on');
viewimg.src = tab.dataset.img;
viewimg.alt = tab.dataset.alt;
}));
// Hero slideshow: cross-fade through the app screenshots, auto-advancing, with clickable dots.
(function(){
const show = document.getElementById('heroshow');
if(!show) return;
const slides = [...show.querySelectorAll('.slide')];
const tag = document.getElementById('heroTag');
const dotsWrap = document.getElementById('heroDots');
let idx = 0, timer;
slides.forEach((s,i)=>{
const b = document.createElement('button');
b.className = 'dot-btn' + (i===0 ? ' on' : '');
b.setAttribute('aria-label', 'Show ' + s.dataset.tag);
b.addEventListener('click', ()=>{ go(i); restart(); });
dotsWrap.appendChild(b);
});
const dots = [...dotsWrap.children];
function go(n){
slides[idx].classList.remove('on'); dots[idx].classList.remove('on');
idx = n;
slides[idx].classList.add('on'); dots[idx].classList.add('on');
tag.textContent = slides[idx].dataset.tag;
}
function restart(){ clearInterval(timer); timer = setInterval(()=>go((idx+1)%slides.length), 4200); }
restart();
})();
</script>
</body>
</html>