-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
1062 lines (967 loc) · 67.2 KB
/
Copy pathindex.html
File metadata and controls
1062 lines (967 loc) · 67.2 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.0" />
<title>Kite AI — GitHub integration · the architecture</title>
<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&family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=JetBrains+Mono:wght@400;500;600&display=swap" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/gsap@3.12.5/dist/gsap.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/gsap@3.12.5/dist/ScrollTrigger.min.js"></script>
<style>
:root {
--bg: #fafaf6;
--bg-2: #f4f2eb;
--panel: #ffffff;
--ink: #0a0a0a;
--text: #1a1a1a;
--text-2: #4a4a4a;
--muted: #8a8a8a;
--faint: #c9c9c9;
--border: #e8e5dc;
--border-2: #d8d4c8;
--border-3: #b9b4a4;
--dot: rgba(0,0,0,0.045);
--green: #047857;
--green-soft: #ecfdf5;
--green-tint: #d1fae5;
--green-line: #6ee7b7;
--amber: #a16207;
--amber-soft: #fefce8;
--amber-line: #fcd34d;
--red: #b91c1c;
--red-soft: #fef2f2;
--red-line: #fca5a5;
--blue: #1d4ed8;
--blue-bright:#2563eb;
--blue-soft: #eff6ff;
--blue-line: #93c5fd;
--gold: #92400e;
--gold-bright:#d97706;
--gold-soft: #fffbeb;
--gold-tint: #fef3c7;
--gold-line: #f59e0b;
--shadow-sm: 0 1px 0 rgba(0,0,0,0.02), 0 1px 2px rgba(0,0,0,0.04);
--shadow-md: 0 1px 0 rgba(0,0,0,0.02), 0 8px 24px rgba(0,0,0,0.06);
--shadow-lg: 0 1px 0 rgba(0,0,0,0.02), 0 20px 60px rgba(0,0,0,0.08);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
margin: 0;
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
background: var(--bg);
color: var(--text);
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
letter-spacing: -0.011em;
position: relative;
overflow-x: hidden;
min-height: 100vh;
}
body::before {
content: "";
position: fixed; inset: 0;
background-image: radial-gradient(var(--dot) 1px, transparent 1px);
background-size: 22px 22px;
-webkit-mask-image: radial-gradient(1400px 800px at 50% 0%, #000 30%, transparent 80%);
mask-image: radial-gradient(1400px 800px at 50% 0%, #000 30%, transparent 80%);
pointer-events: none;
z-index: 0;
}
.meshbg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.blob { position: absolute; width: 700px; height: 700px; border-radius: 50%; filter: blur(120px); opacity: 0.22; animation: drift 20s ease-in-out infinite; }
.blob.b1 { background: var(--gold-line); top: -200px; left: -200px; }
.blob.b2 { background: var(--blue-line); bottom: 0; right: -200px; animation-delay: -7s; }
.blob.b3 { background: var(--green-line); top: 40%; left: 40%; animation-delay: -14s; opacity: 0.15; }
@keyframes drift { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(80px, -60px) scale(1.15); } }
.wrap {
position: relative; z-index: 1;
max-width: 1200px;
margin: 0 auto;
padding: 32px 24px 80px;
}
::selection { background: var(--gold-tint); color: var(--ink); }
/* Topbar */
.topbar {
position: sticky; top: 16px; z-index: 30;
display: flex; align-items: center; justify-content: space-between;
margin-bottom: 40px;
padding: 10px 14px;
background: rgba(255,255,255,0.78);
backdrop-filter: blur(16px) saturate(180%);
-webkit-backdrop-filter: blur(16px) saturate(180%);
border: 1px solid var(--border);
border-radius: 14px;
box-shadow: var(--shadow-sm);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.mark { width: 36px; height: 36px; border-radius: 9px; background: var(--ink); display: grid; place-items: center; box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 6px 14px rgba(0,0,0,0.12); position: relative; overflow: hidden; }
.mark::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,0.18), transparent 40%); }
.mark svg { width: 18px; height: 18px; color: #fff; position: relative; z-index: 1; }
.brand-text .t { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.brand-text .s { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); margin-top: 1px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; color: var(--text-2); text-decoration: none; padding: 7px 12px; border-radius: 9px; border: 1px solid transparent; transition: background .2s ease, color .2s ease; }
.nav a:hover { background: var(--bg-2); color: var(--ink); }
.nav a.active { background: var(--ink); color: #fff; }
@media (max-width: 640px) { .nav a { padding: 6px 9px; font-size: 10.5px; } .brand-text .s { display: none; } }
/* Hero */
.hero { margin-bottom: 32px; }
.eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.18em; margin-bottom: 16px; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: linear-gradient(90deg, transparent, var(--text-2)); }
h1 { margin: 0; font-family: 'Fraunces', 'Inter', serif; font-size: clamp(38px, 6vw, 64px); font-weight: 500; letter-spacing: -0.034em; line-height: 1.0; color: var(--ink); }
h1 .gold { color: var(--gold-bright); font-style: italic; font-weight: 500; }
h1 .blue { color: var(--blue); font-style: italic; font-weight: 500; }
h1 .light { color: #a7a194; font-weight: 500; }
.reveal { opacity: 0; transform: translateY(20px); }
.reveal.in { opacity: 1; transform: translateY(0); transition: opacity .8s ease, transform .8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.dek { margin: 22px 0 0; color: var(--text-2); font-size: 15px; max-width: 820px; line-height: 1.65; }
.dek strong { color: var(--ink); font-weight: 600; }
.dek .pill-gold { color: var(--gold); background: var(--gold-tint); padding: 1px 8px; border-radius: 5px; font-weight: 600; border: 1px solid var(--gold-line); }
.dek .pill-blue { color: var(--blue); background: var(--blue-soft); padding: 1px 8px; border-radius: 5px; font-weight: 600; border: 1px solid var(--blue-line); }
.dek code { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; background: var(--bg-2); padding: 1px 6px; border-radius: 4px; border: 1px solid var(--border); color: var(--ink); }
/* Real-product banner */
.prodbanner { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding: 14px 18px; border-radius: 14px; text-decoration: none; color: inherit; background: linear-gradient(135deg, #fff4ef, #ffffff); border: 1px solid #ffc9b3; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.prodbanner:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.prodbanner .pb-badge { font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; background: #e8501f; padding: 5px 9px; border-radius: 6px; white-space: nowrap; }
.prodbanner .pb-text { font-size: 13.5px; color: var(--text); line-height: 1.5; }
.prodbanner .pb-text strong { color: var(--ink); font-weight: 600; }
.prodbanner .pb-go { margin-left: auto; font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 700; color: #e8501f; white-space: nowrap; }
@media (max-width: 640px) { .prodbanner { flex-wrap: wrap; } .prodbanner .pb-go { margin-left: 0; } }
/* Top two buttons */
.twobtns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; perspective: 1200px; }
.twobtn { position: relative; border-radius: 18px; padding: 24px 26px; overflow: hidden; transform-style: preserve-3d; transition: transform .25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow .25s ease; cursor: default; will-change: transform; }
.twobtn.gold { background: radial-gradient(at 0% 0%, rgba(245,158,11,0.22), transparent 50%), linear-gradient(135deg, var(--gold-soft) 0%, var(--gold-tint) 100%); border: 1px solid var(--gold-line); box-shadow: var(--shadow-sm); }
.twobtn.blue { background: radial-gradient(at 100% 0%, rgba(29,78,216,0.18), transparent 50%), linear-gradient(135deg, var(--blue-soft) 0%, #dbeafe 100%); border: 1px solid var(--blue-line); box-shadow: var(--shadow-sm); }
.twobtn:hover { box-shadow: var(--shadow-lg); }
.twobtn::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.twobtn.gold::before { background: linear-gradient(90deg, var(--gold-line), var(--gold-bright)); }
.twobtn.blue::before { background: linear-gradient(90deg, var(--blue), var(--blue-bright)); }
.twobtn-content { transform: translateZ(40px); }
.twobtn-glare { position: absolute; inset: 0; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.55) 0%, transparent 30%); opacity: 0; transition: opacity .25s ease; pointer-events: none; }
.twobtn:hover .twobtn-glare { opacity: 0.9; }
.twobtn-k { display: inline-flex; align-items: center; gap: 8px; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; margin-bottom: 6px; padding: 4px 9px; border-radius: 5px; border: 1px solid currentColor; }
.twobtn.gold .twobtn-k { color: var(--gold); background: rgba(255,255,255,0.5); }
.twobtn.blue .twobtn-k { color: var(--blue); background: rgba(255,255,255,0.5); }
.twobtn-k .sw { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.twobtn h3 { margin: 8px 0 8px; font-family: 'Fraunces', serif; font-size: 22px; font-weight: 500; letter-spacing: -0.024em; line-height: 1.18; color: var(--ink); }
.twobtn p { margin: 0; font-size: 13.5px; color: var(--text-2); line-height: 1.6; }
.twobtn p strong { color: var(--ink); font-weight: 600; }
.twobtn code { font-family: 'JetBrains Mono', monospace; font-size: 12px; background: rgba(255,255,255,0.6); padding: 1px 5px; border-radius: 4px; border: 1px solid rgba(0,0,0,0.06); }
@media (max-width: 720px) { .twobtns { grid-template-columns: 1fr; } }
/* The sync diagram (compact, sits between hero and main flow) */
.sync-strip { margin-top: 18px; background: rgba(255,255,255,0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--border); border-radius: 16px; padding: 18px 22px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; box-shadow: var(--shadow-sm); }
.sync-side { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; line-height: 1.5; }
.sync-side .tag { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.16em; font-weight: 700; margin-bottom: 4px; }
.sync-side.gold .tag { color: var(--gold); }
.sync-side.blue .tag { color: var(--blue); }
.sync-side .url { color: var(--ink); font-weight: 600; }
.sync-side .note { font-family: 'Inter', sans-serif; color: var(--text-2); font-size: 12px; margin-top: 4px; }
.sync-mid { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 140px; }
.sync-mid .arrows { font-family: 'JetBrains Mono', monospace; font-size: 15px; color: var(--ink); }
.sync-mid .label { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.16em; font-weight: 700; }
@media (max-width: 720px) { .sync-strip { grid-template-columns: 1fr; text-align: left; } .sync-mid { flex-direction: row; } }
/* Flowchart stage */
.flow-stage { background: rgba(255,255,255,0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--border); border-radius: 22px; padding: 22px 22px 24px; box-shadow: var(--shadow-md); margin-bottom: 28px; position: relative; overflow: hidden; margin-top: 28px; }
.flow-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.flow-title { display: flex; align-items: center; gap: 10px; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; }
.flow-title::before { content: ""; width: 4px; height: 12px; background: var(--ink); border-radius: 1px; }
.flow-legend { display: flex; align-items: center; gap: 14px; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--text-2); flex-wrap: wrap; }
.leg { display: inline-flex; align-items: center; gap: 6px; }
.leg-swatch { display: inline-block; width: 18px; height: 3px; border-radius: 2px; }
.leg-swatch.shared { background: var(--ink); }
.leg-swatch.gold { background: var(--gold-line); }
.leg-swatch.blue { background: var(--blue); }
.leg-swatch.drop { background: repeating-linear-gradient(90deg, var(--red) 0 4px, transparent 4px 7px); height: 2px; }
.svg-frame { width: 100%; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; border-radius: 12px; }
.svg-frame::-webkit-scrollbar { height: 8px; }
.svg-frame::-webkit-scrollbar-track { background: var(--bg-2); border-radius: 4px; }
.svg-frame::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 4px; }
.flowchart-svg { display: block; width: 100%; min-width: 900px; height: auto; max-width: 100%; }
/* SVG styles */
.track-shared { stroke: var(--ink); stroke-width: 2.5; fill: none; }
.track-drop { stroke: var(--red); stroke-width: 1.5; fill: none; stroke-dasharray: 4 3; }
.track-branch { stroke: var(--text-2); stroke-width: 1.8; fill: none; opacity: 0.7; }
.draw-on-load { /* visible by default; GSAP overrides for draw-in animation */ }
.js-draw .draw-on-load { stroke-dasharray: 3000; stroke-dashoffset: 3000; }
/* Continuous flow pulses */
.pulse-shared { fill: none; stroke-width: 5; stroke-linecap: round; opacity: 0.95; pointer-events: none; stroke: var(--ink); stroke-dasharray: 14 3000; filter: drop-shadow(0 0 4px rgba(0,0,0,0.25)); animation: pulse-flow 6s linear infinite; }
.pulse-shared.delay-1 { animation-delay: -2s; }
.pulse-shared.delay-2 { animation-delay: -4s; }
@keyframes pulse-flow { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -3014; } }
/* Stations */
.station-card { fill: #fff; stroke: var(--border-2); stroke-width: 1; }
.station-card.decision { fill: var(--gold-soft); stroke: var(--gold-line); stroke-width: 1.5; }
.station-card.gold-path { fill: var(--gold-soft); stroke: var(--gold-line); }
.station-card.blue-path { fill: var(--blue-soft); stroke: var(--blue-line); }
.station-card.terminus { fill: var(--ink); stroke: var(--ink); filter: drop-shadow(0 4px 12px rgba(0,0,0,0.25)); }
.station-card.drop-card { fill: var(--red-soft); stroke: var(--red-line); }
.station-card.surface-gold { fill: var(--gold-tint); stroke: var(--gold-line); stroke-width: 1.5; }
.station-card.surface-blue { fill: #dbeafe; stroke: var(--blue-line); stroke-width: 1.5; }
.dot-shared { fill: #fff; stroke: var(--ink); stroke-width: 2.5; }
.dot-gold { fill: #fff; stroke: var(--gold-line); stroke-width: 3; }
.dot-blue { fill: #fff; stroke: var(--blue); stroke-width: 3; }
.dot-decision { fill: var(--gold-line); stroke: var(--gold); stroke-width: 2.5; }
.dot-terminus { fill: var(--ink); stroke: #fff; stroke-width: 3; }
.flowchart-svg text { font-family: 'Inter', sans-serif; }
.lbl-num { font-family: 'JetBrains Mono', monospace; font-size: 10px; fill: var(--muted); letter-spacing: 0.14em; font-weight: 600; }
.lbl-name { font-size: 13.5px; font-weight: 600; fill: var(--ink); letter-spacing: -0.015em; }
.lbl-sub { font-size: 11.5px; fill: var(--text-2); }
.lbl-decision { font-family: 'Fraunces', serif; font-size: 17px; font-weight: 500; fill: var(--ink); letter-spacing: -0.018em; }
.lbl-decision-sub { font-family: 'JetBrains Mono', monospace; font-size: 10px; fill: var(--gold); text-transform: uppercase; letter-spacing: 0.18em; font-weight: 700; }
.lbl-drop { font-size: 11px; fill: var(--red); font-weight: 600; }
.lbl-drop-id { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; fill: var(--red); font-weight: 700; letter-spacing: 0.12em; }
.lbl-terminus { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 600; fill: #fff; letter-spacing: -0.018em; }
.lbl-terminus-sub { font-family: 'JetBrains Mono', monospace; font-size: 10px; fill: rgba(255,255,255,0.85); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; }
.lbl-side { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; fill: var(--muted); text-transform: uppercase; letter-spacing: 0.18em; font-weight: 700; }
.lbl-branch { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; fill: var(--muted); letter-spacing: 0.12em; font-weight: 600; }
.lbl-surface-gold { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; font-weight: 700; fill: var(--gold); letter-spacing: 0.04em; }
.lbl-surface-blue { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; font-weight: 700; fill: var(--blue); letter-spacing: 0.04em; }
/* Station group */
.station {
cursor: pointer;
transform-box: fill-box;
transform-origin: center;
transition: transform .28s cubic-bezier(0.2, 0.8, 0.2, 1);
will-change: transform;
}
.station-card {
transition:
filter .28s cubic-bezier(0.2, 0.8, 0.2, 1),
stroke .28s ease,
stroke-width .28s ease;
}
.station:hover { transform: translateY(-3px); }
.station:hover .station-card {
filter: drop-shadow(0 6px 16px rgba(0,0,0,0.12));
stroke: var(--border-3);
}
.drop-group { cursor: pointer; transition: opacity .25s ease, transform .25s ease; transform-origin: center; transform-box: fill-box; }
.drop-group.dim { opacity: 0.25; }
.drop-group.hi { transform: scale(1.06); }
.drop-group.hi .station-card.drop-card { filter: drop-shadow(0 8px 22px rgba(185,28,28,0.28)); stroke: var(--red); stroke-width: 1.5; }
/* Crux */
.crux { margin-top: 18px; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; background: linear-gradient(135deg, var(--gold-soft), var(--gold-tint)); border: 1px solid var(--gold-line); border-radius: 14px; padding: 16px 20px; position: relative; overflow: hidden; }
.crux::before { content: "★"; position: absolute; font-size: 200px; color: rgba(245,158,11,0.06); top: -50px; right: -20px; line-height: 1; }
.crux-tag { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--gold); text-transform: uppercase; letter-spacing: 0.16em; font-weight: 700; background: rgba(255,255,255,0.7); padding: 5px 10px; border-radius: 6px; border: 1px solid var(--gold-line); }
.crux-text { font-size: 14px; line-height: 1.6; color: var(--text); }
.crux-text strong { color: var(--ink); font-weight: 600; }
/* Architecture decisions */
.decisions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.decision-card { background: rgba(255,255,255,0.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.decision-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.decision-card .k { font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); margin-bottom: 6px; }
.decision-card h4 { margin: 0 0 6px; font-family: 'Fraunces', serif; font-size: 16px; font-weight: 600; letter-spacing: -0.018em; color: var(--ink); line-height: 1.25; }
.decision-card p { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--text-2); }
.decision-card p code { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; background: var(--bg-2); padding: 1px 5px; border-radius: 4px; border: 1px solid var(--border); color: var(--ink); }
.decision-card.flag { background: linear-gradient(135deg, var(--green-soft), #fff); border-color: var(--green-line); }
.decision-card.flag .k { color: var(--green); }
.decision-card.swap { background: linear-gradient(135deg, var(--amber-soft), #fff); border-color: var(--amber-line); }
.decision-card.swap .k { color: var(--amber); }
@media (max-width: 720px) { .decisions { grid-template-columns: 1fr; } }
/* Four ways in — onboarding doors */
.doors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.door {
position: relative; overflow: hidden;
background: rgba(255,255,255,0.9);
backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
border: 1px solid var(--border); border-radius: 16px;
padding: 20px 22px 18px;
box-shadow: var(--shadow-sm);
transition: transform .25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow .25s ease, border-color .2s ease;
}
.door:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.door::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.door.create { border-color: var(--gold-line); background-image: linear-gradient(180deg, var(--gold-soft) 0%, rgba(255,255,255,0.92) 90px); }
.door.create::after { background: linear-gradient(90deg, var(--gold-bright), var(--gold-line)); }
.door.create:hover { border-color: var(--gold-bright); }
.door.import { border-color: var(--blue-line); background-image: linear-gradient(180deg, var(--blue-soft) 0%, rgba(255,255,255,0.92) 90px); }
.door.import::after { background: linear-gradient(90deg, var(--blue), var(--blue-bright)); }
.door.import:hover { border-color: var(--blue-bright); }
.door-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; flex-wrap: wrap; }
.door-id { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700; color: #fff; padding: 4px 10px; border-radius: 6px; letter-spacing: 0.1em; }
.door.create .door-id { background: var(--gold-bright); }
.door.import .door-id { background: var(--blue); }
.door-kind { font-family: 'JetBrains Mono', monospace; font-size: 10px; text-transform: uppercase; letter-spacing: 0.16em; font-weight: 700; margin-left: auto; }
.door.create .door-kind { color: var(--gold); }
.door.import .door-kind { color: var(--blue); }
.door h4 { margin: 8px 0 4px; font-family: 'Fraunces', serif; font-size: 19px; font-weight: 600; color: var(--ink); letter-spacing: -0.018em; line-height: 1.22; }
.door .who { margin: 0 0 14px; font-size: 12.5px; color: var(--text-2); line-height: 1.55; }
.door .who strong { color: var(--ink); font-weight: 600; }
/* mini step-flow */
.steps { display: flex; align-items: stretch; flex-wrap: wrap; gap: 6px 0; }
.step { display: inline-flex; align-items: center; }
.step .chip {
font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600;
color: var(--text); background: rgba(255,255,255,0.75);
border: 1px solid var(--border-2); border-radius: 7px; padding: 5px 9px;
line-height: 1.2; white-space: nowrap;
}
.step.gold .chip { color: var(--gold); border-color: var(--gold-line); background: var(--gold-soft); }
.step.blue .chip { color: var(--blue); border-color: var(--blue-line); background: var(--blue-soft); }
.step .arrow { color: var(--faint); font-family: 'JetBrains Mono', monospace; font-size: 12px; padding: 0 5px; }
.door-merge {
margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--border-2);
display: flex; align-items: center; gap: 8px;
font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-2);
}
.door-merge .tag { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; color: var(--muted); }
.door-merge .at { color: var(--ink); font-weight: 700; }
.door .git-note { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; font-weight: 700; padding: 4px 9px; border-radius: 6px; letter-spacing: 0.04em; }
.door .git-note.invisible { color: var(--green); background: var(--green-soft); border: 1px solid var(--green-line); }
.door .git-note .sw { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
@media (max-width: 720px) { .doors { grid-template-columns: 1fr; } }
/* Section header */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin: 44px 0 22px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.section-head .kicker { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.18em; margin-bottom: 8px; font-weight: 600; }
.section-head h2 { margin: 0; font-family: 'Fraunces', serif; font-size: clamp(28px, 4vw, 36px); font-weight: 500; letter-spacing: -0.027em; line-height: 1.1; color: var(--ink); }
.section-head h2 em { font-style: italic; color: var(--red); font-weight: 500; }
.section-head p { margin: 10px 0 0; font-size: 14px; color: var(--text-2); line-height: 1.6; max-width: 660px; }
.section-head p strong { color: var(--ink); font-weight: 600; }
.section-head .right { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); text-align: right; line-height: 1.5; }
/* Drop-off cards */
.drops { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.drop { background: rgba(255,255,255,0.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--red-line); border-radius: 14px; padding: 18px 20px 20px; position: relative; box-shadow: var(--shadow-sm); background-image: linear-gradient(180deg, var(--red-soft) 0%, rgba(255,255,255,0.92) 80px); cursor: pointer; transition: transform .25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow .25s ease, border-color .2s ease; overflow: hidden; }
.drop::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--red) 0%, var(--red-line) 100%); }
.drop:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--red); }
.drop-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; gap: 12px; }
.drop-id { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700; color: #fff; background: var(--red); padding: 4px 10px; border-radius: 6px; letter-spacing: 0.1em; }
.drop-stage { font-family: 'JetBrains Mono', monospace; font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); font-weight: 600; }
.drop h4 { margin: 0 0 8px; font-family: 'Fraunces', serif; font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: -0.018em; line-height: 1.25; }
.drop p { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--text); }
.drop p strong { color: var(--ink); font-weight: 600; }
.drop p code { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; background: var(--bg-2); padding: 1px 5px; border-radius: 4px; border: 1px solid var(--border); color: var(--ink); }
.drop .mit { margin-top: 12px; padding: 10px 12px; background: var(--green-soft); border-radius: 8px; border-left: 3px solid var(--green); font-size: 12px; color: var(--text); line-height: 1.55; }
.drop .mit::before { content: "→ Mitigation"; display: block; font-family: 'JetBrains Mono', monospace; font-size: 9.5px; font-weight: 700; color: var(--green); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 4px; }
@media (max-width: 720px) { .drops { grid-template-columns: 1fr; } }
.footer { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); }
.footer .attr { color: var(--text-2); }
.footer a { color: var(--text-2); text-decoration: none; border-bottom: 1px dashed var(--border-2); }
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
.blob { animation: none; }
}
@media (max-width: 720px) {
.wrap { padding: 16px 14px 60px; }
.topbar { padding: 8px 10px; }
.flow-stage { padding: 16px; }
.twobtn { padding: 20px; }
.twobtn h3 { font-size: 19px; }
.crux { grid-template-columns: 1fr; }
.section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
.section-head .right { text-align: left; }
}
/* Slack share popover — appears on text selection */
.slack-share { position: fixed; z-index: 200; display: none; align-items: center; gap: 8px; padding: 9px 13px; font-family: 'Inter', sans-serif; font-size: 12.5px; font-weight: 600; letter-spacing: -0.005em; color: #fff; background: #4a154b; border: 1px solid rgba(255,255,255,0.14); border-radius: 11px; box-shadow: 0 12px 30px rgba(0,0,0,0.28); cursor: pointer; transform: translate(-50%, calc(-100% - 9px)); -webkit-font-smoothing: antialiased; }
.slack-share.on { display: inline-flex; }
.slack-share:hover { background: #611f69; }
.slack-share::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; background: #4a154b; border-right: 1px solid rgba(255,255,255,0.14); border-bottom: 1px solid rgba(255,255,255,0.14); transform: translateX(-50%) rotate(45deg); }
.slack-share:hover::after { background: #611f69; }
.slack-share svg { width: 16px; height: 16px; position: relative; z-index: 1; }
.slack-share span { position: relative; z-index: 1; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) { .slack-share { transition: opacity .14s ease; } }
</style>
</head>
<body>
<div class="meshbg" aria-hidden="true">
<div class="blob b1"></div>
<div class="blob b2"></div>
<div class="blob b3"></div>
</div>
<div class="wrap">
<div class="topbar">
<div class="brand">
<div class="mark">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M12 2 L19 9 L12 22 L5 9 Z"/>
<line x1="12" y1="2" x2="12" y2="22"/>
</svg>
</div>
<div class="brand-text">
<div class="t">Kite AI</div>
<div class="s">GitHub integration · the architecture</div>
</div>
</div>
<nav class="nav">
<a href="index.html" class="active">Architecture</a>
<a href="design.html">Architecture v2</a>
<a href="storage.html">Storage & sync</a>
<a href="flow.html">The product flow</a>
<a href="slack.html">Slack demo</a>
<a href="report.html">Consistency report</a>
</nav>
</div>
<div class="hero">
<div class="eyebrow reveal">The architecture · one app · one linked repo · Next.js · explicit two-way sync</div>
<h1 class="reveal">Build in <span class="gold">Kite.</span> Back it with <span class="blue">GitHub.</span><br><span class="light">One app, one repo, kept in sync.</span></h1>
<p class="dek reveal">This replaces the earlier "two surfaces, webhook-synced" draft with what actually shipped. Kite is an AI website builder: every website is a <span class="pill-gold">Kite app</span> that can be <strong>linked to a single GitHub repository</strong> on one branch (<code>main</code> today). The bridge is the <span class="pill-blue">Kite GitHub App</span> — installed on the customer's org with <strong>scoped, revocable</strong> permissions. Users start three ways — from scratch, import an existing repo, or create a new one — or just type <code>import from <repo></code> in chat. Kite <strong>resolves the repo by name, confirms before it replaces anything</strong>, and enforces one hard rule: <strong>imports must be Next.js projects</strong>. Editing, the live preview, secrets and publishing all live <strong>inside the Kite app</strong>; the source of truth stays in GitHub. Sync is <strong>explicit and two-way</strong> — <code>Sync to GitHub</code> pushes, <code>Pull</code> brings changes back.</p>
<a class="prodbanner reveal" href="flow.html">
<span class="pb-badge">Live product</span>
<span class="pb-text">This page is the model. Want it <strong>backed by real screenshots</strong>? The companion walks the actual import flow — three entry doors, the GitHub-App connection, the <strong>Next.js-only gate</strong>, secrets and two-way sync — captured screen by screen from <strong>staging.kite.ai</strong>.</span>
<span class="pb-go">The product flow →</span>
</a>
<div class="twobtns">
<div class="twobtn gold reveal" data-tilt>
<div class="twobtn-glare"></div>
<div class="twobtn-content">
<div class="twobtn-k"><span class="sw"></span>Gold · The Kite app</div>
<h3>Where you build, edit & preview</h3>
<p>Each website is a Kite app with <strong>Website, Code, Secrets, Content, Analytics & Growth</strong> tabs. You edit by chat or directly, see an <strong>in-app live preview</strong>, and hit <code>Publish</code>. The app <em>is</em> the workspace — no separate preview domain to reason about.</p>
</div>
</div>
<div class="twobtn blue reveal" data-tilt>
<div class="twobtn-glare"></div>
<div class="twobtn-content">
<div class="twobtn-k"><span class="sw"></span>Blue · The linked GitHub repo</div>
<h3>The source of truth</h3>
<p>The <strong>Kite GitHub App</strong> links <strong>one repository on one branch</strong>. Code lives in the customer's own GitHub — e.g. <code>appsmithorg/test_1</code> on <code>main</code>. Access is scoped to the repos they pick and <strong>revocable any time</strong> from Integrations or Settings → Repository.</p>
</div>
</div>
</div>
<div class="sync-strip reveal">
<div class="sync-side gold">
<div class="tag">The Kite app</div>
<div class="url">this website</div>
<div class="note">Edit · live preview · <code style="font-family:'JetBrains Mono',monospace;font-size:11px;">Publish</code>, all in-app.</div>
</div>
<div class="sync-mid">
<div class="arrows">⇅</div>
<div class="label">Explicit two-way sync</div>
<div class="label" style="color: var(--text-2);"><code style="font-family:'JetBrains Mono',monospace;font-size:10px;background:var(--bg-2);padding:0 4px;border-radius:3px;">Sync to GitHub</code> ↑ · <code style="font-family:'JetBrains Mono',monospace;font-size:10px;background:var(--bg-2);padding:0 4px;border-radius:3px;">Pull</code> ↓ · on main</div>
</div>
<div class="sync-side blue">
<div class="tag">GitHub repository</div>
<div class="url">appsmithorg/test_1</div>
<div class="note">Branch: <code style="font-family:'JetBrains Mono',monospace;font-size:11px;">main</code> · customer-owned.</div>
</div>
</div>
</div>
<div class="flow-stage reveal">
<div class="flow-head">
<div class="flow-title">The flow · connect → import → edit → sync</div>
<div class="flow-legend">
<span class="leg"><span class="leg-swatch shared"></span>Path</span>
<span class="leg"><span class="leg-swatch gold"></span>Kite app</span>
<span class="leg"><span class="leg-swatch blue"></span>GitHub repo</span>
<span class="leg"><span class="leg-swatch drop"></span>Drop-off</span>
</div>
</div>
<div class="svg-frame">
<svg class="flowchart-svg" id="flow" viewBox="0 0 1180 1520" xmlns="http://www.w3.org/2000/svg">
<defs>
<marker id="ah-red" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="6" markerHeight="6" orient="auto-start-reverse">
<path d="M 0 0 L 10 5 L 0 10 z" fill="#b91c1c"/>
</marker>
<marker id="ah-gold" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="6" markerHeight="6" orient="auto-start-reverse">
<path d="M 0 0 L 10 5 L 0 10 z" fill="#f59e0b"/>
</marker>
<marker id="ah-blue" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="6" markerHeight="6" orient="auto-start-reverse">
<path d="M 0 0 L 10 5 L 0 10 z" fill="#1d4ed8"/>
</marker>
</defs>
<!-- ====== MAIN TRACK (single rail at x=130) ====== -->
<path id="path-shared" class="track-shared draw-on-load" d="M 130,75 L 130,1360"/>
<path class="pulse-shared" d="M 130,75 L 130,1360"/>
<path class="pulse-shared delay-1" d="M 130,75 L 130,1360"/>
<path class="pulse-shared delay-2" d="M 130,75 L 130,1360"/>
<!-- Side labels -->
<text class="lbl-side" x="40" y="300" transform="rotate(-90, 40, 300)">CONNECT · 01 — 04</text>
<text class="lbl-side" x="40" y="640" transform="rotate(-90, 40, 640)" style="fill: var(--gold);">GATE · NEXT.JS ONLY</text>
<text class="lbl-side" x="40" y="1010" transform="rotate(-90, 40, 1010)" style="fill: var(--gold);">IMPORT + EDIT</text>
<text class="lbl-side" x="40" y="1230" transform="rotate(-90, 40, 1230)" style="fill: var(--blue);">SYNC · GITHUB</text>
<!-- 01 ENTRY -->
<g class="station">
<line x1="137" y1="75" x2="170" y2="75" stroke="#bbb" stroke-width="1.5"/>
<rect class="station-card" x="170" y="45" width="600" height="60" rx="14"/>
<text class="lbl-num" x="188" y="67">01 · ENTRY</text>
<text class="lbl-name" x="188" y="87">Start something new: scratch · import · create — or "import from <repo>" in chat</text>
</g>
<circle class="dot-shared" cx="130" cy="75" r="7"/>
<!-- 02 CONNECT -->
<g class="station">
<line x1="137" y1="215" x2="170" y2="215" stroke="#bbb" stroke-width="1.5"/>
<rect class="station-card blue-path" x="170" y="185" width="600" height="60" rx="14"/>
<text class="lbl-num" x="188" y="207" style="fill: var(--blue);">02 · CONNECT</text>
<text class="lbl-name" x="188" y="227">Install the Kite GitHub App · scoped repos & permissions</text>
</g>
<circle class="dot-blue" cx="130" cy="215" r="7"/>
<g class="drop-group" data-drop="D1">
<path class="track-drop" d="M 770,215 L 805,215" marker-end="url(#ah-red)"/>
<rect class="station-card drop-card" x="805" y="189" width="200" height="52" rx="10"/>
<text class="lbl-drop-id" x="822" y="210">D1 · 20%</text>
<text class="lbl-drop" x="822" y="229">Platform lead denies install</text>
</g>
<!-- 03 RESOLVE -->
<g class="station">
<line x1="137" y1="355" x2="170" y2="355" stroke="#bbb" stroke-width="1.5"/>
<rect class="station-card" x="170" y="325" width="600" height="60" rx="14"/>
<text class="lbl-num" x="188" y="347">03 · RESOLVE</text>
<text class="lbl-name" x="188" y="367">Name the repo · Kite finds the match <tspan style="font-family:'JetBrains Mono',monospace;font-size:12.5px;fill:var(--ink);">appsmithorg/test_1</tspan></text>
</g>
<circle class="dot-shared" cx="130" cy="355" r="7"/>
<g class="drop-group" data-drop="D2">
<path class="track-drop" d="M 770,355 L 805,355" marker-end="url(#ah-red)"/>
<rect class="station-card drop-card" x="805" y="329" width="200" height="52" rx="10"/>
<text class="lbl-drop-id" x="822" y="350">D2 · —</text>
<text class="lbl-drop" x="822" y="369">No repo match / wrong repo</text>
</g>
<!-- 04 CONFIRM -->
<g class="station">
<line x1="137" y1="495" x2="170" y2="495" stroke="#bbb" stroke-width="1.5"/>
<rect class="station-card" x="170" y="465" width="600" height="60" rx="14"/>
<text class="lbl-num" x="188" y="487">04 · CONFIRM</text>
<text class="lbl-name" x="188" y="507">Importing replaces the current site — confirm before anything irreversible</text>
</g>
<circle class="dot-shared" cx="130" cy="495" r="7"/>
<!-- 05 GATE (decision) -->
<g class="station">
<line x1="137" y1="640" x2="170" y2="640" stroke="#bbb" stroke-width="1.5"/>
<rect class="station-card decision" x="170" y="602" width="540" height="76" rx="14"/>
<text class="lbl-decision-sub" x="188" y="625">◇ THE GATE</text>
<text class="lbl-decision" x="188" y="648">Is it a Next.js project?</text>
<text class="lbl-sub" x="188" y="667">YES ↓ import · NO → refused, current site kept</text>
</g>
<circle class="dot-decision" cx="130" cy="640" r="9"/>
<text class="lbl-branch" x="715" y="635">— NO →</text>
<g class="drop-group" data-drop="D3">
<path class="track-drop" d="M 712,640 L 805,640" marker-end="url(#ah-red)"/>
<rect class="station-card drop-card" x="805" y="614" width="200" height="52" rx="10"/>
<text class="lbl-drop-id" x="822" y="635">D3 · THE GATE</text>
<text class="lbl-drop" x="822" y="654">Not a Next.js project</text>
</g>
<!-- 06 IMPORT -->
<g class="station">
<line x1="137" y1="800" x2="170" y2="800" stroke="#bbb" stroke-width="1.5"/>
<rect class="station-card blue-path" x="170" y="770" width="600" height="60" rx="14"/>
<text class="lbl-num" x="188" y="792" style="fill: var(--blue);">06 · IMPORT</text>
<text class="lbl-name" x="188" y="812">Pull repo from <tspan style="font-family:'JetBrains Mono',monospace;font-size:12.5px;fill:var(--ink);">main</tspan> into the Kite app · replace current site</text>
</g>
<circle class="dot-blue" cx="130" cy="800" r="7"/>
<!-- Surface tag · GitHub repo -->
<g>
<path class="track-branch" d="M 775,800 L 830,800" marker-end="url(#ah-blue)"/>
<rect class="station-card surface-blue" x="830" y="774" width="190" height="52" rx="10"/>
<text class="lbl-surface-blue" x="845" y="795">▼ GITHUB REPO</text>
<text class="lbl-sub" x="845" y="813" style="font-size: 10.5px;">appsmithorg/test_1 · main</text>
</g>
<!-- 07 SECRETS -->
<g class="station">
<line x1="137" y1="940" x2="170" y2="940" stroke="#bbb" stroke-width="1.5"/>
<rect class="station-card gold-path" x="170" y="910" width="600" height="60" rx="14"/>
<text class="lbl-num" x="188" y="932" style="fill: var(--gold);">07 · SECRETS</text>
<text class="lbl-name" x="188" y="952">Add required env vars in the Secret vault <tspan style="font-family:'JetBrains Mono',monospace;font-size:12.5px;fill:var(--ink);">backend/.env · NAME</tspan></text>
</g>
<circle class="dot-gold" cx="130" cy="940" r="7"/>
<g class="drop-group" data-drop="D4">
<path class="track-drop" d="M 770,940 L 805,940" marker-end="url(#ah-red)"/>
<rect class="station-card drop-card" x="805" y="914" width="200" height="52" rx="10"/>
<text class="lbl-drop-id" x="822" y="935">D4 · 8%</text>
<text class="lbl-drop" x="822" y="954">Creds withheld by sec</text>
</g>
<!-- 08 EDIT + PREVIEW -->
<g class="station">
<line x1="137" y1="1080" x2="170" y2="1080" stroke="#bbb" stroke-width="1.5"/>
<rect class="station-card gold-path" x="170" y="1050" width="600" height="60" rx="14"/>
<text class="lbl-num" x="188" y="1072" style="fill: var(--gold);">08 · EDIT + LIVE PREVIEW</text>
<text class="lbl-name" x="188" y="1092">Edit in the Kite app · in-app live preview · <tspan style="font-family:'JetBrains Mono',monospace;font-size:12.5px;fill:var(--ink);">Publish</tspan></text>
</g>
<circle class="dot-gold" cx="130" cy="1080" r="7"/>
<!-- Surface tag · Kite app -->
<g>
<path class="track-branch" d="M 775,1080 L 830,1080" marker-end="url(#ah-gold)"/>
<rect class="station-card surface-gold" x="830" y="1054" width="190" height="52" rx="10"/>
<text class="lbl-surface-gold" x="845" y="1075">▲ KITE APP</text>
<text class="lbl-sub" x="845" y="1093" style="font-size: 10.5px;">edit · preview · publish</text>
</g>
<!-- 09 SYNC -->
<g class="station">
<line x1="137" y1="1220" x2="170" y2="1220" stroke="#bbb" stroke-width="1.5"/>
<rect class="station-card blue-path" x="170" y="1190" width="600" height="60" rx="14"/>
<text class="lbl-num" x="188" y="1212" style="fill: var(--blue);">09 · SYNC (explicit)</text>
<text class="lbl-name" x="188" y="1232"><tspan style="font-family:'JetBrains Mono',monospace;font-size:12.5px;fill:var(--ink);">Sync to GitHub</tspan> ↑ pushes · <tspan style="font-family:'JetBrains Mono',monospace;font-size:12.5px;fill:var(--ink);">Pull</tspan> ↓ brings changes in · on main</text>
</g>
<circle class="dot-blue" cx="130" cy="1220" r="7"/>
<g class="drop-group" data-drop="D5">
<path class="track-drop" d="M 770,1220 L 805,1220" marker-end="url(#ah-red)"/>
<rect class="station-card drop-card" x="805" y="1194" width="200" height="52" rx="10"/>
<text class="lbl-drop-id" x="822" y="1215">D5 · —</text>
<text class="lbl-drop" x="822" y="1234">Sync / pull conflict</text>
</g>
<!-- TERMINUS -->
<g class="station">
<line x1="143" y1="1360" x2="170" y2="1360" stroke="var(--ink)" stroke-width="2.5"/>
<rect class="station-card terminus" x="170" y="1328" width="460" height="64" rx="14"/>
<text class="lbl-terminus-sub" x="400" y="1351" text-anchor="middle">● TERMINUS · APP ⇄ REPO LINKED</text>
<text class="lbl-terminus" x="400" y="1375" text-anchor="middle">Live in Kite · in sync with GitHub on main</text>
</g>
<circle class="dot-terminus" cx="130" cy="1360" r="10"/>
</svg>
</div>
<div class="crux">
<span class="crux-tag">★ The crux</span>
<div class="crux-text">
There is no "move to Kite vs. just raise PRs" fork anymore, and no hidden webhook machinery. The model is simply <strong>one Kite app bound to one GitHub repo</strong>. Two things carry all the load-bearing risk: the <strong>Next.js gate</strong> at Station 05 (the one hard stop) and the <strong>explicit Sync / Pull</strong> at Station 09 (the only place app and repo can diverge). Get the gate's messaging and the push/pull conflict handling right, and everything else is downstream.
</div>
</div>
</div>
<!-- Four ways in -->
<div class="section-head">
<div>
<div class="kicker">The entry · the real "Start something new" menu</div>
<h2>Four ways <em>in.</em></h2>
<p>In the live product, one button — <code style="font-family:'JetBrains Mono',monospace;font-size:12.5px;background:var(--bg-2);padding:1px 6px;border-radius:4px;border:1px solid var(--border);">Start something new</code> — opens <strong>three doors</strong>, and a fourth path runs entirely <strong>inside the chat</strong>. One door needs no GitHub at all; the other three put real code under version control. All four merge back into the single track above. <a href="flow.html" style="color:var(--gold-bright);font-weight:600;text-decoration:none;border-bottom:1px solid var(--gold-line);">See each one in the product →</a></p>
</div>
<div class="right">1 no-Git path<br>2 GitHub-UI doors<br>1 in-chat import</div>
</div>
<div class="doors">
<article class="door create reveal">
<div class="door-head">
<span class="door-id">DOOR 1</span>
<span class="door-kind">Start from scratch</span>
</div>
<h4>"I just want a website"</h4>
<p class="who"><strong>No idea what Git or GitHub is</strong>, and doesn't want to learn. Describes the site in plain language; Kite generates it from nothing. The real menu item: <strong>Start from scratch</strong>.</p>
<div class="steps">
<span class="step"><span class="chip">Describe site</span><span class="arrow">→</span></span>
<span class="step gold"><span class="chip">Kite generates it</span><span class="arrow">→</span></span>
<span class="step gold"><span class="chip">Edit + preview</span></span>
</div>
<span class="git-note invisible"><span class="sw"></span>No GitHub connection required to begin</span>
<div class="door-merge">
<span class="tag">Joins at</span>
<span class="at">08 · Edit</span>
<span>— nothing to connect or import</span>
</div>
</article>
<article class="door create reveal">
<div class="door-head">
<span class="door-id">DOOR 2</span>
<span class="door-kind">Create new in GitHub</span>
</div>
<h4>New site, on <em>my</em> GitHub</h4>
<p class="who">No repository yet, but <strong>wants the site to live in their own GitHub</strong> from day one. Kite creates a fresh repo, links a website to it, then generates the site.</p>
<div class="steps">
<span class="step blue"><span class="chip">Connect GitHub App</span><span class="arrow">→</span></span>
<span class="step blue"><span class="chip">Name + create the repo</span><span class="arrow">→</span></span>
<span class="step gold"><span class="chip">Generate the site</span><span class="arrow">→</span></span>
<span class="step gold"><span class="chip">Edit + preview</span></span>
</div>
<div class="door-merge">
<span class="tag">Joins at</span>
<span class="at">02 · Connect</span>
<span>→ then 06 · Import</span>
</div>
</article>
<article class="door import reveal">
<div class="door-head">
<span class="door-id">DOOR 3</span>
<span class="door-kind">Import from GitHub</span>
</div>
<h4>Import my live site</h4>
<p class="who"><strong>Real codebase already on GitHub</strong>, already deployed. Picks the repo from the <strong>Import from GitHub</strong> picker and Kite imports its code — the path the main track documents end-to-end.</p>
<div class="steps">
<span class="step blue"><span class="chip">Connect GitHub App</span><span class="arrow">→</span></span>
<span class="step"><span class="chip">Resolve · Next.js gate</span><span class="arrow">→</span></span>
<span class="step gold"><span class="chip">Import into Kite</span><span class="arrow">→</span></span>
<span class="step gold"><span class="chip">Edit + preview</span></span>
</div>
<div class="door-merge">
<span class="tag">Joins at</span>
<span class="at">03 · Resolve</span>
<span>— the documented main path</span>
</div>
</article>
<article class="door import reveal">
<div class="door-head">
<span class="door-id">DOOR 4</span>
<span class="door-kind">Import via chat</span>
</div>
<h4>Just say <em>"import from…"</em></h4>
<p class="who">Already inside a Kite app and types <strong>"import from test_1"</strong> in the chat. Kite resolves the repo by name, confirms before replacing, and pulls it in — no menus, no forms.</p>
<div class="steps">
<span class="step"><span class="chip">Type "import from …"</span><span class="arrow">→</span></span>
<span class="step blue"><span class="chip">Kite finds the match</span><span class="arrow">→</span></span>
<span class="step"><span class="chip">Confirm replace</span><span class="arrow">→</span></span>
<span class="step gold"><span class="chip">Import + preview</span></span>
</div>
<div class="door-merge">
<span class="tag">Joins at</span>
<span class="at">03 · Resolve</span>
<span>→ then 05 · Next.js gate</span>
</div>
</article>
</div>
<!-- Architecture decisions -->
<div class="section-head">
<div>
<div class="kicker">The decisions</div>
<h2>Six calls that shape the integration.</h2>
<p>The load-bearing choices behind the flow above — each one now <strong>visible in the live product</strong>, not just on a whiteboard. They define what the integration is, and where its risk lives.</p>
</div>
<div class="right">1 link model<br>1 sync rule<br>+ a hard gate</div>
</div>
<div class="decisions">
<div class="decision-card reveal">
<div class="k">Architecture · the model</div>
<h4>One app ⇄ one repo + branch</h4>
<p>Each website binds to a single repository on one branch (<code>main</code> today), shown under <strong>Settings → Repository</strong>. No mirrored "kite/*" namespace, no second main — <strong>the customer's <code>main</code> is the only main</strong>. Change repository or Disconnect at any time.</p>
</div>
<div class="decision-card reveal">
<div class="k">Architecture · sync</div>
<h4>Explicit, not webhook-driven</h4>
<p>Sync is <strong>user-triggered, both ways</strong>: <code>Sync to GitHub</code> pushes the app's edits as commits; <code>Pull</code> brings GitHub changes back in. No background webhook machinery — the user decides when app and repo reconcile, which keeps the mental model simple and the surface area small.</p>
</div>
<div class="decision-card reveal swap">
<div class="k">Architecture · the gate</div>
<h4>Next.js imports only</h4>
<p>The import contract is deliberately narrow: <strong>Next.js projects only</strong>. Anything else is refused with a plain reason, and the current site is left intact. A narrow, enforced contract is what lets Kite promise a clean import every time.</p>
</div>
<div class="decision-card reveal">
<div class="k">Architecture · entry</div>
<h4>Three doors + in-chat</h4>
<p><code>Start from scratch</code>, <code>Import from GitHub</code>, and <code>Create new in GitHub</code> — plus a conversational <code>import from <repo></code> path inside any app. All four converge on the <strong>same import pipeline</strong>, so there's one code path to harden, not four.</p>
</div>
<div class="decision-card reveal flag">
<div class="k">Security · access</div>
<h4>GitHub App is the credential</h4>
<p>Access is the <strong>Kite GitHub App installation</strong> itself — scoped to the repos the customer picks, revocable from Integrations or Settings. Repo runtime secrets (e.g. <code>NAME</code>) live in the in-app <strong>Secret vault</strong> (<code>backend/.env</code>), supplied before the site runs — never hard-coded.</p>
</div>
<div class="decision-card reveal">
<div class="k">Architecture · safety</div>
<h4>Resolve, then confirm</h4>
<p>Kite <strong>auto-resolves</strong> a named repo to a concrete match (<code>appsmithorg/test_1</code>) and, because importing <strong>replaces the current site</strong>, always asks for an explicit <em>Yes</em> first. Destructive steps are never silent.</p>
</div>
</div>
<!-- Drop-offs -->
<div class="section-head">
<div>
<div class="kicker">The exits</div>
<h2>Five places where it can <em>stall</em>.</h2>
<p>Each red exit on the map maps to a card below. Percentages are <strong>pre-data estimates</strong> — replace with real values after the first 100 imports. Hover a card to highlight its exit on the chart above.</p>
</div>
<div class="right">1 connect · 1 resolve<br>1 gate · 1 secrets<br>1 sync</div>
</div>
<div class="drops">
<article class="drop reveal" data-drop="D1">
<div class="drop-head">
<span class="drop-id">D1 · 20%</span>
<span class="drop-stage">Station 02 · Connect</span>
</div>
<h4>Platform lead denies the GitHub App install</h4>
<p>The marketer asks for Kite; the VP-Eng or platform team approves the permission scope. The install requests <strong>read metadata</strong> plus <strong>read + write</strong> to code, workflows and administration — if that feels broad, they say no on instinct.</p>
<div class="mit">Let them pick <strong>Only select repositories</strong>, not all. Explain each scope in plain English at the install screen, and lead with the fact that access is revocable in one click from Integrations.</div>
</article>
<article class="drop reveal" data-drop="D2">
<div class="drop-head">
<span class="drop-id">D2 · —</span>
<span class="drop-stage">Station 03 · Resolve</span>
</div>
<h4>No repo match, or the wrong one</h4>
<p>The user names a repo Kite can't see (not granted in the App install) or that resolves ambiguously. Kite can't proceed to import what it can't find — and must not import the wrong repo over the current site.</p>
<div class="mit">When zero matches, point straight back to <strong>Configure GitHub App</strong> to widen access. When more than one matches, list candidates and make the user choose before confirming.</div>
</article>
<article class="drop reveal" data-drop="D3">
<div class="drop-head">
<span class="drop-id">D3 · THE GATE</span>
<span class="drop-stage">Station 05 · Next.js gate</span>
</div>
<h4>Not a Next.js project</h4>
<p>Imports support <strong>Next.js only</strong>. Anything else — WordPress, a static site, a non-Next.js app — is refused cleanly: <em>"it is not a Next.js project, and imports here only support Next.js repos."</em> The current site is <strong>left untouched</strong> and Kite offers to find another repo.</p>
<div class="mit">Surface the Next.js requirement at the picker and first chat message, before the user invests. For unsupported stacks, capture the framework as a waitlist signal instead of a dead end.</div>
</article>
<article class="drop reveal" data-drop="D4">
<div class="drop-head">
<span class="drop-id">D4 · 8%</span>
<span class="drop-stage">Station 07 · Secrets</span>
</div>
<h4>Credentials withheld by their security team</h4>
<p>The imported repo needs runtime env vars (Kite flags them by name, e.g. <code>NAME</code>). The platform team approved the GitHub App but draws a hard line at handing over secrets — especially production ones — so the site can't fully run.</p>
<div class="mit">Start with <strong>staging-only</strong> values in the Secret vault and gate prod secrets behind explicit migration. Longer term, read secrets from the customer's own vault at runtime rather than storing them.</div>
</article>
<article class="drop reveal" data-drop="D5">
<div class="drop-head">
<span class="drop-id">D5 · —</span>
<span class="drop-stage">Station 09 · Sync</span>
</div>
<h4>Sync / pull conflict</h4>
<p>Because sync is explicit, the app and the repo can drift between actions. A <code>Pull</code> after the team pushed to <code>main</code>, or a <code>Sync to GitHub</code> over diverged history, can conflict — the one place app and repo can genuinely disagree.</p>
<div class="mit">Detect divergence before the push, show a clear diff, and offer pull-first. Resolve conflicts with the LLM at this step and always preserve a recoverable snapshot of the app's state.</div>
</article>
</div>
<div class="footer">
<span class="attr">Kite AI · GitHub integration architecture · 15 Jun 2026</span>
<span>v0.6 · app ⇄ repo · paired with the live <a href="flow.html">product flow</a></span>
</div>
</div>
<script>
if (window.gsap && window.ScrollTrigger) { gsap.registerPlugin(ScrollTrigger); }
document.addEventListener('DOMContentLoaded', () => {
// Reveal on scroll
const reveals = document.querySelectorAll('.reveal');
const io = new IntersectionObserver((entries) => {
entries.forEach((entry, i) => {
if (entry.isIntersecting) {
setTimeout(() => entry.target.classList.add('in'), i * 60);
io.unobserve(entry.target);
}
});
}, { threshold: 0.12, rootMargin: '0px 0px -40px 0px' });
reveals.forEach(el => io.observe(el));
// 3D tilt
document.querySelectorAll('[data-tilt]').forEach(card => {
const maxTilt = 8;
card.addEventListener('mousemove', (e) => {
const rect = card.getBoundingClientRect();
const px = (e.clientX - rect.left) / rect.width;
const py = (e.clientY - rect.top) / rect.height;
const rx = (py - 0.5) * -maxTilt;
const ry = (px - 0.5) * maxTilt;
card.style.transform = `perspective(1000px) rotateX(${rx}deg) rotateY(${ry}deg) translateZ(0)`;
card.style.setProperty('--mx', (px * 100) + '%');
card.style.setProperty('--my', (py * 100) + '%');
});
card.addEventListener('mouseleave', () => { card.style.transform = ''; });
});
// Bring hovered SVG station to the front (SVG has no z-index)
document.querySelectorAll('#flow .station').forEach(station => {
station.addEventListener('mouseenter', () => {
station.parentNode.appendChild(station);
});
});
// SVG drop-group hover: lift to SVG root so it paints above neighbours
document.querySelectorAll('#flow .drop-group').forEach(dg => {
dg.addEventListener('mouseenter', () => {
dg._origParent = dg.parentNode;
dg._origNext = dg.nextSibling;
dg.ownerSVGElement.appendChild(dg);
document.querySelectorAll('.drop-group').forEach(g => { if (g !== dg) g.classList.add('dim'); });
dg.classList.add('hi');
});
dg.addEventListener('mouseleave', () => {
document.querySelectorAll('.drop-group').forEach(g => g.classList.remove('dim'));
dg.classList.remove('hi');
if (dg._origNext && dg._origNext.parentNode === dg._origParent) {
dg._origParent.insertBefore(dg, dg._origNext);
} else if (dg._origParent) {
dg._origParent.appendChild(dg);
}
});
});
// Drop card <-> SVG exit linking
const dropCards = document.querySelectorAll('.drop[data-drop]');
dropCards.forEach(card => {
const id = card.dataset.drop;
const exit = document.querySelector(`.drop-group[data-drop="${id}"]`);
if (!exit) return;
card.addEventListener('mouseenter', () => {
document.querySelectorAll('.drop-group').forEach(g => { if (g !== exit) g.classList.add('dim'); });
exit.classList.add('hi');
});
card.addEventListener('mouseleave', () => {
document.querySelectorAll('.drop-group').forEach(g => g.classList.remove('dim'));
exit.classList.remove('hi');
});
card.addEventListener('click', () => {
const stage = document.querySelector('.flow-stage');
stage.scrollIntoView({ behavior: 'smooth', block: 'start' });
exit.classList.add('hi');
setTimeout(() => exit.classList.remove('hi'), 1800);
});
});
// Path-draw entrance
if (window.gsap) {
document.documentElement.classList.add('js-draw');
const flowStage = document.querySelector('.flow-stage');
const runDraw = () => {
gsap.utils.toArray('.draw-on-load').forEach((path, i) => {
const len = path.getTotalLength ? path.getTotalLength() : 3000;
gsap.set(path, { strokeDasharray: len, strokeDashoffset: len });
gsap.to(path, {
strokeDashoffset: 0,
duration: 1.6,
delay: i * 0.15,
ease: 'power2.out',
onComplete: () => {
path.classList.remove('draw-on-load');
path.style.strokeDasharray = '';
path.style.strokeDashoffset = '';
}
});
});
};
if (window.ScrollTrigger && flowStage) {
ScrollTrigger.create({ trigger: flowStage, start: 'top 85%', once: true, onEnter: runDraw });
} else {
runDraw();
}
}
});
</script>
<script>
/* Select any text → "Message in Slack and Paste the message": copy the selection and open the channel to paste. */
(function () {
var SLACK_CHANNEL_URL = "https://theappsmith.slack.com/archives/C096ZSKDDL5";
var btn = document.createElement('button');
btn.className = 'slack-share';
btn.type = 'button';