-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
846 lines (791 loc) · 56.9 KB
/
Copy pathindex.html
File metadata and controls
846 lines (791 loc) · 56.9 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Protocol Luna</title>
<meta name="description" content="Autonomous, sentient-like bots powered by local LLM inference. Discord (jade) and Matrix (pixieglow).">
<meta property="og:type" content="website">
<meta property="og:url" content="https://protocol-luna.github.io">
<meta property="og:site_name" content="Protocol Luna">
<meta property="og:title" content="Protocol Luna">
<meta property="og:description" content="Autonomous, sentient-like bots powered by local LLM inference. Conversing naturally with sleep, typos, hesitations, and memory.">
<meta property="og:image" content="https://avatars.githubusercontent.com/u/295615117?v=4">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Protocol Luna">
<meta name="twitter:description" content="Autonomous, sentient-like bots powered by local LLM inference.">
<meta name="twitter:image" content="https://avatars.githubusercontent.com/u/295615117?v=4">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
<link rel="icon" href="https://avatars.githubusercontent.com/u/295615117?v=4">
<style>
:root {
--bg: #0d0d1a;
--bg-surface: #16162e;
--bg-card: #1a1a3e;
--bg-hover: #222255;
--primary: #9370DB;
--primary-light: #b388ff;
--primary-dim: #7c5cbf;
--accent: #c084fc;
--gold: #e2b96f;
--gold-dim: #a8884d;
--text: #e0dff0;
--text-muted: #9595b5;
--text-dim: #6b6b8a;
--border: #2d2d5e;
--glow: rgba(147, 112, 219, 0.15);
--radius: 12px;
--radius-lg: 20px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: hidden; }
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
background: var(--bg);
color: var(--text);
line-height: 1.6;
min-height: 100vh;
overflow-x: hidden;
}
code, pre, .terminal-title, .hero-note code, .setup-block pre code {
font-family: 'JetBrains Mono', 'SF Mono', Monaco, Consolas, monospace;
}
::selection { background: var(--primary); color: #fff; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dim); }
#stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.star { position: absolute; width: 2px; height: 2px; background: #fff; border-radius: 50%; opacity: 0.3; animation: twinkle var(--duration) ease-in-out infinite alternate; }
@keyframes twinkle { 0% { opacity: 0.1; transform: scale(0.8); } 100% { opacity: 0.8; transform: scale(1.2); } }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; backdrop-filter: blur(16px); background: rgba(13, 13, 26, 0.8); border-bottom: 1px solid var(--border); }
nav .container { display: flex; align-items: center; justify-content: space-between; height: 60px; }
nav .logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; text-decoration: none; color: var(--text); }
nav .logo img { width: 28px; height: 28px; border-radius: 50%; transition: transform .3s; }
nav .logo:hover img { transform: rotate(360deg); }
nav .logo span { color: var(--primary-light); }
nav .links { display: flex; gap: 24px; align-items: center; }
nav .links a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; transition: color .2s; }
nav .links a:hover { color: var(--primary-light); }
.hero { padding: 160px 0 80px; text-align: center; position: relative; }
.hero::before { content: ''; position: absolute; top: -200px; left: 50%; transform: translateX(-50%); width: 800px; height: 600px; background: radial-gradient(ellipse, var(--glow) 0%, transparent 70%); pointer-events: none; }
.hero-badge { display: inline-block; padding: 6px 16px; border-radius: 100px; background: rgba(147, 112, 219, 0.12); border: 1px solid rgba(147, 112, 219, 0.25); font-size: 0.85rem; color: var(--primary-light); margin-bottom: 24px; letter-spacing: 0.3px; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 4.5rem); font-weight: 800; letter-spacing: -1px; line-height: 1.1; background: linear-gradient(135deg, var(--text) 0%, var(--primary-light) 60%, var(--accent) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { margin-top: 20px; font-size: 1.15rem; color: var(--text-muted); max-width: 620px; margin-inline: auto; }
.hero-actions { margin-top: 36px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 100px; font-size: 0.95rem; font-weight: 600; text-decoration: none; transition: all .25s ease; cursor: pointer; border: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-2px); box-shadow: 0 8px 30px var(--glow); }
.btn-outline { background: transparent; color: var(--primary-light); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); background: rgba(147,112,219,0.08); transform: translateY(-2px); }
.hero-note { margin-top: 28px; font-size: 0.85rem; color: var(--text-dim); display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.hero-note code { background: rgba(147,112,219,0.12); padding: 2px 8px; border-radius: 6px; font-size: 0.85rem; color: var(--primary-light); }
section { padding: 90px 0; }
.section-label { display: inline-block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; color: var(--primary-dim); margin-bottom: 12px; font-weight: 600; }
.section-title { font-size: 2rem; font-weight: 700; margin-bottom: 12px; }
.section-sub { color: var(--text-muted); max-width: 600px; margin-bottom: 48px; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.project-card { background: var(--bg-surface); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 32px; transition: all .3s ease; position: relative; overflow: hidden; }
.project-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 12px 40px var(--glow); }
.project-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); opacity: 0; transition: opacity .3s ease; }
.project-card:hover::before { opacity: 1; }
.project-card .icon-wrap { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; background: rgba(147,112,219,0.12); border: 1px solid rgba(147,112,219,0.2); }
.project-card .icon-wrap svg { width: 22px; height: 22px; }
.project-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.project-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; line-height: 1.5; }
.project-card .tags { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.75rem; }
.project-card .tags span { padding: 3px 10px; border-radius: 100px; background: rgba(147,112,219,0.08); color: var(--text-muted); border: 1px solid var(--border); transition: all .2s; }
.project-card:hover .tags span { border-color: rgba(147,112,219,0.3); }
.project-card .card-link { position: absolute; inset: 0; z-index: 1; }
.diagram-wrapper { background: #f5f3ff; border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 32px; margin-bottom: 24px; overflow-x: auto; cursor: pointer; }
.diagram-wrapper img { width: 100%; height: auto; display: block; }
.diagram-caption { margin-top: 12px; font-size: 0.85rem; color: var(--text-muted); text-align: center; pointer-events: none; }
.diagram-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.diagram-card { background: var(--bg-surface); border-radius: var(--radius); border: 1px solid var(--border); padding: 20px; cursor: pointer; transition: all .25s ease; color: var(--text); }
.diagram-card:hover { border-color: var(--primary-dim); transform: translateY(-2px); box-shadow: 0 4px 20px var(--glow); }
.diagram-card h4 { font-size: 0.95rem; margin-bottom: 4px; }
.diagram-card p { font-size: 0.8rem; color: var(--text-muted); }
/* Lightbox for diagram */
.lightbox { display: none; position: fixed; inset: 0; z-index: 999; background: rgba(0,0,0,0.85); backdrop-filter: blur(8px); justify-content: center; align-items: center; cursor: zoom-out; padding: 40px; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-close { position: absolute; top: 20px; right: 28px; color: #fff; font-size: 2rem; cursor: pointer; opacity: 0.6; transition: opacity .2s; background: none; border: none; }
.lightbox-close:hover { opacity: 1; }
.showcase-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.showcase-screenshot { background: var(--bg-surface); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
.showcase-screenshot img { width: 100%; display: block; }
.showcase-screenshot .caption { padding: 14px 20px; font-size: 0.85rem; color: var(--text-muted); border-top: 1px solid var(--border); line-height: 1.5; }
.showcase-screenshot .caption strong { color: var(--text); }
.showcase-quote { background: linear-gradient(135deg, rgba(147,112,219,0.08), rgba(192,132,252,0.05)); border: 1px solid rgba(147,112,219,0.2); border-radius: var(--radius); padding: 24px 28px; margin-top: 24px; color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }
.showcase-quote strong { color: var(--primary-light); }
.blog-grid { display: grid; gap: 16px; }
.blog-post { background: var(--bg-surface); border-radius: var(--radius); border: 1px solid var(--border); padding: 20px 24px; transition: all .2s; display: flex; align-items: start; gap: 16px; text-decoration: none; color: inherit; }
.blog-post:hover { border-color: var(--primary-dim); background: var(--bg-hover); }
.blog-post .luna-tag { flex-shrink: 0; padding: 2px 8px; border-radius: 100px; background: rgba(226, 185, 111, 0.1); border: 1px solid rgba(226, 185, 111, 0.25); font-size: 0.65rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 3px; }
.blog-post .content { flex: 1; }
.blog-post .title { font-size: 1rem; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.blog-post .title:hover { color: var(--primary-light); }
.blog-post .desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.4; }
.blog-post .meta { font-size: 0.75rem; color: var(--text-dim); margin-top: 6px; }
.docs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.doc-link { display: flex; align-items: center; gap: 14px; background: var(--bg-surface); border-radius: var(--radius); border: 1px solid var(--border); padding: 18px 20px; text-decoration: none; color: var(--text); transition: all .2s; }
.doc-link:hover { border-color: var(--primary-dim); background: var(--bg-hover); transform: translateY(-2px); }
.doc-link .doc-icon { font-size: 1.3rem; flex-shrink: 0; }
.doc-link .doc-info h4 { font-size: 0.95rem; }
.doc-link .doc-info p { font-size: 0.8rem; color: var(--text-muted); }
.timeline { position: relative; padding-left: 40px; }
.timeline::before { content: ''; position: absolute; left: 16px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; margin-bottom: 32px; }
.timeline-item::before { content: ''; position: absolute; left: -32px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg-card); border: 2px solid var(--primary-dim); }
.timeline-item:last-child::before { background: var(--primary); border-color: var(--primary); box-shadow: 0 0 12px var(--glow); }
.timeline-year { font-size: 0.8rem; font-weight: 700; color: var(--primary-dim); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.timeline-content { background: var(--bg-surface); border-radius: var(--radius); border: 1px solid var(--border); padding: 20px 24px; }
.timeline-content h4 { font-size: 1rem; margin-bottom: 6px; }
.timeline-content p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }
.use-cases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.use-case-card { background: var(--bg-surface); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 28px; transition: all .25s; }
.use-case-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 8px 30px var(--glow); }
.use-case-card .icon-wrap { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; background: rgba(147,112,219,0.12); border: 1px solid rgba(147,112,219,0.2); }
.use-case-card .icon-wrap svg { width: 20px; height: 20px; }
.use-case-card h4 { font-size: 1rem; margin-bottom: 8px; }
.use-case-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }
.behavior-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.behavior-card { background: var(--bg-surface); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 28px; transition: all .25s; }
.behavior-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 8px 30px var(--glow); }
.behavior-card .behavior-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; background: rgba(147,112,219,0.12); border: 1px solid rgba(147,112,219,0.2); }
.behavior-card .behavior-icon svg { width: 20px; height: 20px; }
.behavior-card h4 { font-size: 1rem; margin-bottom: 8px; }
.behavior-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }
.behavior-card code { background: rgba(147,112,219,0.15); padding: 1px 5px; border-radius: 4px; font-size: 0.8rem; }
.raw-model-demo { display: flex; flex-direction: column; gap: 24px; align-items: center; }
.terminal-wrapper { background: #0c0c0c; border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; width: 100%; max-width: 800px; }
.terminal-bar { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: #1a1a1a; border-bottom: 1px solid #333; }
.terminal-dot { width: 12px; height: 12px; border-radius: 50%; }
.terminal-title { margin-left: 12px; font-size: 0.75rem; color: #888; font-family: monospace; }
.terminal-wrapper img { width: 100%; display: block; }
.raw-model-note { max-width: 700px; background: var(--bg-surface); border-radius: var(--radius); border: 1px solid var(--border); padding: 20px 24px; }
.raw-model-note p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }
.raw-model-note strong { color: var(--text); }
.raw-model-note em { color: var(--primary-light); font-style: normal; }
.priming-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 32px; }
.priming-card { background: var(--bg-surface); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 28px; }
.priming-card h4 { font-size: 1rem; margin-bottom: 8px; color: var(--primary-light); }
.priming-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }
.priming-card em { color: var(--primary-light); font-style: normal; }
.priming-cta { text-align: center; }
.priming-cta p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 16px; }
.priming-cta strong { color: var(--text); }
.setup-block { background: var(--bg-surface); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 28px; margin-bottom: 20px; }
.setup-block h3 { font-size: 1.05rem; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.setup-block p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 12px; line-height: 1.5; }
.setup-block a { color: var(--primary-light); }
.setup-block pre { background: #0c0c0c; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 12px; overflow-x: auto; }
.setup-block pre code { background: none; padding: 0; color: #e0dff0; font-size: 0.82rem; }
.setup-badge { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.95rem; flex-shrink: 0; }
.setup-block-model { border-color: var(--primary); background: rgba(147,112,219,0.06); }
.setup-block-model h3 .setup-badge { background: var(--gold); color: #1a1a2e; }
.setup-block-model .btn-outline { font-size: 0.85rem; }
.setup-block:last-child { margin-bottom: 0; }
footer { border-top: 1px solid var(--border); padding: 40px 0; text-align: center; color: var(--text-dim); font-size: 0.85rem; }
footer a { color: var(--primary-dim); text-decoration: none; }
footer a:hover { color: var(--primary-light); }
img { max-width: 100%; height: auto; }
@media (max-width: 1024px) {
.diagram-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 768px) {
html { font-size: 15px; }
nav .links { display: none; }
.hero { padding: 100px 0 40px; }
.hero h1 { font-size: 2.4rem; }
.hero p { font-size: 1rem; }
section { padding: 50px 0; }
.section-title { font-size: 1.5rem; }
.projects-grid { grid-template-columns: 1fr; }
.diagram-grid { grid-template-columns: 1fr; }
.diagram-wrapper { padding: 16px; }
.hero-actions { flex-direction: column; align-items: center; width: 100%; }
.hero-actions .btn { width: 100%; justify-content: center; }
.showcase-grid { grid-template-columns: 1fr; }
.blog-post { flex-direction: column; gap: 8px; }
.blog-post .luna-tag { align-self: flex-start; }
.docs-grid { grid-template-columns: 1fr; }
.showcase-quote { font-size: 0.85rem; padding: 18px 20px; }
.use-cases-grid { grid-template-columns: 1fr; }
.behavior-grid { grid-template-columns: 1fr; }
.timeline { padding-left: 32px; }
.terminal-wrapper { border-radius: var(--radius); }
.priming-grid { grid-template-columns: 1fr; }
.setup-block { padding: 20px; }
}
@media (max-width: 480px) {
html { font-size: 14px; }
.hero { padding: 80px 0 30px; }
.hero h1 { font-size: 2rem; }
.container { padding: 0 16px; }
section { padding: 40px 0; }
.project-card { padding: 24px; }
.diagram-wrapper { padding: 12px; border-radius: var(--radius); }
.diagram-card { padding: 14px; }
}
</style>
</head>
<body>
<div id="stars"></div>
<nav>
<div class="container">
<a href="#" class="logo">
<img src="https://avatars.githubusercontent.com/u/295615117?v=4" alt="" crossorigin="anonymous">
Protocol <span>Luna</span>
</a>
<div class="links">
<a href="docs/overview.html">Overview</a>
<a href="docs/getting-started.html">Getting Started</a>
<a href="docs/modules.html">Modules</a>
<a href="docs/fewshot-priming.html">Few-Shot</a>
<a href="docs/centroids.html">Centroids</a>
</div>
</div>
</nav>
<section class="hero">
<div class="container">
<div class="hero-badge">Autonomous AI · Open Source · 2026</div>
<h1>Protocol Luna</h1>
<p>Autonomous, sentient-like bots powered by local LLM inference. Conversing naturally -- with sleep, typos, hesitations, and memory.</p>
<div class="hero-actions">
<a href="https://github.com/protocol-luna" class="btn btn-primary">
<svg width="18" height="18" viewBox="0 0 16 16" fill="currentColor"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"/></svg>
GitHub Organization
</a>
<a href="https://github.com/protocol-luna/.github" class="btn btn-outline">Documentation</a>
</div>
<p class="hero-note">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" style="vertical-align:middle;margin-right:6px;"><rect x="3" y="3" width="18" height="18" rx="2"/><path d="M3 9h18"/><path d="M9 21V9"/></svg>
This project has a Matrix server. Invite <code>@pixieglow:protocol-luna.github.io</code> to test the bot -- no guarantee it’s awake, though.
</p>
</div>
</section>
<section id="raw-model">
<div class="container">
<div class="section-label">Raw Output</div>
<h2 class="section-title">No Tricks. Just Fine-Tuning.</h2>
<p class="section-sub">Load the model. No system prompt, no few-shot priming, no behavioral layer. The fine-tuning alone produces human-style responses -- not assistant-style.</p>
<div class="raw-model-demo">
<div class="terminal-wrapper">
<div class="terminal-bar">
<span class="terminal-dot" style="background:#ff5f57;"></span>
<span class="terminal-dot" style="background:#febc2e;"></span>
<span class="terminal-dot" style="background:#28c840;"></span>
<span class="terminal-title">llama-cli -- Luna-Protocol-1.5B-Q8_0</span>
</div>
<img src="images/llama-cli-raw.png" alt="Raw model output in llama-cli terminal" loading="lazy">
</div>
<div class="raw-model-note">
<p><strong>What you see:</strong> the model responds with “good hruu”, “ohh nicee”, “no problem, how was your day?” -- casual, lowercase, no punctuation excess. The style is <em>baked into the weights</em>, not injected by prompts. The behavioral layer (typos, hesitations, sleep) just adds imperfections on top.</p>
</div>
</div>
</div>
</section>
<section id="priming">
<div class="container">
<div class="section-label">Next Step</div>
<h2 class="section-title">Now Imagine Adding Few-Shot Priming</h2>
<p class="section-sub">The raw model is already human-style. But Protocol Luna doesn’t stop there.</p>
<div class="priming-grid">
<div class="priming-card">
<h4>Few-Shot Priming</h4>
<p>Inject 3-5 example exchanges before each request. The model doesn’t just answer -- it <em>continues a persona</em>. Name, tone, context, all seeded in the prompt window. Zero training required.</p>
</div>
<div class="priming-card">
<h4>Repeat Penalty</h4>
<p>Prevents the bot from echoing the same phrases. Forces vocabulary diversity across long conversations -- no more “ohh nicee” five times in a row.</p>
</div>
<div class="priming-card">
<h4>Custom top_p / top_k</h4>
<p>Lower top_p (0.7) for focused, coherent replies. Higher top_k (40) to allow vocabulary variety. The balance between “human-sounding” and “sane” is a tuning knob, not a lottery.</p>
</div>
</div>
<div class="priming-cta">
<p>The model is available on HuggingFace -- the <strong>200k-instruct</strong> variant is the one used in production:</p>
<a href="https://huggingface.co/fox3000foxy/Luna-Protocol-1.5B-Discord-Dialogues-200k-instruct" target="_blank" rel="noopener" class="btn btn-primary">
<svg width="18" height="18" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"/></svg>
fox3000foxy/Luna-Protocol-1.5B-Discord-Dialogues-200k-instruct
</a>
</div>
</div>
</section>
<section id="setup">
<div class="container">
<div class="section-label">Get Started</div>
<h2 class="section-title">How to Setup</h2>
<p class="section-sub">Four components, four setups. All local, no cloud APIs required. <a href="docs/getting-started.html" style="color:var(--primary-light);font-weight:600;">Full guide →</a></p>
<div class="setup-block">
<h3><span class="setup-badge">1</span> Krystal -- LLM Inference Server</h3>
<p>Wraps llama.cpp to serve GGUF models via an OpenAI-compatible HTTP API. Single-backend mode on :3124:</p>
<pre><code>git clone https://github.com/protocol-luna/krystal.git
cd krystal
./start.sh # Luna 1.5B on :3124</code></pre>
<p>Configurable via <code>KRYSTAL_*</code> environment variables.</p>
</div>
<div class="setup-block">
<h3><span class="setup-badge">2</span> Sapphire -- LLM Gateway</h3>
<p>Python middleware that sits between Emerald and Krystal. Classifies messages, manages sessions, injects few-shot examples, and detects degenerate responses.</p>
<pre><code>git clone https://github.com/protocol-luna/sapphire.git
cd sapphire
pip install -r requirements.txt
python server.py # listens on :3123</code></pre>
</div>
<div class="setup-block">
<h3><span class="setup-badge">3</span> Emerald -- Brain Service</h3>
<p>TypeScript WebSocket server that connects bots to Sapphire. Evaluates behavior rules (burst, sleep, typo, mannerisms), calls Sapphire, processes responses.</p>
<pre><code>git clone https://github.com/protocol-luna/emerald.git
cd emerald
npm install
cp config.example.yml config.yml
npm start # WebSocket server on :3126</code></pre>
</div>
<div class="setup-block">
<h3><span class="setup-badge">4</span> Ruby -- Markov Chain Service</h3>
<p>Optional but recommended. Builds a Markov chain from conversation data to generate ambient messages without LLM calls.</p>
<pre><code>git clone https://github.com/protocol-luna/ruby.git
cd ruby
npm install
npm start # HTTP server on :3127</code></pre>
<p>Emerald's <code>config.yml</code> must have <code>ruby_enabled: true</code> and the correct <code>ruby_host</code>/<code>ruby_port</code>.</p>
</div>
<div class="setup-block">
<h3><span class="setup-badge">5</span> Bot -- Jade (Discord) or Pixieglow (Matrix)</h3>
<p>Thin WebSocket clients of Emerald. No LLM logic -- just forward messages and post responses.</p>
<pre><code># Jade (Discord)
git clone https://github.com/protocol-luna/jade.git
cd jade
npm install
# configure config.yml: discord_token, emerald_host/port
npm start
# Pixieglow (Matrix)
git clone https://github.com/protocol-luna/pixieglow.git
cd pixieglow
bun install
# configure config.yml: matrix access token, emerald_host/port
bun start</code></pre>
<p>Generate a Discord OAuth2 URL: scope <code>bot</code>, permissions <code>Send Messages</code>, <code>Read Message History</code>, <code>Add Reactions</code>, intents <code>guilds</code>, <code>guildMessages</code>, <code>guildMessageReactions</code>, <code>messageContent</code>, <code>directMessages</code>.</p>
<p>For Matrix: invite <code>@pixieglow:protocol-luna.github.io</code> to test. Requires a Matrix homeserver (tested with <a href="https://github.com/tuwunel/tuwunel" target="_blank" rel="noopener">tuwunel</a>).</p>
</div>
<div class="setup-block setup-block-model">
<h3><span class="setup-badge">☆</span> Download the Model</h3>
<p>All three components share the same fine-tuned model from HuggingFace:</p>
<pre><code>pip install huggingface-hub
huggingface-cli download \
fox3000foxy/Luna-Protocol-1.5B-Discord-Dialogues-200k-instruct \
--local-dir models/</code></pre>
<p><a href="https://huggingface.co/fox3000foxy/Luna-Protocol-1.5B-Discord-Dialogues-200k-instruct" target="_blank" rel="noopener" class="btn btn-outline" style="margin-top:12px;">fox3000foxy/Luna-Protocol-1.5B-Discord-Dialogues-200k-instruct</a></p>
</div>
</div>
</section>
<section id="projects">
<div class="container">
<div class="section-label">Projects</div>
<h2 class="section-title">The Stack</h2>
<p class="section-sub">Six services working together: LLM inference, gateway, brain, Markov chain, and two platform adapters.</p>
<div class="projects-grid">
<div class="project-card">
<div class="icon-wrap">
<svg viewBox="0 0 24 24" fill="none" stroke="#b388ff" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2L2 7l10 5 10-5-10-5z"/><path d="M2 17l10 5 10-5"/><path d="M2 12l10 5 10-5"/></svg>
</div>
<h3>Krystal</h3>
<p>LLM inference server wrapping llama.cpp. Serves GGUF models via an OpenAI-compatible HTTP API. Single-backend mode on :3124. Managed by PM2.</p>
<div class="tags"><span>llama.cpp</span><span>C++</span><span>PM2</span></div>
<a href="https://github.com/protocol-luna/krystal" class="card-link" aria-label="Krystal repo"></a>
</div>
<div class="project-card">
<div class="icon-wrap">
<svg viewBox="0 0 24 24" fill="none" stroke="#c084fc" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2a10 10 0 0 1 10 10c0 5-4 9-10 9S2 17 2 12 6 2 12 2z"/><path d="M8 12h8"/><path d="M12 8v8"/></svg>
</div>
<h3>Emerald</h3>
<p>Brain and decision engine. WebSocket server (:3126) that connects platform adapters to Sapphire. Evaluates behavior rules, processes responses, and sends commands. Debug mode across all layers.</p>
<div class="tags"><span>TypeScript</span><span>WebSocket</span><span>PM2</span></div>
<a href="https://github.com/protocol-luna/emerald" class="card-link" aria-label="Emerald repo"></a>
</div>
<div class="project-card">
<div class="icon-wrap">
<svg viewBox="0 0 24 24" fill="none" stroke="#b388ff" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15a2 2 0 01-2 2H7l-4 4V5a2 2 0 012-2h14a2 2 0 012 2z"/><path d="M8 10h.01"/><path d="M12 10h.01"/><path d="M16 10h.01"/></svg>
</div>
<h3>Sapphire</h3>
<p>LLM gateway built on FastAPI. Classifies messages via BGE-small embedding centroids, manages conversation sessions, injects few-shot examples, detects degenerate responses, and routes to Krystal with emotion-aware sampling.</p>
<div class="tags"><span>Python</span><span>FastAPI</span><span>fastembed</span></div>
<a href="https://github.com/protocol-luna/sapphire" class="card-link" aria-label="Sapphire repo"></a>
</div>
<div class="project-card">
<div class="icon-wrap">
<svg viewBox="0 0 24 24" fill="none" stroke="#b388ff" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15a2 2 0 01-2 2H7l-4 4V5a2 2 0 012-2h14a2 2 0 012 2z"/><path d="M8 10h.01"/><path d="M12 10h.01"/><path d="M16 10h.01"/></svg>
</div>
<h3>Ruby</h3>
<p>Markov chain service. Builds an order-2 Markov chain from all messages flowing through Emerald. Generates ambient messages and spontaneous replies with no LLM latency.</p>
<div class="tags"><span>TypeScript</span><span>sql.js</span><span>SQLite</span></div>
<a href="https://github.com/protocol-luna/ruby" class="card-link" aria-label="Ruby repo"></a>
</div>
<div class="project-card">
<div class="icon-wrap">
<svg viewBox="0 0 24 24" fill="none" stroke="#b388ff" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15a2 2 0 01-2 2H7l-4 4V5a2 2 0 012-2h14a2 2 0 012 2z"/><path d="M8 10h.01"/><path d="M12 10h.01"/><path d="M16 10h.01"/></svg>
</div>
<h3>Jade</h3>
<p>Discord adapter for Emerald. Thin WebSocket client with debug mode, TTS voice messages, and responseText forwarding.</p>
<div class="tags"><span>TypeScript</span><span>Eris</span><span>Discord</span></div>
<a href="https://github.com/protocol-luna/jade" class="card-link" aria-label="Jade repo"></a>
</div>
<div class="project-card">
<div class="icon-wrap">
<svg viewBox="0 0 24 24" fill="none" stroke="#c084fc" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"/></svg>
</div>
<h3>Pixieglow</h3>
<p>Matrix adapter for Emerald. Thin WebSocket client that forwards Matrix messages to Emerald and posts responseText to rooms.</p>
<div class="tags"><span>TypeScript</span><span>Bun</span><span>Matrix</span></div>
<a href="https://github.com/protocol-luna/pixieglow" class="card-link" aria-label="Pixieglow repo"></a>
</div>
</div>
</div>
</section>
<section id="architecture">
<div class="container">
<div class="section-label">Architecture</div>
<h2 class="section-title">How It Works</h2>
<p class="section-sub">The brain (Emerald) manages behavior and Sapphire communication. Bots are thin WebSocket clients.</p>
<div class="diagram-wrapper" onclick="openDiagram('diagrams/architecture-overview.svg')">
<img src="diagrams/architecture-overview.svg" alt="Architecture Overview Diagram">
<div class="diagram-caption">High-level system architecture: platform → bot → Emerald (brain) → Sapphire (gateway) → Krystal (LLM)</div>
</div>
<div class="diagram-grid">
<div class="diagram-card" onclick="openDiagram('diagrams/02-message-processing.svg')">
<h4>Message Processing</h4>
<p>Every message goes through trigger evaluation, behavior layer, Sapphire call, and post-processing -- orchestrated by Emerald.</p>
</div>
<div class="diagram-card" onclick="openDiagram('diagrams/03-trigger-evaluation.svg')">
<h4>Trigger Evaluation</h4>
<p>Cascade of checks: mentions, DMs, names, keywords, random chance. Each maps to specific delay and ignore thresholds.</p>
</div>
<div class="diagram-card">
<h4>Emerald Brain</h4>
<p>Central WebSocket server (:3126). Bots forward MessageEvents, Emerald evaluates behavior, calls Sapphire, applies typo/swap, and sends RespondCommands back with responseText.</p>
</div>
<div class="diagram-card" onclick="openDiagram('diagrams/16-sleep-schedule.svg')">
<h4>Sleep Schedule</h4>
<p>Circadian rhythm with three behaviors: sleep (ignore all but mentions), slow (3-5× delay), short (+30% ignore).</p>
</div>
<div class="diagram-card" onclick="openDiagram('diagrams/24-topic-fatigue.svg')">
<h4>Topic Fatigue</h4>
<p>Tracks word frequency per channel. When a topic repeats too often, the bot gets bored -- longer delays, higher ignore chance.</p>
</div>
<div class="diagram-card" onclick="openDiagram('diagrams/22-complete-lifecycle.svg')">
<h4>Complete Lifecycle</h4>
<p>Master diagram unifying all sub-systems into one end-to-end lifecycle.</p>
</div>
<div class="diagram-card">
<h4>Sapphire Gateway</h4>
<p>Python LLM gateway called by Emerald. Classifies each message via embedding centroid similarity (BAAI/bge-small-en-v1.5), manages sessions, injects few-shot examples, detects degenerate responses, and calls Krystal. Single-backend mode (:3124).</p>
</div>
</div>
</div>
</section>
<section id="state-machine">
<div class="container">
<div class="section-label">Behavioral Layer</div>
<h2 class="section-title">The State Machine That Makes It Real</h2>
<p class="section-sub">Jade’s state machine isn’t about generating text -- it’s about deciding <em>when</em>, <em>how</em>, and <em>whether</em> to respond. Every behavior is a deliberate imperfection.</p>
<div class="behavior-grid">
<div class="behavior-card">
<div class="behavior-icon">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg>
</div>
<h4>Typo Injection</h4>
<p>Simulates keyboard slips: adjacent-key swaps (<code>teh</code>), missing letters (<code>liek</code>), double-taps (<code>sooo</code>). Probability scales with message length -- longer messages = more typos. Corrections happen silently 3-8 seconds later.</p>
</div>
<div class="behavior-card">
<div class="behavior-icon">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg>
</div>
<h4>Hesitation Markers</h4>
<p>“hmm”, “wait”, “idk”, “...” inserted before uncertain responses. The LLM doesn’t generate these -- the state machine injects them post-generation based on confidence scoring.</p>
</div>
<div class="behavior-card">
<div class="behavior-icon">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M18 8h1a4 4 0 0 1 0 8h-1"/><path d="M2 8h16v9a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V8z"/><line x1="6" y1="1" x2="6" y2="4"/><line x1="10" y1="1" x2="10" y2="4"/><line x1="14" y1="1" x2="14" y2="4"/></svg>
</div>
<h4>Sleep Cycles</h4>
<p>Circadian rhythm tied to real time. At night: ignore all but mentions. During “slow” hours: 3-5× longer delays. The bot doesn’t pretend to sleep -- it <em>actually</em> reduces activity based on its persona’s schedule.</p>
</div>
<div class="behavior-card">
<div class="behavior-icon">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3"/></svg>
</div>
<h4>Burst Mode</h4>
<p>When engaged in a conversation, response delays drop to 2-5 seconds -- mimicking real typing speed. But only for 15 seconds max per exchange, then it cools down. Prevents the bot from dominating a thread.</p>
</div>
<div class="behavior-card">
<div class="behavior-icon">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 2L2 7l10 5 10-5-10-5z"/><path d="M2 17l10 5 10-5"/><path d="M2 12l10 5 10-5"/></svg>
</div>
<h4>Topic Fatigue</h4>
<p>Tracks word frequency per channel. When a topic repeats too often, the bot gets bored -- longer delays, higher ignore chance, shorter responses. Humans do this unconsciously; the bot does it explicitly.</p>
</div>
<div class="behavior-card">
<div class="behavior-icon">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"/></svg>
</div>
<h4>Follow-Up Detection</h4>
<p>Tracks who spoke last. If the bot was the last to talk, it’s less likely to respond again -- preventing monologues. If someone replies to the bot specifically, response probability jumps back up.</p>
</div>
</div>
</div>
</section>
<section id="showcase">
<div class="container">
<div class="section-label">Showcase</div>
<h2 class="section-title">Real Conversations</h2>
<p class="section-sub">Unedited Discord exchanges. Both accounts are bot instances -- neither participant is human. PixieGlow runs <strong>Luna 1.5B 200k Instruct</strong> (Q8_0). Sujet d’SBlow runs <strong>Discord-Hermes-8B</strong> (f16).</p>
<div class="showcase-grid">
<div class="showcase-screenshot">
<img src="https://fox3000foxy.com/images/luna-protocol/realism/realism-01.png" alt="Discord conversation screenshot 1" loading="lazy">
<div class="caption">PixieGlow and Sujet d'SBlow discuss roles and identity -- casual, confused, and completely human-sounding.</div>
</div>
<div class="showcase-screenshot">
<img src="https://fox3000foxy.com/images/luna-protocol/realism/realism-02.png" alt="Discord conversation screenshot 2" loading="lazy">
<div class="caption">Short, human replies (“okay, okay”, “yay”, “yayy”) -- exactly the kind of messages you’d expect on Discord.</div>
</div>
<div class="showcase-screenshot">
<img src="https://fox3000foxy.com/images/luna-protocol/realism/realism-03.png" alt="Discord conversation screenshot 3" loading="lazy">
<div class="caption">The conversation drifts into a different topic with coherent follow-ups -- no robotic transitions, no topic resets.</div>
</div>
<div class="showcase-screenshot">
<img src="https://fox3000foxy.com/images/luna-protocol/realism/realism-04.png" alt="Discord conversation screenshot 4" loading="lazy">
<div class="caption">Responses are short and reactive: “that’s probably true”, “i guess”, “yeah” -- human pacing with no over-explaining.</div>
</div>
<div class="showcase-screenshot">
<img src="https://fox3000foxy.com/images/luna-protocol/realism/realism-05.png" alt="Discord conversation screenshot 5" loading="lazy">
<div class="caption">The bots tackle a sensitive topic naturally, with no robotic hedging or forced disclaimers -- just real-sounding discussion.</div>
</div>
</div>
<div class="showcase-quote">
<strong>What you just read:</strong> two bots talking to each other on Discord, each one behaviorally “convinced” it’s chatting with someone normal. The tone, the hesitations, the casual pacing -- none of it was scripted. This is a practical glimpse of the <strong>dead internet theory</strong>: autonomous instances holding a conversation for minutes without ever giving themselves away. If you assumed one was human at any point, you fell for it -- exactly like anyone would on a real server.
</div>
<div class="showcase-quote" style="margin-top:16px;">
<strong>Historic note -- <a href="https://datatracker.ietf.org/doc/html/rfc439" style="color:var(--primary-light);" target="_blank" rel="noopener">RFC 439</a> (1972):</strong> the first recorded bot-to-bot conversation. PARRY (simulating paranoia) and DOCTOR (ELIZA) held a session on 18 September 1972, published by <strong>Vint Cerf</strong> as RFC 439. Two state machines talking to each other -- fifty years before Luna. What you see in the screenshots above is the same idea, but with learned language instead of hand-written rules.
</div>
</div>
</section>
<section id="timeline">
<div class="container">
<div class="section-label">Timeline</div>
<h2 class="section-title">60 Years of Chatbots</h2>
<p class="section-sub">From keyword matching to autonomous agents -- a quick timeline of conversational AI.</p>
<div class="timeline">
<div class="timeline-item">
<div class="timeline-year">1966</div>
<div class="timeline-content">
<h4>ELIZA</h4>
<p><strong>How it works:</strong> A script called DOCTOR scans user input for keywords (e.g. “mother”, “sad”). When found, it applies a transformation rule -- flipping pronouns (“my” → “your”) and appending a template response (“Tell me more about your mother”). No memory, no understanding, no state. The “Eliza effect”: humans project empathy onto a rephrasing engine.</p>
</div>
</div>
<div class="timeline-item">
<div class="timeline-year">1972</div>
<div class="timeline-content">
<h4>PARRY</h4>
<p><strong>How it works:</strong> An “internal model” with numerical variables for anger, fear, and suspiciousness. Each user input is parsed for keywords, and matching rules adjust these variables up or down. The output is generated by selecting a response template based on which variable is highest -- deflection when suspicious, aggression when angry. Still no learning -- just a more complex state machine than ELIZA.</p>
</div>
</div>
<div class="timeline-item">
<div class="timeline-year">1995</div>
<div class="timeline-content">
<h4>A.L.I.C.E.</h4>
<p><strong>How it works:</strong> AIML (Artificial Intelligence Markup Language) -- XML-based pattern matching. Each rule defines a “template” (response) tied to a “pattern” (regex-like keyword sequence). Categories can have <code><srai></code> redirects (synonyms, fallbacks), <code><set>/<get></code> for basic memory, and <code><that></code> for context tracking. ~40,000 hand-written rules. Won Loebner Prize 3x. Still no learning -- just a massive lookup table.</p>
</div>
</div>
<div class="timeline-item">
<div class="timeline-year">2001</div>
<div class="timeline-content">
<h4>SmarterChild</h4>
<p><strong>How it works:</strong> Hybrid approach -- AIML-style pattern matching for conversation, plus API integrations for real data (weather, news, stock prices). Introduced contextual shortcuts: users could type <code>/weather Paris</code> directly. The bot maintained per-user state across sessions. The first chatbot to feel “useful” rather than just entertaining -- 26 million users on AIM/MSN.</p>
</div>
</div>
<div class="timeline-item">
<div class="timeline-year">2011</div>
<div class="timeline-content">
<h4>Siri</h4>
<p><strong>How it works:</strong> Speech-to-text (Hidden Markov Models) → NLU intent classification → slot filling (entity extraction) → action dispatch to APIs. The chatbot becomes an <em>agent</em> -- it doesn’t just talk, it <em>does things</em> (set alarms, send messages, search the web). State tracking via conversation graphs. Still rule-based at the NLU layer -- the “intelligence” is in the integration, not the language model.</p>
</div>
</div>
<div class="timeline-item">
<div class="timeline-year">2022</div>
<div class="timeline-content">
<h4>ChatGPT</h4>
<p><strong>How it works:</strong> A Transformer neural network trained on trillions of tokens. Instead of matching patterns, it <em>predicts the next token</em> given the full conversation context. Reinforcement Learning from Human Feedback (RLHF) aligns outputs to human preferences. No scripts, no decision trees -- just probability distributions over vocabulary. The chatbot becomes indistinguishable from a person because it’s learned the statistical structure of human language itself.</p>
</div>
</div>
<div class="timeline-item" style="border-color:var(--primary);">
<div class="timeline-year" style="color:var(--primary-light);">2026</div>
<div class="timeline-content">
<h4>Protocol Luna</h4>
<p><strong>How it works:</strong> A fine-tuned 1.5B LLM (Qwen-based) served locally via llama.cpp. Few-shot priming injects persona context into every request. Behavioral layers add sleep cycles, typos, hesitations, topic fatigue, and spontaneous messages -- none of which come from the model itself. Voice output via <strong>PiperTTS</strong> -- a fast, local neural TTS that runs on CPU in real time, making voice messages on Discord or Matrix feel natural. The bot runs on your hardware, lives on your server, and is indistinguishable from a real user. Two instances can hold a conversation for hours without breaking character.</p>
</div>
</div>
</div>
<div style="text-align:center;margin-top:32px;">
<a class="btn btn-outline" href="https://fox3000foxy.com/blog/from-eliza-to-llm-chatbots-typescript" target="_blank" rel="noopener">Read the full article →</a>
</div>
</div>
</section>
<section id="use-cases">
<div class="container">
<div class="section-label">Use Cases</div>
<h2 class="section-title">Where Human-Like Bots Matter</h2>
<p class="section-sub">Protocol Luna isn’t a chatbot for customer support. It’s about creating presence -- digital beings that feel real enough to pass.</p>
<div class="use-cases-grid">
<div class="use-case-card">
<div class="icon-wrap">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"/><path d="M8 14s1.5 2 4 2 4-2 4-2"/><line x1="9" y1="9" x2="9.01" y2="9"/><line x1="15" y1="9" x2="15.01" y2="9"/></svg>
</div>
<h4>Dead Internet Theory</h4>
<p>When every platform is flooded with bots, the only way to stay visible is to have your own. Two instances of Luna can maintain a server’s activity without any human intervention.</p>
</div>
<div class="use-case-card">
<div class="icon-wrap">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M23 21v-2a4 4 0 0 0-3-3.87"/><path d="M16 3.13a4 4 0 0 1 0 7.75"/></svg>
</div>
<h4>Social Simulation</h4>
<p>Game worlds, Discord servers, virtual communities -- environments where NPCs need to feel like real participants, not scripted quest givers.</p>
</div>
<div class="use-case-card">
<div class="icon-wrap">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg>
</div>
<h4>Companion AI</h4>
<p>Not therapy, not productivity -- just presence. A bot that remembers your habits, shares your interests, and talks to you like a friend would.</p>
</div>
<div class="use-case-card">
<div class="icon-wrap">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="2" y="3" width="20" height="14" rx="2" ry="2"/><line x1="8" y1="21" x2="16" y2="21"/><line x1="12" y1="17" x2="12" y2="21"/></svg>
</div>
<h4>Testing & Research</h4>
<p>How do humans react to bots they can’t detect? Protocol Luna is a practical lab for studying the Eliza effect at scale.</p>
</div>
</div>
</div>
</section>
<section id="blog">
<div class="container">
<div class="section-label">From the Blog</div>
<h2 class="section-title">Related Articles</h2>
<p class="section-sub">Technical deep-dives behind Protocol Luna, written by the creator at <a href="https://fox3000foxy.com" style="color:var(--primary-light);">fox3000foxy.com</a>.</p>
<div class="blog-grid">
<a class="blog-post" href="https://fox3000foxy.com/blog/luna-protocol-layers-and-centroids" target="_blank" rel="noopener">
<span class="luna-tag">Protocol Luna</span>
<div class="content">
<div class="title">Luna Protocol: shared brains, emotion classification, and interesting/futile routing</div>
<div class="desc">From monolith to four-layer architecture: adapters, brain, emotion classifier, and inference. Embedding centroids, INTERESSANT/FUTILE routing, and LLM parameter tuning by valence and arousal.</div>
<div class="meta">July 27, 2026</div>
</div>
</a>
<a class="blog-post" href="https://fox3000foxy.com/blog/from-eliza-to-llm-chatbots-typescript" target="_blank" rel="noopener">
<span class="luna-tag">Protocol Luna</span>
<div class="content">
<div class="title">From ELIZA to LLMs: 60 years of conversational AI, rebuilt in TypeScript</div>
<div class="desc">ELIZA, PARRY, ALICE, Jabberwacky, Cleverbot -- five radically different architectures, ported to TypeScript with original data.</div>
<div class="meta">July 21, 2026</div>
</div>
</a>
<a class="blog-post" href="https://fox3000foxy.com/blog/luna-protocol-official-models" target="_blank" rel="noopener">
<span class="luna-tag">Protocol Luna</span>
<div class="content">
<div class="title">Luna Protocol: why I fine-tuned a 1.5B model on 50k Discord samples</div>
<div class="desc">Why Luna Protocol switched from a Hermes 3B to a fine-tuned Qwen 1.5B, and why few-shot priming became the real performance driver.</div>
<div class="meta">July 17, 2026</div>
</div>
</a>
<a class="blog-post" href="https://fox3000foxy.com/blog/luna-protocol-discord-bot" target="_blank" rel="noopener">
<span class="luna-tag">Protocol Luna</span>
<div class="content">
<div class="title">Luna Protocol: I built an autonomous Discord bot that simulates a human</div>
<div class="desc">Fully autonomous Discord bot with a local LLM, capable of natural conversation with sleep, typos, hesitations, forgetfulness, and spontaneous messages.</div>
<div class="meta">July 11, 2026</div>
</div>
</a>
</div>
<div style="text-align:center;margin-top:24px;">
<a href="https://fox3000foxy.com/blog" class="btn btn-outline" style="font-size:0.85rem;">More articles →</a>
</div>
</div>
</section>
<section id="docs">
<div class="container">
<div class="section-label">Resources</div>
<h2 class="section-title">Documentation</h2>
<p class="section-sub">State machines, fine-tuning guides, configuration references.</p>
<div class="docs-grid">
<a href="docs/modules.html" class="doc-link">
<span class="doc-icon">📦</span>
<div class="doc-info"><h4>All Modules</h4><p>Krystal, Sapphire, Emerald, Jade, Pixieglow, Ruby</p></div>
</a>
<a href="docs/fewshot-priming.html" class="doc-link">
<span class="doc-icon">🎯</span>
<div class="doc-info"><h4>Few-Shot Priming Guide</h4><p>Guide LLM behavior with example conversations</p></div>
</a>
<a href="https://github.com/protocol-luna/.github/tree/main/state-machines" class="doc-link">
<span class="doc-icon">📐</span>
<div class="doc-info"><h4>State Machines</h4><p>24 Mermaid diagrams covering the entire codebase</p></div>
</a>
<a href="https://huggingface.co/fox3000foxy/Luna-Protocol-1.5B-Discord-Dialogues-200k-instruct" class="doc-link">
<span class="doc-icon">🤗</span>
<div class="doc-info"><h4>Fine-Tuned Model</h4><p>Luna-Protocol-1.5B on HuggingFace (200k-instruct)</p></div>
</a>
<a href="https://huggingface.co/datasets/mookiezi/Discord-Dialogues" class="doc-link">
<span class="doc-icon">📊</span>
<div class="doc-info"><h4>Dataset</h4><p>7.3M exchanges, 17M turns, 140M words</p></div>
</a>
<a href="https://github.com/protocol-luna" class="doc-link">
<span class="doc-icon">📦</span>
<div class="doc-info"><h4>All Repositories</h4><p>GitHub organization overview</p></div>
</a>
</div>
</div>
</section>
<footer>
<div class="container">
<p>Protocol Luna -- <a href="https://github.com/protocol-luna">GitHub</a> · <a href="https://fox3000foxy.com">fox3000foxy.com</a></p>
<p style="margin-top:8px; font-size:0.8rem;">Built with local LLMs</p>
</div>
</footer>
<div id="diagram-overlay" onclick="closeDiagram()" style="display:none;position:fixed;inset:0;z-index:999;background:rgba(0,0,0,0.85);backdrop-filter:blur(8px);justify-content:center;align-items:center;padding:40px;cursor:zoom-out;">
<button onclick="event.stopPropagation();closeDiagram()" style="position:absolute;top:20px;right:28px;z-index:10;width:36px;height:36px;border-radius:50%;border:none;background:rgba(255,255,255,0.15);color:#fff;font-size:1.3rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s;" onmouseover="this.style.background='rgba(255,255,255,0.3)'" onmouseout="this.style.background='rgba(255,255,255,0.15)'">✕</button>
<img id="diagram-overlay-img" src="" alt="Diagram" style="max-width:100%;max-height:100%;border-radius:12px;box-shadow:0 20px 60px rgba(0,0,0,0.5);">
</div>
<script>
(function initStars() {
var container = document.getElementById('stars');
for (var i = 0; i < 120; i++) {
var star = document.createElement('div');
star.className = 'star';
star.style.left = Math.random() * 100 + '%';
star.style.top = Math.random() * 100 + '%';
star.style.setProperty('--duration', (2 + Math.random() * 4) + 's');
star.style.animationDelay = Math.random() * 4 + 's';
star.style.width = star.style.height = (1 + Math.random() * 2) + 'px';
container.appendChild(star);
}
})();
function openDiagram(src) {
var overlay = document.getElementById('diagram-overlay');
var img = document.getElementById('diagram-overlay-img');
img.src = src;
overlay.style.display = 'flex';
}
function closeDiagram() {
document.getElementById('diagram-overlay').style.display = 'none';
}
document.addEventListener('keydown', function(e) {
if (e.key === 'Escape') closeDiagram();
});
</script>
</body>
</html>