-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
1303 lines (1155 loc) · 44.1 KB
/
Copy pathindex.html
File metadata and controls
1303 lines (1155 loc) · 44.1 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
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Fiber DevKit Demo</title>
<meta name="description" content="Hosted demo for Fiber DevKit, a Rust CLI for local Fiber Network testing, diagnostics, route prediction, and CI.">
<link rel="icon" type="image/png" sizes="32x32" href="./favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="./favicon-16x16.png">
<link rel="apple-touch-icon" sizes="180x180" href="./apple-touch-icon.png">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/asciinema-player@3/dist/bundle/asciinema-player.min.css">
<style>
:root {
color-scheme: light;
--ink: #18202a;
--muted: #5b6675;
--line: #d9e0e7;
--panel: #ffffff;
--paper: #f7f9fb;
--green: #0f8b6f;
--blue: #2368b4;
--amber: #a86600;
--red: #b03a48;
--code: #101820;
--code-line: #263342;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
color: var(--ink);
background: var(--paper);
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
line-height: 1.5;
}
a {
color: var(--blue);
text-decoration-thickness: 1px;
text-underline-offset: 3px;
}
.shell {
width: min(1120px, calc(100% - 32px));
margin: 0 auto;
}
header {
position: sticky;
top: 0;
z-index: 10;
border-bottom: 1px solid rgba(24, 32, 42, 0.08);
background: rgba(247, 249, 251, 0.92);
backdrop-filter: blur(14px);
}
nav {
display: flex;
align-items: center;
justify-content: space-between;
min-height: 64px;
gap: 24px;
}
.brand {
font-weight: 760;
letter-spacing: 0;
}
.nav-links {
display: flex;
gap: 18px;
flex-wrap: wrap;
font-size: 0.94rem;
}
.hero {
display: grid;
grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
gap: 48px;
align-items: center;
min-height: 86vh;
padding: 72px 0 56px;
}
.eyebrow {
color: var(--green);
font-weight: 720;
font-size: 0.86rem;
text-transform: uppercase;
letter-spacing: 0.06em;
margin: 0 0 14px;
}
h1 {
margin: 0;
font-size: 5rem;
line-height: 0.95;
letter-spacing: 0;
}
.lead {
margin: 24px 0 0;
color: var(--muted);
font-size: 1.15rem;
max-width: 58ch;
}
.hero-actions {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin-top: 30px;
}
.button {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 42px;
padding: 0 16px;
border: 1px solid var(--ink);
border-radius: 8px;
color: var(--ink);
background: transparent;
font-weight: 700;
text-decoration: none;
}
.button.primary {
color: #fff;
background: var(--ink);
}
.diagram {
width: 100%;
min-height: 420px;
background: #fff;
border: 1px solid var(--line);
border-radius: 8px;
box-shadow: 0 18px 50px rgba(24, 32, 42, 0.09);
}
section {
scroll-margin-top: 84px;
padding: 70px 0;
border-top: 1px solid rgba(24, 32, 42, 0.08);
}
#console {
scroll-margin-top: 84px;
}
.section-head {
display: flex;
align-items: end;
justify-content: space-between;
gap: 24px;
margin-bottom: 26px;
}
h2 {
margin: 0;
font-size: 2.2rem;
letter-spacing: 0;
}
.section-copy {
margin: 0;
color: var(--muted);
max-width: 68ch;
}
.demo-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 18px;
}
.flow-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 18px;
}
.flow-card {
border: 1px solid var(--line);
border-radius: 8px;
background: var(--panel);
overflow: hidden;
}
.flow-diagram {
display: block;
width: 100%;
min-height: 260px;
background: #fff;
}
.flow-copy {
padding: 16px 18px 18px;
border-top: 1px solid var(--line);
}
.flow-copy h3 {
margin: 0 0 8px;
font-size: 1.05rem;
}
.flow-copy p {
margin: 0;
color: var(--muted);
}
.demo-panel,
.info-panel {
border: 1px solid var(--line);
border-radius: 8px;
background: var(--panel);
overflow: hidden;
}
.demo-panel.wide {
grid-column: 1 / -1;
}
.panel-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
padding: 16px 18px;
border-bottom: 1px solid var(--line);
}
.panel-title {
margin: 0;
font-size: 1rem;
font-weight: 760;
}
.badge {
display: inline-flex;
align-items: center;
min-height: 24px;
padding: 0 9px;
border-radius: 6px;
color: #fff;
background: var(--blue);
font-size: 0.77rem;
font-weight: 760;
white-space: nowrap;
}
.badge.green {
background: var(--green);
}
.badge.amber {
background: var(--amber);
}
.badge.red {
background: var(--red);
}
.player {
min-height: 324px;
background: var(--code);
}
.cast-fallback {
display: none;
margin: 0;
padding: 18px;
color: #dce7ef;
background: var(--code);
overflow: auto;
min-height: 324px;
font: 0.88rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
white-space: pre-wrap;
}
.install {
display: grid;
grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
gap: 18px;
}
pre {
margin: 0;
padding: 18px;
color: #e8eef4;
background: var(--code);
border-radius: 8px;
overflow: auto;
font: 0.92rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.info-panel {
padding: 20px;
}
.info-panel h3 {
margin: 0 0 8px;
font-size: 1.05rem;
}
.info-panel p {
margin: 0;
color: var(--muted);
}
table {
width: 100%;
border-collapse: collapse;
overflow: hidden;
border: 1px solid var(--line);
border-radius: 8px;
background: #fff;
}
th,
td {
padding: 14px 16px;
border-bottom: 1px solid var(--line);
text-align: left;
vertical-align: top;
}
th {
background: #eef3f7;
font-size: 0.82rem;
text-transform: uppercase;
letter-spacing: 0.04em;
}
tr:last-child td {
border-bottom: 0;
}
code {
padding: 0.1rem 0.32rem;
border-radius: 5px;
background: #e9eef3;
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
font-size: 0.92em;
}
.coverage {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 18px;
}
.closing-flow-section {
background: #eef5fb;
}
.closing-flow-map {
display: grid;
grid-template-columns: repeat(6, minmax(0, 1fr));
gap: 22px;
margin: 0;
padding: 0;
list-style: none;
}
.closing-flow-step {
--stage: var(--blue);
--stage-soft: #edf4ff;
position: relative;
min-width: 0;
min-height: 174px;
padding: 18px 16px;
border: 1px solid var(--line);
border-top: 4px solid var(--stage);
border-radius: 8px;
background: var(--panel);
box-shadow: 0 14px 30px rgba(24, 32, 42, 0.06);
}
.closing-flow-step.scenarios {
--stage: var(--green);
--stage-soft: #eaf5f1;
}
.closing-flow-step.diagnosis {
--stage: var(--red);
--stage-soft: #f9edf0;
}
.closing-flow-step.prediction {
--stage: var(--amber);
--stage-soft: #fff6e6;
}
.closing-flow-step.reports {
--stage: #527184;
--stage-soft: #eef3f7;
}
.closing-flow-step.ci {
--stage: var(--ink);
--stage-soft: #eef0f2;
}
.closing-flow-step:not(:last-child)::after {
content: "";
position: absolute;
z-index: 2;
top: 50%;
right: -18px;
width: 13px;
height: 2px;
background: #8c98a6;
}
.closing-flow-step:not(:last-child)::before {
content: "";
position: absolute;
z-index: 2;
top: calc(50% - 4px);
right: -22px;
border-top: 5px solid transparent;
border-bottom: 5px solid transparent;
border-left: 7px solid #8c98a6;
}
.closing-flow-number {
display: inline-flex;
align-items: center;
justify-content: center;
width: 30px;
height: 30px;
margin-bottom: 14px;
border: 1px solid var(--stage);
border-radius: 6px;
color: var(--stage);
background: var(--stage-soft);
font: 760 0.74rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.closing-flow-step h3 {
margin: 0 0 8px;
font-size: 1rem;
}
.closing-flow-step p {
margin: 0;
color: var(--muted);
font-size: 0.88rem;
}
.closing-flow-step code {
display: inline-block;
margin-bottom: 7px;
color: var(--stage);
background: var(--stage-soft);
font-size: 0.78rem;
white-space: nowrap;
}
.console-replay {
--console-paper: #FAFAF8;
--console-raised: #FFFFFF;
--console-ink: #16191C;
--console-muted: #6B7280;
--console-brand: #087ED6;
--console-brand-soft: #E7F5FF;
--console-signal: #0F9D74;
--console-signal-soft: #E4F5EE;
--console-fault: #C1443B;
--console-fault-soft: #FBEAE8;
--console-amber: #B4791F;
--console-amber-soft: #FBF1E2;
--console-wire: #D8D8D3;
display: grid;
grid-template-columns: minmax(0, 1.28fr) minmax(340px, 0.72fr);
gap: 18px;
align-items: start;
color: var(--console-ink);
}
.replay-panel {
border: 1px solid var(--console-wire);
border-radius: 6px;
background: var(--console-raised);
padding: 18px;
box-shadow: 0 14px 30px rgba(22, 25, 28, 0.05);
}
.replay-panel h3 {
margin-top: 0;
font-size: 1.05rem;
}
.replay-label {
margin: 0 0 14px;
color: var(--console-brand);
font-family: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
font-size: 0.9rem;
}
.replay-nodes {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 10px;
}
.replay-node {
border: 1px solid var(--console-wire);
border-radius: 6px;
padding: 12px;
background: var(--console-paper);
}
.replay-node h3 {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
margin: 0 0 8px;
font-size: 0.98rem;
white-space: nowrap;
}
.replay-node p {
margin: 0;
color: var(--console-muted);
font-size: 0.88rem;
overflow-wrap: anywhere;
}
.replay-node .indicator {
display: inline-flex;
gap: 6px;
min-height: 22px;
align-items: center;
padding: 0 8px;
border-radius: 6px;
border: 1px solid var(--console-signal);
color: var(--console-signal);
background: var(--console-signal-soft);
font-size: 0.74rem;
font-weight: 760;
}
.replay-node .indicator::before {
content: "";
width: 7px;
height: 7px;
border-radius: 999px;
background: var(--console-signal);
}
.replay-report {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
}
.replay-report .metric {
border: 1px solid var(--console-wire);
border-radius: 6px;
padding: 12px;
background: var(--console-paper);
}
.replay-report .metric:nth-child(n + 3) {
grid-column: 1 / -1;
}
.replay-report span {
display: block;
color: var(--console-brand);
font-size: 0.76rem;
}
.console-section-title {
display: flex;
align-items: center;
flex: 0 0 auto;
gap: 12px;
}
.console-section-title img {
width: 42px;
height: 42px;
flex: 0 0 42px;
border-radius: 9px;
}
.console-section-title h2 {
margin: 0;
white-space: nowrap;
}
.replay-report strong {
overflow-wrap: anywhere;
}
footer {
padding: 36px 0 48px;
color: var(--muted);
border-top: 1px solid rgba(24, 32, 42, 0.08);
}
@media (max-width: 900px) {
.hero,
.install,
.demo-grid,
.flow-grid,
.console-replay,
.coverage {
grid-template-columns: 1fr;
}
.replay-nodes {
grid-template-columns: 1fr;
}
.closing-flow-map {
grid-template-columns: 1fr;
gap: 28px;
}
.closing-flow-step {
min-height: 0;
}
.closing-flow-step:not(:last-child)::after {
top: auto;
right: calc(50% - 1px);
bottom: -20px;
width: 2px;
height: 14px;
}
.closing-flow-step:not(:last-child)::before {
top: auto;
right: calc(50% - 5px);
bottom: -26px;
border-top: 7px solid #8c98a6;
border-right: 5px solid transparent;
border-bottom: 0;
border-left: 5px solid transparent;
}
.hero {
min-height: auto;
padding-top: 54px;
}
.diagram {
min-height: 320px;
}
h1 {
font-size: 3.6rem;
}
h2 {
font-size: 1.9rem;
}
.section-head {
display: block;
}
.section-copy {
margin-top: 10px;
}
}
@media (max-width: 560px) {
.shell {
width: min(100% - 22px, 1120px);
}
section {
scroll-margin-top: 126px;
}
#console {
scroll-margin-top: 126px;
}
.replay-report {
grid-template-columns: 1fr;
}
.console-section-title h2 {
white-space: normal;
}
nav {
align-items: start;
flex-direction: column;
padding: 14px 0;
}
.nav-links {
gap: 12px;
}
h1 {
font-size: 3rem;
}
h2 {
font-size: 1.7rem;
}
th,
td {
padding: 12px 10px;
}
}
</style>
</head>
<body>
<header>
<nav class="shell" aria-label="Primary navigation">
<div class="brand">Fiber DevKit</div>
<div class="nav-links">
<a href="#flows">Flows</a>
<a href="#watch">Watch</a>
<a href="#console">Console</a>
<a href="#try">Try</a>
<a href="#scenarios">Scenarios</a>
<a href="#coverage">Coverage</a>
<a href="./Devkit_screebshots/UI_actions/">Screenshots</a>
</div>
</nav>
</header>
<main>
<section class="hero shell">
<div>
<p class="eyebrow">Category 2 infrastructure demo</p>
<h1>Fiber DevKit</h1>
<p class="lead">
A Rust CLI for local Fiber Network orchestration, repeatable payment scenarios,
structured failure diagnosis, route prediction, report artifacts, and CI smoke tests.
</p>
<div class="hero-actions">
<a class="button primary" href="#watch">Watch it work</a>
<a class="button" href="https://github.com/anihdev/Fiber_Devkit#readme">Read the README</a>
</div>
</div>
<svg class="diagram" viewBox="0 0 820 520" role="img" aria-labelledby="diagram-title diagram-desc">
<title id="diagram-title">Fiber DevKit architecture</title>
<desc id="diagram-desc">A Rust CLI controls local Fiber nodes, scenario YAML files, diagnostics, route prediction, and CI reports.</desc>
<rect x="0" y="0" width="820" height="520" fill="#ffffff"/>
<defs>
<marker id="arrow" markerWidth="10" markerHeight="10" refX="8" refY="3" orient="auto">
<path d="M0,0 L8,3 L0,6 Z" fill="#52606f"/>
</marker>
</defs>
<rect x="54" y="56" width="216" height="90" rx="8" fill="#eaf5f1" stroke="#0f8b6f"/>
<text x="82" y="92" fill="#18202a" font-size="22" font-weight="700">fiber CLI</text>
<text x="82" y="120" fill="#52606f" font-size="16">init · up · run · doctor</text>
<rect x="54" y="220" width="216" height="74" rx="8" fill="#eef3f7" stroke="#8c98a6"/>
<text x="82" y="252" fill="#18202a" font-size="18" font-weight="700">Scenario YAML</text>
<text x="82" y="276" fill="#52606f" font-size="15">payments, failures, asserts</text>
<rect x="54" y="360" width="216" height="74" rx="8" fill="#fff6e6" stroke="#a86600"/>
<text x="82" y="392" fill="#18202a" font-size="18" font-weight="700">Report Artifacts</text>
<text x="82" y="416" fill="#52606f" font-size="15">report.md · trace.json · logs</text>
<rect x="350" y="48" width="170" height="84" rx="8" fill="#edf4ff" stroke="#2368b4"/>
<text x="394" y="83" fill="#18202a" font-size="18" font-weight="700">node-1</text>
<text x="382" y="108" fill="#52606f" font-size="14">hub · FNN RPC</text>
<rect x="598" y="160" width="170" height="84" rx="8" fill="#edf4ff" stroke="#2368b4"/>
<text x="642" y="195" fill="#18202a" font-size="18" font-weight="700">node-2</text>
<text x="629" y="220" fill="#52606f" font-size="14">leaf · channel</text>
<rect x="598" y="302" width="170" height="84" rx="8" fill="#edf4ff" stroke="#2368b4"/>
<text x="642" y="337" fill="#18202a" font-size="18" font-weight="700">node-3</text>
<text x="629" y="362" fill="#52606f" font-size="14">leaf · channel</text>
<rect x="346" y="380" width="178" height="84" rx="8" fill="#f9edf0" stroke="#b03a48"/>
<text x="384" y="414" fill="#18202a" font-size="18" font-weight="700">Taxonomy</text>
<text x="374" y="439" fill="#52606f" font-size="14">FIBER_LIQ_001 etc.</text>
<path d="M270 102 C308 98, 318 92, 350 90" fill="none" stroke="#52606f" stroke-width="2.5" marker-end="url(#arrow)"/>
<path d="M270 254 C340 248, 340 128, 350 110" fill="none" stroke="#52606f" stroke-width="2.5" marker-end="url(#arrow)"/>
<path d="M520 104 C575 118, 594 150, 606 170" fill="none" stroke="#2368b4" stroke-width="3" marker-end="url(#arrow)"/>
<path d="M520 118 C574 185, 594 286, 606 318" fill="none" stroke="#2368b4" stroke-width="3" marker-end="url(#arrow)"/>
<path d="M270 386 C318 382, 326 422, 346 422" fill="none" stroke="#52606f" stroke-width="2.5" marker-end="url(#arrow)"/>
<path d="M520 418 C566 406, 594 376, 606 358" fill="none" stroke="#52606f" stroke-width="2.5" marker-end="url(#arrow)"/>
<path d="M270 132 C332 172, 342 344, 356 386" fill="none" stroke="#52606f" stroke-width="2.5" marker-end="url(#arrow)"/>
</svg>
</section>
<section id="flows">
<div class="shell">
<div class="section-head">
<h2>Flow Maps</h2>
<p class="section-copy">These diagrams explain how DevKit moves from setup to local Fiber nodes, then from scenarios to diagnostics, reports, route prediction, and CCH-aware comparison.</p>
</div>
<div class="flow-grid">
<article class="flow-card">
<svg class="flow-diagram" viewBox="0 0 360 260" role="img" aria-labelledby="setup-flow-title setup-flow-desc">
<title id="setup-flow-title">Setup and local network flow</title>
<desc id="setup-flow-desc">make setup installs dependencies and the fiber CLI, then fiber init and fiber up create and start local FNN nodes.</desc>
<defs>
<marker id="setup-arrow" markerWidth="10" markerHeight="10" refX="8" refY="3" orient="auto">
<path d="M0,0 L8,3 L0,6 Z" fill="#52606f"/>
</marker>
</defs>
<rect width="360" height="260" fill="#ffffff"/>
<g>
<title>Repository checkout: the starting point after git clone.</title>
<rect x="26" y="28" width="132" height="54" rx="8" fill="#eef3f7" stroke="#8c98a6"/>
<text x="50" y="59" fill="#18202a" font-size="15" font-weight="700">repo clone</text>
</g>
<g>
<title>make setup installs pnpm support dependencies and the local fiber binary.</title>
<rect x="202" y="28" width="132" height="54" rx="8" fill="#eaf5f1" stroke="#0f8b6f"/>
<text x="232" y="51" fill="#18202a" font-size="15" font-weight="700">make setup</text>
<text x="224" y="70" fill="#52606f" font-size="12">pnpm + Cargo</text>
</g>
<g>
<title>fiber init writes .fiber config, generated FNN configs, node keys, and Docker Compose artifacts.</title>
<rect x="26" y="116" width="132" height="58" rx="8" fill="#fff6e6" stroke="#a86600"/>
<text x="55" y="140" fill="#18202a" font-size="15" font-weight="700">fiber init</text>
<text x="45" y="159" fill="#52606f" font-size="12">.fiber config</text>
</g>
<g>
<title>fiber up starts Dockerized FNN nodes and waits for node_info RPC readiness.</title>
<rect x="202" y="116" width="132" height="58" rx="8" fill="#edf4ff" stroke="#2368b4"/>
<text x="237" y="140" fill="#18202a" font-size="15" font-weight="700">fiber up</text>
<text x="225" y="159" fill="#52606f" font-size="12">3 FNN nodes</text>
</g>
<g>
<title>fiber inspect provides a read-only view of node reachability, peer counts, and channel state.</title>
<rect x="114" y="202" width="132" height="42" rx="8" fill="#f9edf0" stroke="#b03a48"/>
<text x="143" y="228" fill="#18202a" font-size="15" font-weight="700">fiber inspect</text>
</g>
<path d="M158 55 H202" fill="none" stroke="#52606f" stroke-width="2.2" marker-end="url(#setup-arrow)"/>
<path d="M268 82 C268 98, 112 96, 92 116" fill="none" stroke="#52606f" stroke-width="2.2" marker-end="url(#setup-arrow)"/>
<path d="M158 145 H202" fill="none" stroke="#52606f" stroke-width="2.2" marker-end="url(#setup-arrow)"/>
<path d="M268 174 C266 194, 216 202, 198 208" fill="none" stroke="#52606f" stroke-width="2.2" marker-end="url(#setup-arrow)"/>
</svg>
<div class="flow-copy">
<h3>Onboarding</h3>
<p><code>make setup</code> is only setup. It installs support dependencies and the local <code>fiber</code> CLI before any network state is created.</p>
</div>
</article>
<article class="flow-card">
<svg class="flow-diagram" viewBox="0 0 360 260" role="img" aria-labelledby="scenario-flow-title scenario-flow-desc">
<title id="scenario-flow-title">Scenario, diagnosis, and report flow</title>
<desc id="scenario-flow-desc">YAML scenarios run through Fiber RPC, produce JSONL step output, attach taxonomy diagnoses, and write report artifacts.</desc>
<defs>
<marker id="scenario-arrow" markerWidth="10" markerHeight="10" refX="8" refY="3" orient="auto">
<path d="M0,0 L8,3 L0,6 Z" fill="#52606f"/>
</marker>
</defs>
<rect width="360" height="260" fill="#ffffff"/>
<g>
<title>Scenario YAML describes nodes, optional channel setup, steps, expectations, and assertions.</title>
<rect x="24" y="30" width="120" height="54" rx="8" fill="#eef3f7" stroke="#8c98a6"/>
<text x="47" y="54" fill="#18202a" font-size="15" font-weight="700">scenario</text>
<text x="53" y="72" fill="#52606f" font-size="12">YAML</text>
</g>
<g>
<title>fiber run executes steps through FNN JSON-RPC and prints JSONL step output.</title>
<rect x="216" y="30" width="120" height="54" rx="8" fill="#eaf5f1" stroke="#0f8b6f"/>
<text x="249" y="54" fill="#18202a" font-size="15" font-weight="700">fiber run</text>
<text x="246" y="72" fill="#52606f" font-size="12">JSONL steps</text>
</g>
<g>
<title>FNN RPC returns node, channel, graph, and payment responses from the local Docker network.</title>
<rect x="120" y="110" width="120" height="48" rx="8" fill="#edf4ff" stroke="#2368b4"/>
<text x="149" y="139" fill="#18202a" font-size="15" font-weight="700">FNN RPC</text>
</g>
<g>
<title>The diagnostic engine maps low-level FNN/RPC failures to taxonomy codes and remediation steps.</title>
<rect x="24" y="192" width="120" height="48" rx="8" fill="#f9edf0" stroke="#b03a48"/>
<text x="52" y="220" fill="#18202a" font-size="15" font-weight="700">doctor</text>
</g>
<g>
<title>Reports write report.md, logs.json, trace.json, and last-run.json under .fiber/output.</title>
<rect x="216" y="192" width="120" height="48" rx="8" fill="#fff6e6" stroke="#a86600"/>
<text x="250" y="212" fill="#18202a" font-size="15" font-weight="700">reports</text>
<text x="241" y="229" fill="#52606f" font-size="12">md/json/trace</text>
</g>
<path d="M144 57 H216" fill="none" stroke="#52606f" stroke-width="2.2" marker-end="url(#scenario-arrow)"/>
<path d="M276 84 C274 104, 234 110, 220 120" fill="none" stroke="#52606f" stroke-width="2.2" marker-end="url(#scenario-arrow)"/>
<path d="M142 136 C104 150, 86 174, 84 192" fill="none" stroke="#52606f" stroke-width="2.2" marker-end="url(#scenario-arrow)"/>
<path d="M218 136 C254 150, 274 174, 276 192" fill="none" stroke="#52606f" stroke-width="2.2" marker-end="url(#scenario-arrow)"/>
</svg>
<div class="flow-copy">
<h3>Scenario Evidence</h3>
<p>Every run persists its latest result. <code>--report</code> adds grouped causes and remediation in Markdown plus structured JSON and trace artifacts.</p>
</div>
</article>
<article class="flow-card">
<svg class="flow-diagram" viewBox="0 0 360 260" role="img" aria-labelledby="route-flow-title route-flow-desc">
<title id="route-flow-title">Route prediction and CCH comparison flow</title>
<desc id="route-flow-desc">fiber predict reads local channels and graph data, scores native Fiber route confidence, and compares CCH availability without inventing live bridge data.</desc>
<defs>
<marker id="route-arrow" markerWidth="10" markerHeight="10" refX="8" refY="3" orient="auto">
<path d="M0,0 L8,3 L0,6 Z" fill="#52606f"/>
</marker>
</defs>
<rect width="360" height="260" fill="#ffffff"/>
<g>
<title>fiber predict evaluates a configured source node, destination node, amount, and asset.</title>
<rect x="28" y="28" width="130" height="54" rx="8" fill="#eaf5f1" stroke="#0f8b6f"/>
<text x="55" y="52" fill="#18202a" font-size="15" font-weight="700">fiber predict</text>
<text x="62" y="70" fill="#52606f" font-size="12">node-1 to node-2</text>
</g>
<g>
<title>Local channel and graph data feed the native Fiber route confidence model.</title>
<rect x="202" y="28" width="130" height="54" rx="8" fill="#edf4ff" stroke="#2368b4"/>
<text x="224" y="52" fill="#18202a" font-size="15" font-weight="700">route data</text>
<text x="218" y="70" fill="#52606f" font-size="12">channels + graph</text>
</g>
<g>
<title>The analyzer returns probability, confidence label, warnings, and alternative routes when available.</title>
<rect x="28" y="120" width="130" height="54" rx="8" fill="#fff6e6" stroke="#a86600"/>
<text x="54" y="144" fill="#18202a" font-size="15" font-weight="700">native score</text>
<text x="55" y="162" fill="#52606f" font-size="12">probability + fee</text>
</g>
<g>
<title>CCH Tier 1 reports bridge availability and mechanism; live order fields require a CCH actor and Lightning backend.</title>
<rect x="202" y="120" width="130" height="54" rx="8" fill="#f9edf0" stroke="#b03a48"/>
<text x="233" y="144" fill="#18202a" font-size="15" font-weight="700">CCH view</text>
<text x="219" y="162" fill="#52606f" font-size="12">honest availability</text>
</g>
<g>
<title>simulate --dry-run delegates to the same analyzer and never executes a payment.</title>
<rect x="115" y="202" width="130" height="42" rx="8" fill="#eef3f7" stroke="#8c98a6"/>
<text x="150" y="219" fill="#18202a" font-size="15" font-weight="700">simulate</text>
<text x="151" y="236" fill="#52606f" font-size="13" font-weight="700">--dry-run</text>
</g>
<path d="M158 64 C176 82, 186 82, 202 64" fill="none" stroke="#52606f" stroke-width="2.2" marker-end="url(#route-arrow)"/>
<path d="M268 82 C268 104, 132 100, 94 120" fill="none" stroke="#52606f" stroke-width="2.2" marker-end="url(#route-arrow)"/>
<path d="M268 82 V120" fill="none" stroke="#52606f" stroke-width="2.2" marker-end="url(#route-arrow)"/>
<path d="M94 174 C112 196, 144 202, 164 207" fill="none" stroke="#52606f" stroke-width="2.2" marker-end="url(#route-arrow)"/>
<path d="M266 174 C244 196, 212 202, 194 207" fill="none" stroke="#52606f" stroke-width="2.2" marker-end="url(#route-arrow)"/>
</svg>
<div class="flow-copy">
<h3>Route Intelligence</h3>
<p>Native Fiber gets a confidence score. CCH gets an availability/mechanism statement unless real Lightning-backed order data exists.</p>
</div>
</article>
</div>
</div>
</section>
<section id="watch">
<div class="shell">
<div class="section-head">
<h2>Watch It Work</h2>
<p class="section-copy">Short terminal recordings show the core DevKit workflow without requiring judges to install Docker, Rust, or FNN locally.</p>
</div>
<div class="demo-grid">
<article class="demo-panel wide">
<div class="panel-head">
<h3 class="panel-title">Bring up a three-node Fiber network</h3>
<span class="badge green">orchestration</span>
</div>
<div class="player" data-cast="./casts/demo-network.cast"></div>
<pre class="cast-fallback">Open ./casts/demo-network.cast to view the terminal recording.</pre>
</article>
<article class="demo-panel">
<div class="panel-head">
<h3 class="panel-title">Run a funded happy-path payment</h3>
<span class="badge green">scenario</span>
</div>
<div class="player" data-cast="./casts/demo-basic-payment.cast"></div>
<pre class="cast-fallback">Open ./casts/demo-basic-payment.cast to view the terminal recording.</pre>
</article>
<article class="demo-panel">
<div class="panel-head">
<h3 class="panel-title">Diagnose a liquidity failure</h3>
<span class="badge red">diagnostics</span>