-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmigridDocs.html
More file actions
806 lines (730 loc) · 32.4 KB
/
Copy pathmigridDocs.html
File metadata and controls
806 lines (730 loc) · 32.4 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
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MiGrid Architecture Infographic - Dark Theme</title>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap" rel="stylesheet">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
background: #06090d;
color: #ffffff;
min-height: 100vh;
overflow-x: hidden;
}
.infographic {
width: 1200px;
margin: 0 auto;
padding: 60px 40px;
position: relative;
background: linear-gradient(180deg, #06090d 0%, #0a1018 50%, #06090d 100%);
}
/* Background Grid Pattern */
.infographic::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-image:
linear-gradient(rgba(0, 230, 184, 0.03) 1px, transparent 1px),
linear-gradient(90deg, rgba(0, 230, 184, 0.03) 1px, transparent 1px);
background-size: 40px 40px;
pointer-events: none;
}
/* Glow Effects */
.glow-top {
position: absolute;
top: -200px;
left: 50%;
transform: translateX(-50%);
width: 800px;
height: 400px;
background: radial-gradient(ellipse, rgba(0, 230, 184, 0.15) 0%, transparent 70%);
pointer-events: none;
}
.glow-bottom {
position: absolute;
bottom: -100px;
left: 50%;
transform: translateX(-50%);
width: 600px;
height: 300px;
background: radial-gradient(ellipse, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
pointer-events: none;
}
/* Header */
.header {
text-align: center;
margin-bottom: 60px;
position: relative;
z-index: 10;
}
.logo-icon {
width: 80px;
height: 80px;
margin: 0 auto 24px;
background: linear-gradient(135deg, #00e6b8 0%, #00a8ff 100%);
border-radius: 20px;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 20px 60px rgba(0, 230, 184, 0.3);
}
.logo-icon svg {
width: 48px;
height: 48px;
color: #06090d;
}
.header h1 {
font-size: 42px;
font-weight: 800;
background: linear-gradient(135deg, #ffffff 0%, #00e6b8 50%, #00a8ff 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
margin-bottom: 12px;
letter-spacing: -1px;
}
.header .subtitle {
font-size: 18px;
color: #64748b;
font-weight: 400;
letter-spacing: 0.5px;
}
.header .tagline {
margin-top: 20px;
font-family: 'JetBrains Mono', monospace;
font-size: 13px;
color: #00e6b8;
background: rgba(0, 230, 184, 0.1);
padding: 8px 20px;
border-radius: 100px;
display: inline-block;
border: 1px solid rgba(0, 230, 184, 0.2);
}
/* Main Content */
.main-content {
display: grid;
grid-template-columns: 1fr 380px;
gap: 50px;
position: relative;
z-index: 10;
}
/* Architecture Tower */
.architecture-tower {
position: relative;
}
.tower-title {
font-size: 13px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 2px;
color: #64748b;
margin-bottom: 24px;
display: flex;
align-items: center;
gap: 12px;
}
.tower-title::after {
content: '';
flex: 1;
height: 1px;
background: linear-gradient(90deg, #2a3544, transparent);
}
.layer-stack {
display: flex;
flex-direction: column;
gap: 8px;
}
.layer-card {
display: grid;
grid-template-columns: 60px 1fr;
gap: 16px;
padding: 16px 20px;
background: linear-gradient(135deg, rgba(17, 24, 32, 0.8) 0%, rgba(26, 35, 45, 0.6) 100%);
border: 1px solid rgba(42, 53, 68, 0.6);
border-radius: 12px;
position: relative;
overflow: hidden;
transition: all 0.3s ease;
}
.layer-card::before {
content: '';
position: absolute;
left: 0;
top: 0;
bottom: 0;
width: 4px;
background: var(--layer-color);
}
.layer-card:hover {
transform: translateX(4px);
border-color: var(--layer-color);
box-shadow: 0 0 30px rgba(var(--layer-rgb), 0.2);
}
.layer-badge {
width: 60px;
height: 60px;
border-radius: 12px;
background: linear-gradient(135deg, var(--layer-color), var(--layer-color-dark));
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
box-shadow: 0 4px 20px rgba(var(--layer-rgb), 0.3);
}
.layer-badge .layer-num {
font-family: 'JetBrains Mono', monospace;
font-size: 14px;
font-weight: 700;
color: #06090d;
}
.layer-badge .layer-icon {
width: 24px;
height: 24px;
margin-top: 2px;
}
.layer-info h3 {
font-size: 16px;
font-weight: 700;
color: #ffffff;
margin-bottom: 4px;
display: flex;
align-items: center;
gap: 8px;
}
.layer-info p {
font-size: 13px;
color: #94a3b8;
line-height: 1.5;
}
.layer-info .standards {
display: flex;
gap: 6px;
margin-top: 8px;
flex-wrap: wrap;
}
.layer-info .standard-tag {
font-family: 'JetBrains Mono', monospace;
font-size: 10px;
padding: 3px 8px;
background: rgba(var(--layer-rgb), 0.15);
color: var(--layer-color);
border-radius: 4px;
border: 1px solid rgba(var(--layer-rgb), 0.3);
}
/* Layer Colors */
.layer-card[data-layer="L1"] { --layer-color: #22d3d3; --layer-color-dark: #0891b2; --layer-rgb: 34, 211, 211; }
.layer-card[data-layer="L2"] { --layer-color: #22c55e; --layer-color-dark: #16a34a; --layer-rgb: 34, 197, 94; }
.layer-card[data-layer="L3"] { --layer-color: #3b82f6; --layer-color-dark: #2563eb; --layer-rgb: 59, 130, 246; }
.layer-card[data-layer="L4"] { --layer-color: #8b5cf6; --layer-color-dark: #7c3aed; --layer-rgb: 139, 92, 246; }
.layer-card[data-layer="L5"] { --layer-color: #ec4899; --layer-color-dark: #db2777; --layer-rgb: 236, 72, 153; }
.layer-card[data-layer="L6"] { --layer-color: #f43f5e; --layer-color-dark: #e11d48; --layer-rgb: 244, 63, 94; }
.layer-card[data-layer="L7"] { --layer-color: #f97316; --layer-color-dark: #ea580c; --layer-rgb: 249, 115, 22; }
.layer-card[data-layer="L8"] { --layer-color: #eab308; --layer-color-dark: #ca8a04; --layer-rgb: 234, 179, 8; }
.layer-card[data-layer="L9"] { --layer-color: #14b8a6; --layer-color-dark: #0d9488; --layer-rgb: 20, 184, 166; }
.layer-card[data-layer="L10"] { --layer-color: #6366f1; --layer-color-dark: #4f46e5; --layer-rgb: 99, 102, 241; }
.layer-card[data-layer="L11"] { --layer-color: #a855f7; --layer-color-dark: #7e22ce; --layer-rgb: 168, 85, 247; }
/* Right Panel */
.right-panel {
display: flex;
flex-direction: column;
gap: 24px;
}
.info-card {
background: linear-gradient(135deg, rgba(17, 24, 32, 0.9) 0%, rgba(26, 35, 45, 0.7) 100%);
border: 1px solid rgba(42, 53, 68, 0.6);
border-radius: 16px;
padding: 24px;
position: relative;
overflow: hidden;
}
.info-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 3px;
background: linear-gradient(90deg, var(--card-color, #00e6b8), transparent);
}
.info-card-header {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 16px;
}
.info-card-icon {
width: 44px;
height: 44px;
border-radius: 10px;
background: rgba(0, 230, 184, 0.1);
display: flex;
align-items: center;
justify-content: center;
}
.info-card-icon svg {
width: 22px;
height: 22px;
color: #00e6b8;
}
.info-card h3 {
font-size: 16px;
font-weight: 700;
color: #ffffff;
}
.info-card p {
font-size: 13px;
color: #94a3b8;
line-height: 1.6;
}
.info-card.quickstart { --card-color: #00e6b8; }
.info-card.docs { --card-color: #3b82f6; }
.info-card.community { --card-color: #8b5cf6; }
/* Code Block */
.code-preview {
background: #0a0f14;
border-radius: 8px;
padding: 12px;
margin-top: 12px;
font-family: 'JetBrains Mono', monospace;
font-size: 11px;
overflow-x: auto;
}
.code-preview .comment { color: #64748b; }
.code-preview .command { color: #00e6b8; }
.code-preview .url { color: #94a3b8; }
/* Standards Table */
.standards-section {
margin-top: 50px;
position: relative;
z-index: 10;
}
.standards-header {
text-align: center;
margin-bottom: 30px;
}
.standards-header h2 {
font-size: 24px;
font-weight: 700;
color: #ffffff;
margin-bottom: 8px;
}
.standards-header p {
color: #64748b;
font-size: 14px;
}
.standards-grid {
display: grid;
grid-template-columns: repeat(6, 1fr);
gap: 12px;
}
.standard-card {
background: linear-gradient(135deg, rgba(17, 24, 32, 0.8) 0%, rgba(26, 35, 45, 0.6) 100%);
border: 1px solid rgba(42, 53, 68, 0.6);
border-radius: 12px;
padding: 20px 16px;
text-align: center;
transition: all 0.3s ease;
text-decoration: none;
display: block;
color: inherit;
}
.standard-card:hover {
border-color: #00e6b8;
transform: translateY(-4px);
box-shadow: 0 10px 30px rgba(0, 230, 184, 0.15);
}
.standard-card:hover .protocol {
color: #00e6b8;
}
.standard-card .icon {
width: 48px;
height: 48px;
margin: 0 auto 12px;
background: rgba(0, 168, 255, 0.1);
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
font-family: 'JetBrains Mono', monospace;
font-size: 12px;
font-weight: 700;
color: #00a8ff;
}
.standard-card .protocol {
font-size: 14px;
font-weight: 700;
color: #ffffff;
margin-bottom: 4px;
}
.standard-card .use-case {
font-size: 11px;
color: #64748b;
line-height: 1.4;
}
/* Footer */
.footer {
margin-top: 50px;
text-align: center;
padding: 30px 0;
border-top: 1px solid rgba(42, 53, 68, 0.4);
position: relative;
z-index: 10;
}
.footer .license {
display: inline-flex;
align-items: center;
gap: 8px;
background: rgba(0, 230, 184, 0.1);
padding: 8px 20px;
border-radius: 100px;
font-size: 12px;
color: #00e6b8;
border: 1px solid rgba(0, 230, 184, 0.2);
}
.footer .copyright {
margin-top: 16px;
font-size: 11px;
color: #64748b;
}
/* Physics Engine Highlight */
.physics-highlight {
background: linear-gradient(135deg, rgba(34, 211, 211, 0.1) 0%, rgba(34, 211, 211, 0.05) 100%);
border: 1px solid rgba(34, 211, 211, 0.3);
border-radius: 12px;
padding: 20px;
margin-top: 24px;
}
.physics-highlight h4 {
font-size: 14px;
font-weight: 700;
color: #22d3d3;
margin-bottom: 8px;
display: flex;
align-items: center;
gap: 8px;
}
.physics-highlight .formula {
font-family: 'JetBrains Mono', monospace;
font-size: 13px;
color: #ffffff;
background: rgba(0, 0, 0, 0.3);
padding: 12px 16px;
border-radius: 8px;
text-align: center;
}
.physics-highlight .formula .highlight {
color: #22d3d3;
font-weight: 600;
}
</style>
</head>
<body>
<div class="infographic">
<div class="glow-top"></div>
<div class="glow-bottom"></div>
<!-- Header -->
<header class="header">
<div class="logo-icon">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<path d="M13 2L3 14h9l-1 8 10-12h-9l1-8z"/>
</svg>
</div>
<h1>MiGrid</h1>
<p class="subtitle">The Open Source Operating System for Sustainable Fleets</p>
<span class="tagline">"Verify the physics. Unlock the grid."</span>
</header>
<!-- Main Content -->
<div class="main-content">
<!-- Architecture Tower -->
<div class="architecture-tower">
<div class="tower-title">11-Layer Microservices Architecture</div>
<div class="layer-stack">
<!-- L11 ML Engine -->
<div class="layer-card" data-layer="L11">
<div class="layer-badge">
<span class="layer-num">L11</span>
<svg class="layer-icon" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8z"/><path d="M12 6v6l4 2" stroke="#06090d" stroke-width="2" fill="none"/></svg>
</div>
<div class="layer-info">
<h3>ML Engine</h3>
<p>AI demand forecasting, predictive maintenance, and reinforcement learning-based bidding.</p>
<div class="standards">
<span class="standard-tag">TensorFlow</span>
<span class="standard-tag">MLflow</span>
</div>
</div>
</div>
<!-- L10 Token Bridge -->
<div class="layer-card" data-layer="L10">
<div class="layer-badge">
<span class="layer-num">L10</span>
<svg class="layer-icon" viewBox="0 0 24 24" fill="currentColor"><circle cx="12" cy="12" r="10"/><path d="M12 6v6l4 2" stroke="#06090d" stroke-width="2" fill="none"/></svg>
</div>
<div class="layer-info">
<h3>Token Engine (v4.3.8)</h3>
<p>Enables rewards via Open-Wallet. Implements Hardware Health Penalty reducing rewards by 0.05 per regional alarm.</p>
<div class="standards">
<span class="standard-tag">ERC-20</span>
<span class="standard-tag">Hardware Penalty</span>
<span class="standard-tag">.toFixed(4)</span>
</div>
</div>
</div>
<!-- L9 Commerce Engine -->
<div class="layer-card" data-layer="L9">
<div class="layer-badge">
<span class="layer-num">L9</span>
<svg class="layer-icon" viewBox="0 0 24 24" fill="currentColor"><rect x="3" y="4" width="18" height="16" rx="2"/><path d="M16 8h2M16 12h2M16 16h2M6 8h6M6 12h6M6 16h4" stroke="#06090d" stroke-width="2" fill="none"/></svg>
</div>
<div class="layer-info">
<h3>Commerce Engine</h3>
<p>Manages flexible billing, tariffs, subscriptions, and split-billing for fleet operators.</p>
<div class="standards">
<span class="standard-tag">Stripe</span>
<span class="standard-tag">OCPI CDR</span>
</div>
</div>
</div>
<!-- L8 Energy Manager -->
<div class="layer-card" data-layer="L8">
<div class="layer-badge">
<span class="layer-num">L8</span>
<svg class="layer-icon" viewBox="0 0 24 24" fill="currentColor"><path d="M13 2L3 14h9l-1 8 10-12h-9l1-8z"/></svg>
</div>
<div class="layer-info">
<h3>Energy Manager</h3>
<p>Handles Dynamic Load Management (DLM) and site safety. Edge-ready for offline operation.</p>
<div class="standards">
<span class="standard-tag">Modbus</span>
<span class="standard-tag">BACnet</span>
</div>
</div>
</div>
<!-- L7 Device Gateway -->
<div class="layer-card" data-layer="L7">
<div class="layer-badge">
<span class="layer-num">L7</span>
<svg class="layer-icon" viewBox="0 0 24 24" fill="currentColor"><rect x="4" y="4" width="16" height="16" rx="2"/><circle cx="12" cy="12" r="3" fill="#06090d"/></svg>
</div>
<div class="layer-info">
<h3>Device Gateway (v5.13.0)</h3>
<p>Hardware abstraction layer for OCPP 2.1 and ISO 15118. Optimized heartbeat indexing and normalized DER alarm broadcasts.</p>
<div class="standards">
<span class="standard-tag">OCPP 2.1</span>
<span class="standard-tag">ISO 15118</span>
<span class="standard-tag">v5.13.0</span>
</div>
</div>
</div>
<!-- L6 Engagement -->
<div class="layer-card" data-layer="L6">
<div class="layer-badge">
<span class="layer-num">L6</span>
<svg class="layer-icon" viewBox="0 0 24 24" fill="currentColor"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg>
</div>
<div class="layer-info">
<h3>Engagement (v5.18.0)</h3>
<p>Manages physics-aware achievements. Deployed 'Hardware Health Guardian' achievement and hardened metadata enrichment.</p>
<div class="standards">
<span class="standard-tag">WebSocket</span>
<span class="standard-tag">Hardware Guardian</span>
</div>
</div>
</div>
<!-- L5 Driver DX -->
<div class="layer-card" data-layer="L5">
<div class="layer-badge">
<span class="layer-num">L5</span>
<svg class="layer-icon" viewBox="0 0 24 24" fill="currentColor"><circle cx="12" cy="8" r="4"/><path d="M20 21a8 8 0 1 0-16 0"/></svg>
</div>
<div class="layer-info">
<h3>Driver DX</h3>
<p>Provides drivers with smart routing, voice commands, and real-time charger availability.</p>
<div class="standards">
<span class="standard-tag">REST</span>
<span class="standard-tag">GraphQL</span>
</div>
</div>
</div>
<!-- L4 Market Gateway -->
<div class="layer-card" data-layer="L4">
<div class="layer-badge">
<span class="layer-num">L4</span>
<svg class="layer-icon" viewBox="0 0 24 24" fill="currentColor"><path d="M3 3v18h18"/><path d="M18 9l-5 5-4-4-4 4" stroke="#06090d" stroke-width="2" fill="none"/></svg>
</div>
<div class="layer-info">
<h3>Market Gateway (v3.8.9)</h3>
<p>Arbitrage engine with hardware-aware bidding. Enforces strict .toFixed(4) formatting and DER Alarm integration.</p>
<div class="standards">
<span class="standard-tag">Health Penalty</span>
<span class="standard-tag">v3.8.9</span>
<span class="standard-tag">.toFixed(4)</span>
</div>
</div>
</div>
<!-- L3 VPP Aggregator -->
<div class="layer-card" data-layer="L3">
<div class="layer-badge">
<span class="layer-num">L3</span>
<svg class="layer-icon" viewBox="0 0 24 24" fill="currentColor"><rect x="3" y="8" width="6" height="12" rx="1"/><rect x="9" y="4" width="6" height="16" rx="1"/><rect x="15" y="10" width="6" height="10" rx="1"/></svg>
</div>
<div class="layer-info">
<h3>VPP Aggregator (v3.3.3)</h3>
<p>Aggregates EVs and BESS storage. Enforces 20% SoC floor and supports multi-format sentinel flags.</p>
<div class="standards">
<span class="standard-tag">IEEE 2030.5</span>
<span class="standard-tag">v3.3.3</span>
</div>
</div>
</div>
<!-- L2 Grid Signal -->
<div class="layer-card" data-layer="L2">
<div class="layer-badge">
<span class="layer-num">L2</span>
<svg class="layer-icon" viewBox="0 0 24 24" fill="currentColor"><path d="M22 12h-4l-3 9L9 3l-3 9H2"/></svg>
</div>
<div class="layer-info">
<h3>Grid Signal (v2.5.5)</h3>
<p>OpenADR 3.0 VEN. Secured with `helmet()` and site-specific safety locks from Redis.</p>
<div class="standards">
<span class="standard-tag">OpenADR 3.0</span>
<span class="standard-tag">v2.5.5</span>
</div>
</div>
</div>
<!-- L1 Physics Engine -->
<div class="layer-card" data-layer="L1">
<div class="layer-badge">
<span class="layer-num">L1</span>
<svg class="layer-icon" viewBox="0 0 24 24" fill="currentColor"><circle cx="12" cy="12" r="10"/><path d="M12 6v6l4 2" stroke="#06090d" stroke-width="2" fill="none"/><circle cx="12" cy="12" r="3" fill="#06090d"/></svg>
</div>
<div class="layer-info">
<h3>Physics Engine</h3>
<p>The "Green Audit" — verifies kWh dispensed vs. kWh received via telematics data.</p>
<div class="standards">
<span class="standard-tag">Variance <15%</span>
<span class="standard-tag">Telematics</span>
</div>
</div>
</div>
</div>
<!-- Physics Formula -->
<div class="physics-highlight">
<h4>
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/></svg>
Physics Verification Formula
</h4>
<div class="formula">
Variance = |E<sub>dispensed</sub> - (ΔSoC × BatteryCapacity)| / E<sub>dispensed</sub><br>
<span class="highlight">If Variance < 15%, transaction is VERIFIED</span>
</div>
</div>
</div>
<!-- Right Panel -->
<div class="right-panel">
<div class="info-card quickstart">
<div class="info-card-header">
<div class="info-card-icon">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polygon points="5 3 19 12 5 21 5 3"/></svg>
</div>
<h3>Get Started in 5 Minutes</h3>
</div>
<p>Clone the repository and launch all infrastructure services locally with Docker.</p>
<div class="code-preview">
<span class="comment"># Clone & start</span><br>
<span class="command">git clone</span> <span class="url">github.com/thomasc3/Migrid</span><br>
<span class="command">docker-compose up -d</span><br>
<span class="command">npm run seed:physics</span>
</div>
</div>
<div class="info-card docs">
<div class="info-card-header">
<div class="info-card-icon" style="background: rgba(59, 130, 246, 0.1);">
<svg viewBox="0 0 24 24" fill="none" stroke="#3b82f6" stroke-width="2"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><polyline points="14 2 14 8 20 8"/></svg>
</div>
<h3>Comprehensive Documentation</h3>
</div>
<p>Architecture Decision Records (ADRs), OpenAPI specifications, and Infrastructure as Code (Terraform/Kubernetes) modules.</p>
</div>
<div class="info-card community">
<div class="info-card-header">
<div class="info-card-icon" style="background: rgba(139, 92, 246, 0.1);">
<svg viewBox="0 0 24 24" fill="none" stroke="#8b5cf6" stroke-width="2"><path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M23 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75"/></svg>
</div>
<h3>Open Source & Community</h3>
</div>
<p>Licensed under Apache 2.0 with a clear contributing guide and governance model for community contributions.</p>
</div>
<div class="info-card" style="--card-color: #f97316;">
<div class="info-card-header">
<div class="info-card-icon" style="background: rgba(249, 115, 22, 0.1);">
<svg viewBox="0 0 24 24" fill="none" stroke="#f97316" stroke-width="2"><rect x="2" y="7" width="20" height="14" rx="2" ry="2"/><path d="M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"/></svg>
</div>
<h3>Edge-Ready Architecture</h3>
</div>
<p>Energy Manager runs on depot hardware, ensuring site safety continues even when cloud connectivity fails.</p>
</div>
</div>
</div>
<!-- Standards Section -->
<section class="standards-section">
<div class="standards-header">
<h2>Built on Open Standards for Interoperability</h2>
<p>Industry protocols ensuring maximum compatibility across vendors and utilities</p>
</div>
<div class="standards-grid">
<a href="https://www.openadr.org/" target="_blank" class="standard-card">
<div class="icon">ADR</div>
<div class="protocol">OpenADR 3.0</div>
<div class="use-case">Demand response communication</div>
</a>
<a href="https://openchargealliance.org/" target="_blank" class="standard-card" style="border-color: #00e6b8; box-shadow: 0 10px 30px rgba(0, 230, 184, 0.1);">
<div class="icon">OCPP</div>
<div class="protocol" style="color: #00e6b8;">OCPP 2.1</div>
<div class="use-case">Charger communication</div>
</a>
<a href="https://evroaming.org/" target="_blank" class="standard-card">
<div class="icon">OCPI</div>
<div class="protocol">OCPI 2.2</div>
<div class="use-case">Roaming networks</div>
</a>
<a href="https://www.iso.org/standard/77845.html" target="_blank" class="standard-card">
<div class="icon">ISO</div>
<div class="protocol">ISO 15118</div>
<div class="use-case">Plug & Charge</div>
</a>
<a href="https://modbus.org/" target="_blank" class="standard-card">
<div class="icon">MOD</div>
<div class="protocol">Modbus TCP/RTU</div>
<div class="use-case">Building load monitoring</div>
</a>
<a href="https://mqtt.org/" target="_blank" class="standard-card">
<div class="icon">MQTT</div>
<div class="protocol">MQTT 5.0</div>
<div class="use-case">Real-time messaging</div>
</a>
</div>
</section>
<!-- Footer -->
<footer class="footer">
<div class="license">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/></svg>
Apache 2.0 License
</div>
<div class="copyright">
© 2025-2026 MiGrid Contributors • github.com/dcplatforms/Migrid • Version 10.1.6
</div>
</footer>
</div>
</body>
</html>