-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
530 lines (489 loc) · 36.8 KB
/
Copy pathindex.html
File metadata and controls
530 lines (489 loc) · 36.8 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Eeman1113 | Projects</title>
<script src="https://cdn.tailwindcss.com"></script>
<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@300;400;500;600&display=swap" rel="stylesheet">
<script>
tailwind.config = {
theme: {
extend: {
fontFamily: { sans: ['Inter', 'sans-serif'] },
colors: {
black: '#050505',
neutral: { 800: '#262626', 900: '#171717', 950: '#0a0a0a' }
}
}
}
}
</script>
<style>
/* ── Color tokens ── */
:root {
--bg: #050505;
--bg-card: rgba(23,23,23,0.3);
--border: #262626;
--border-hover: #52525b;
--text: #ffffff;
--text-muted: #a3a3a3;
--text-faint: #525252;
--text-subtle: #737373;
--input-bg: rgba(23,23,23,0.5);
--scrollbar: #262626;
--scrollbar-h: #404040;
--footer-border:#171717;
}
@media (prefers-color-scheme: light) {
:root {
--bg: #f8f8f7;
--bg-card: rgba(255,255,255,0.8);
--border: #e2e2e0;
--border-hover: #a1a1aa;
--text: #0a0a0a;
--text-muted: #52525b;
--text-faint: #a1a1aa;
--text-subtle: #71717a;
--input-bg: rgba(255,255,255,0.7);
--scrollbar: #d4d4d4;
--scrollbar-h: #a3a3a3;
--footer-border:#e2e2e0;
}
/* Boost tag opacity slightly for light bg legibility */
.tag-multiagent { background: rgba(217,70,239,0.1); border-color: rgba(217,70,239,0.4); color: #a21caf; }
.tag-agentic { background: rgba(139,92,246,0.1); border-color: rgba(139,92,246,0.4); color: #7c3aed; }
.tag-rag { background: rgba(168,85,247,0.1); border-color: rgba(168,85,247,0.4); color: #9333ea; }
.tag-llm { background: rgba(99,102,241,0.1); border-color: rgba(99,102,241,0.4); color: #4f46e5; }
.tag-genai { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.4); color: #059669; }
.tag-rl { background: rgba(249,115,22,0.1); border-color: rgba(249,115,22,0.4); color: #ea580c; }
.tag-deeplearn { background: rgba(236,72,153,0.1); border-color: rgba(236,72,153,0.4); color: #db2777; }
.tag-cv { background: rgba(244,63,94,0.1); border-color: rgba(244,63,94,0.4); color: #e11d48; }
.tag-nlp { background: rgba(202,138,4,0.1); border-color: rgba(202,138,4,0.4); color: #a16207; }
.tag-ml { background: rgba(6,182,212,0.1); border-color: rgba(6,182,212,0.4); color: #0e7490; }
.tag-automation { background: rgba(20,184,166,0.1); border-color: rgba(20,184,166,0.4); color: #0f766e; }
.tag-research { background: rgba(100,116,139,0.1); border-color: rgba(100,116,139,0.4);color: #475569; }
.tag-audio { background: rgba(202,138,4,0.1); border-color: rgba(202,138,4,0.4); color: #92400e; }
.tag-finance { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.4); color: #065f46; }
.tag-gamedev { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.4); color: #b45309; }
.tag-webdev { background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.4); color: #1d4ed8; }
.tag-data { background: rgba(14,165,233,0.1); border-color: rgba(14,165,233,0.4); color: #0369a1; }
.tag-rust { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.4); color: #dc2626; }
}
body {
font-family: 'Inter', sans-serif;
background-color: var(--bg);
color: var(--text);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--scrollbar); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-h); }
.project-card {
transition: all 0.3s ease;
background: var(--bg-card) !important;
border-color: var(--border) !important;
}
.project-card:hover {
transform: translateY(-2px);
border-color: var(--border-hover) !important;
box-shadow: 0 10px 30px -10px rgba(0,0,0,0.08);
}
.card-title { color: var(--text); }
.card-desc { color: var(--text-muted); }
.card-footer { border-color: var(--border) !important; color: var(--text-subtle); }
.card-icon { color: var(--text-faint); }
.card-icon-hover { color: var(--text); }
/* ── Tag colors ── */
.tag-multiagent { background: rgba(217,70,239,0.15); border-color: rgba(217,70,239,0.35); color: #f0abfc; }
.tag-agentic { background: rgba(139,92,246,0.15); border-color: rgba(139,92,246,0.35); color: #c4b5fd; }
.tag-rag { background: rgba(168,85,247,0.15); border-color: rgba(168,85,247,0.35); color: #d8b4fe; }
.tag-llm { background: rgba(99,102,241,0.15); border-color: rgba(99,102,241,0.35); color: #a5b4fc; }
.tag-genai { background: rgba(16,185,129,0.15); border-color: rgba(16,185,129,0.35); color: #6ee7b7; }
.tag-rl { background: rgba(249,115,22,0.15); border-color: rgba(249,115,22,0.35); color: #fdba74; }
.tag-deeplearn { background: rgba(236,72,153,0.15); border-color: rgba(236,72,153,0.35); color: #f9a8d4; }
.tag-cv { background: rgba(244,63,94,0.15); border-color: rgba(244,63,94,0.35); color: #fda4af; }
.tag-nlp { background: rgba(234,179,8,0.15); border-color: rgba(234,179,8,0.35); color: #fde047; }
.tag-ml { background: rgba(6,182,212,0.15); border-color: rgba(6,182,212,0.35); color: #67e8f9; }
.tag-automation { background: rgba(20,184,166,0.15); border-color: rgba(20,184,166,0.35); color: #5eead4; }
.tag-research { background: rgba(100,116,139,0.15);border-color: rgba(100,116,139,0.35);color: #cbd5e1; }
.tag-audio { background: rgba(251,191,36,0.15); border-color: rgba(251,191,36,0.35); color: #fde68a; }
.tag-finance { background: rgba(52,211,153,0.15); border-color: rgba(52,211,153,0.35); color: #a7f3d0; }
.tag-gamedev { background: rgba(245,158,11,0.15); border-color: rgba(245,158,11,0.35); color: #fcd34d; }
.tag-webdev { background: rgba(59,130,246,0.15); border-color: rgba(59,130,246,0.35); color: #93c5fd; }
.tag-data { background: rgba(14,165,233,0.15); border-color: rgba(14,165,233,0.35); color: #7dd3fc; }
.tag-rust { background: rgba(239,68,68,0.15); border-color: rgba(239,68,68,0.35); color: #fca5a5; }
/* ── Filter buttons ── */
.filter-btn {
background: transparent;
border: 1px solid var(--border);
color: var(--text-subtle);
border-radius: 0.5rem;
padding: 0.3rem 0.7rem;
font-size: 0.7rem;
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
font-family: 'Inter', sans-serif;
white-space: nowrap;
}
.filter-btn.active {
background: var(--text);
border-color: var(--text);
color: var(--bg);
}
.filter-btn:hover:not(.active) {
background: color-mix(in srgb, var(--text) 6%, transparent);
border-color: var(--border-hover);
color: var(--text-muted);
}
@keyframes fadeInUp {
from { opacity: 0; transform: translateY(6px); }
to { opacity: 1; transform: translateY(0); }
}
.stat-pill { animation: fadeInUp 0.5s ease both; }
</style>
</head>
<body class="min-h-screen p-6 md:p-12 lg:p-24 selection:bg-white selection:text-black">
<header class="max-w-7xl mx-auto mb-12">
<div class="flex flex-col md:flex-row md:items-end justify-between gap-6">
<div>
<h1 class="text-4xl md:text-5xl font-semibold tracking-tight mb-3" style="color:var(--text);">Eeman1113.</h1>
<p class="text-lg max-w-2xl font-light leading-relaxed" style="color:var(--text-muted);">
A comprehensive archive of my software projects, AI experiments, research, and open-source contributions.
</p>
<div class="flex gap-4 mt-6">
<a href="https://github.com/Eeman1113" target="_blank" class="text-sm font-medium transition-colors border-b border-transparent pb-0.5" style="color:var(--text-muted);border-bottom-color:transparent;" onmouseover="this.style.color=getComputedStyle(document.documentElement).getPropertyValue('--text');this.style.borderBottomColor=getComputedStyle(document.documentElement).getPropertyValue('--text')" onmouseout="this.style.color=getComputedStyle(document.documentElement).getPropertyValue('--text-muted');this.style.borderBottomColor='transparent'">
View GitHub Profile ↗
</a>
</div>
</div>
<div class="w-full md:w-auto relative">
<svg class="absolute left-4 top-1/2 transform -translate-y-1/2 w-5 h-5" style="color:var(--text-faint);" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path></svg>
<input type="text" id="searchInput" placeholder="Search repositories..." class="w-full md:w-80 rounded-xl pl-12 pr-4 py-3 text-sm focus:outline-none transition-all" style="background:var(--input-bg);border:1px solid var(--border);color:var(--text);">
</div>
</div>
<!-- Stats bar -->
<div id="statsBar" class="hidden mt-6 flex flex-wrap gap-4 text-xs" style="color:var(--text-subtle);">
<span id="statTotal" class="stat-pill"></span>
<span id="statAgentic" class="stat-pill" style="color:#c084fc;"></span>
<span id="statLLM" class="stat-pill" style="color:#818cf8;"></span>
</div>
<!-- Filter chips -->
<div id="filterRow" class="hidden mt-4 flex flex-wrap gap-2"></div>
</header>
<main class="max-w-7xl mx-auto">
<div id="loading" class="flex flex-col items-center justify-center py-20 space-y-4" style="color:var(--text-subtle);">
<svg class="animate-spin h-8 w-8" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" style="color:var(--border-hover);">
<circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
<path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
</svg>
<p class="text-sm animate-pulse">Syncing with GitHub Workspace...</p>
</div>
<div id="projectGrid" class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5 hidden"></div>
<div id="noResults" class="hidden text-center py-20" style="color:var(--text-subtle);">
<p class="text-lg">No projects found matching your search.</p>
</div>
</main>
<footer class="max-w-7xl mx-auto mt-24 pt-8 text-sm flex justify-between items-center" style="border-top:1px solid var(--footer-border);color:var(--text-faint);">
<p>© 2026 Eeman1113. All rights reserved.</p>
<p>Live synchronized via GitHub API</p>
</footer>
<script>
// ─────────────────────────────────────────────────────────────────────────────
// ULTRA-SMART TAGGER v2
// Priority-weighted, AI-domain-aware. Tags are objects: {id, label, cls}.
// ─────────────────────────────────────────────────────────────────────────────
// Lucide icon SVGs for tags (14x14, stroke-based, inline)
const ICONS = {
'Multi-Agent': `<svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="18" cy="5" r="3"/><circle cx="6" cy="12" r="3"/><circle cx="18" cy="19" r="3"/><line x1="8.59" y1="13.51" x2="15.42" y2="17.49"/><line x1="15.41" y1="6.51" x2="8.59" y2="10.49"/></svg>`,
'Agentic AI': `<svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"/></svg>`,
'RAG': `<svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>`,
'LLM': `<svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><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>`,
'Generative AI': `<svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" 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>`,
'RL': `<svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="22 12 18 12 15 21 9 3 6 12 2 12"/></svg>`,
'Deep Learning': `<svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="2"/><circle cx="12" cy="5" r="1"/><circle cx="12" cy="19" r="1"/><circle cx="5" cy="12" r="1"/><circle cx="19" cy="12" r="1"/><line x1="12" y1="7" x2="12" y2="10"/><line x1="12" y1="14" x2="12" y2="17"/><line x1="7" y1="12" x2="10" y2="12"/><line x1="14" y1="12" x2="17" y2="12"/></svg>`,
'Computer Vision':`<svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/><circle cx="12" cy="12" r="3"/></svg>`,
'NLP': `<svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/><line x1="9" y1="10" x2="15" y2="10"/></svg>`,
'Machine Learning':`<svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="20" x2="18" y2="10"/><line x1="12" y1="20" x2="12" y2="4"/><line x1="6" y1="20" x2="6" y2="14"/></svg>`,
'Automation': `<svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="3"/><path d="M19.07 4.93a10 10 0 0 1 0 14.14M4.93 4.93a10 10 0 0 0 0 14.14"/></svg>`,
'Research': `<svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><polyline points="14 2 14 8 20 8"/><line x1="16" y1="13" x2="8" y2="13"/><line x1="16" y1="17" x2="8" y2="17"/><polyline points="10 9 9 9 8 9"/></svg>`,
'Audio': `<svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 18V5l12-2v13"/><circle cx="6" cy="18" r="3"/><circle cx="18" cy="16" r="3"/></svg>`,
'Finance': `<svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="1" x2="12" y2="23"/><path d="M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"/></svg>`,
'Game Dev': `<svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="6" width="20" height="12" rx="2"/><line x1="6" y1="12" x2="10" y2="12"/><line x1="8" y1="10" x2="8" y2="14"/><circle cx="16" cy="11" r="1" fill="currentColor"/><circle cx="19" cy="13" r="1" fill="currentColor"/></svg>`,
'Web Dev': `<svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><line x1="2" y1="12" x2="22" y2="12"/><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/></svg>`,
'Data Science': `<svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="22 12 18 12 15 21 9 3 6 12 2 12"/></svg>`,
'Rust': `<svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" 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>`,
};
const TAG_DEFINITIONS = [
// Tier 1 — Specific AI architecture (highest specificity, fires first)
{ id: 'Multi-Agent', label: 'Multi-Agent', cls: 'tag-multiagent', priority: 1,
match: t => /multi.?agent|agent.?swarm|crewai|langgraph|a2a|parallel.?agent|sub.?agent|specialized.?agent/.test(t) },
{ id: 'Agentic AI', label: 'Agentic', cls: 'tag-agentic', priority: 1,
match: t => /\bagent(ic|s)?\b|autonomous.*ai|ai.*autonom|tool.?call|agentic|autonom.*research/.test(t) },
{ id: 'RAG', label: 'RAG', cls: 'tag-rag', priority: 1,
match: t => /\brag\b|retrieval.?augmented|faiss|vector.?store|semantic.*search|rag.?fusion|knowledge.*retrieval/.test(t) },
{ id: 'LLM', label: 'LLM', cls: 'tag-llm', priority: 1,
match: t => /\bllm\b|\bgpt.?[234]?\b|openai|groq|ollama|gemini|llama|mistral|bedrock|text.?davinci|language.?model/.test(t) },
{ id: 'Generative AI', label: 'Generative AI', cls: 'tag-genai', priority: 1,
match: t => /stable.?diffusion|dall.?e|vqgan|clip|diffusion.?model|esrgan|musicgen|generat.*image|generat.*art|generat.*animat/.test(t) },
{ id: 'RL', label: 'Reinforcement Learning', cls: 'tag-rl', priority: 1,
match: t => /reinforcement.?learn|\bq.?learn|\brl\b|dqn|ppo|policy.*gradient|reward.*function/.test(t) },
// Tier 2 — AI/ML techniques
{ id: 'Deep Learning', label: 'Deep Learning', cls: 'tag-deeplearn', priority: 2,
match: t => /deep.?learn|neural.?net|tensorflow|pytorch|keras|lstm|transformer|\bcnn\b|\brnn\b|\bbert\b/.test(t) },
{ id: 'Computer Vision',label: 'Vision', cls: 'tag-cv', priority: 2,
match: t => /computer.?vision|opencv|yolo|object.?detect|image.?classif|face.?detect|hand.?gesture|ocr\b|tesseract/.test(t) },
{ id: 'NLP', label: 'NLP', cls: 'tag-nlp', priority: 2,
match: t => /\bnlp\b|natural.?language|sentiment|text.?classif|speech.?recogn|transcri|voice.?recogn|word2vec|nltk/.test(t) },
{ id: 'Machine Learning',label: 'ML', cls: 'tag-ml', priority: 2,
match: t => /machine.?learn|\bml\b|scikit|sklearn|random.?forest|gradient.?boost|\bsvm\b|k.?nearest|\bknn\b|predict/.test(t) },
// Tier 3 — domains
{ id: 'Automation', label: 'Automation', cls: 'tag-automation', priority: 3,
match: t => /automat|selenium|pyautogui|web.?scrap|scraping|\bbot\b|scheduler|headless/.test(t) },
{ id: 'Research', label: 'Research', cls: 'tag-research', priority: 3,
match: t => /research|academic|ieee|latex|arxiv|survey|literature|citation|scholarly|synthes.*report/.test(t) },
{ id: 'Audio', label: 'Audio', cls: 'tag-audio', priority: 3,
match: t => /musicgen|audio|speech.?to|text.?to.?speech|\btts\b|\bwav\b|lip.?sync|decibel|audio.?process/.test(t) },
{ id: 'Finance', label: 'Finance', cls: 'tag-finance', priority: 3,
match: t => /fintech|invest|trading|forex|stock|market|portfolio|financial|ethereum|crypto|sec.?filing|quant/.test(t) },
{ id: 'Game Dev', label: 'Game Dev', cls: 'tag-gamedev', priority: 3,
match: t => /\bgame\b|pygame|godot|tetris|chess|mario|dino|cellular.?autom|conway|lenia|ant.*sim/.test(t) },
{ id: 'Web Dev', label: 'Web Dev', cls: 'tag-webdev', priority: 3,
match: t => /next\.?js|streamlit|web.?app|frontend|dashboard|api.?server|node\.?js|express|fastapi|flask|react/.test(t) },
{ id: 'Data Science', label: 'Data Science', cls: 'tag-data', priority: 3,
match: t => /data.?sci|data.?analy|pandas|matplotlib|jupyter|visualization|time.?series/.test(t) },
{ id: 'Rust', label: 'Rust', cls: 'tag-rust', priority: 3,
match: (t, lang) => lang === 'Rust' || /\brust\b/.test(t) },
];
function extractTags(name, description, language) {
const text = `${name} ${description}`.toLowerCase().replace(/[-_]/g, ' ');
const matched = TAG_DEFINITIONS.filter(d => d.match(text, language));
matched.sort((a, b) => a.priority - b.priority);
// Dedupe: drop generic ML if Deep Learning already matched
const seen = new Set();
const result = [];
for (const t of matched) {
if (t.id === 'Machine Learning' && seen.has('Deep Learning')) continue;
seen.add(t.id);
result.push(t);
}
return result.slice(0, 3);
}
// ─────────────────────────────────────────────────────────────────────────────
// Language dot colors
// ─────────────────────────────────────────────────────────────────────────────
const languageColors = {
"Python": "#3b82f6", "JavaScript": "#facc15", "TypeScript": "#60a5fa",
"HTML": "#f97316", "CSS": "#93c5fd", "Rust": "#ea580c", "C++": "#db2777",
"Jupyter Notebook": "#fb923c", "Shell": "#4ade80", "GDScript": "#2563eb", "Haskell": "#a855f7"
};
const GITHUB_USERNAME = 'Eeman1113';
let allProjects = [];
let activeFilter = null;
let customData = {};
// ─────────────────────────────────────────────────────────────────────────────
// CSV loader — fetches ./decp.csv and populates customData {repoName: desc}
// Handles quoted fields so commas inside descriptions work correctly.
// ─────────────────────────────────────────────────────────────────────────────
async function loadCustomData() {
try {
const res = await fetch('./decp.csv');
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const text = await res.text();
const lines = text.trim().split('\n');
// Skip header row (Repo Name,Description)
for (let i = 1; i < lines.length; i++) {
const line = lines[i].trim();
if (!line) continue;
// Robust CSV parse: handle optional quoting on each field
let name, desc;
if (line.startsWith('"')) {
// Quoted first field
const m = line.match(/^"((?:[^"]|"")*)"\s*,\s*([\s\S]*)$/);
if (!m) continue;
name = m[1].replace(/""/g, '"');
desc = m[2].startsWith('"')
? m[2].replace(/^"|"$/g, '').replace(/""/g, '"')
: m[2];
} else {
// Unquoted first field — split on first comma only
const comma = line.indexOf(',');
if (comma === -1) continue;
name = line.slice(0, comma).trim();
const rest = line.slice(comma + 1).trim();
desc = rest.startsWith('"')
? rest.replace(/^"|"$/g, '').replace(/""/g, '"')
: rest;
}
if (name && desc) customData[name] = desc;
}
console.log(`Loaded ${Object.keys(customData).length} descriptions from decp.csv`);
} catch (e) {
console.warn('Could not load decp.csv:', e.message);
}
}
// ─────────────────────────────────────────────────────────────────────────────
// Filter + render helpers
// ─────────────────────────────────────────────────────────────────────────────
const FILTER_ORDER = [
'Multi-Agent','Agentic AI','RAG','LLM','Generative AI','RL',
'Deep Learning','Computer Vision','NLP','Machine Learning',
'Automation','Research','Audio','Finance','Game Dev','Web Dev','Data Science','Rust'
];
function renderFilterRow(projects) {
const row = document.getElementById('filterRow');
const counts = {};
for (const p of projects) for (const t of p.tags) counts[t.id] = (counts[t.id] || 0) + 1;
row.innerHTML = '';
const allBtn = document.createElement('button');
allBtn.className = 'filter-btn' + (!activeFilter ? ' active' : '');
allBtn.textContent = 'All';
allBtn.onclick = () => { activeFilter = null; renderFilterRow(allProjects); renderProjects(getFiltered()); };
row.appendChild(allBtn);
for (const tagId of FILTER_ORDER) {
if (!counts[tagId]) continue;
const def = TAG_DEFINITIONS.find(d => d.id === tagId);
if (!def) continue;
const btn = document.createElement('button');
btn.className = 'filter-btn' + (activeFilter === tagId ? ' active' : '');
btn.innerHTML = `<span style="display:inline-flex;align-items:center;gap:4px;">${ICONS[tagId] || ''}${def.label}</span> <span style="opacity:0.45;margin-left:3px;">${counts[tagId]}</span>`;
btn.onclick = () => {
activeFilter = activeFilter === tagId ? null : tagId;
renderFilterRow(allProjects);
renderProjects(getFiltered());
};
row.appendChild(btn);
}
row.classList.remove('hidden');
}
function getFiltered() {
const term = document.getElementById('searchInput').value.toLowerCase();
return allProjects.filter(p => {
const matchesSearch = !term ||
p.name.toLowerCase().includes(term) ||
p.description.toLowerCase().includes(term) ||
(p.language && p.language.toLowerCase().includes(term)) ||
p.tags.some(t => t.label.toLowerCase().includes(term) || t.id.toLowerCase().includes(term));
const matchesFilter = !activeFilter || p.tags.some(t => t.id === activeFilter);
return matchesSearch && matchesFilter;
});
}
// ─────────────────────────────────────────────────────────────────────────────
// GitHub fetch — original, untouched
// ─────────────────────────────────────────────────────────────────────────────
async function fetchGitHubProjects() {
try {
let repos = [];
let page = 1;
let fetchMore = true;
while (fetchMore) {
const response = await fetch(`https://api.github.com/users/${GITHUB_USERNAME}/repos?per_page=100&page=${page}&sort=pushed`);
if (!response.ok) throw new Error('Failed to fetch from GitHub');
const data = await response.json();
repos = repos.concat(data);
if (data.length < 100) fetchMore = false;
else page++;
}
allProjects = repos.map(repo => {
const desc = customData[repo.name] || repo.description || "No description provided.";
return {
id: repo.id,
name: repo.name,
description: desc,
url: repo.html_url,
language: repo.language,
tags: extractTags(repo.name, desc, repo.language),
stars: repo.stargazers_count,
updated_at: new Date(repo.pushed_at || repo.updated_at)
};
});
allProjects.sort((a, b) => b.updated_at - a.updated_at);
const apiRepoNames = new Set(allProjects.map(p => p.name));
for (const [name, desc] of Object.entries(customData)) {
if (!apiRepoNames.has(name)) {
allProjects.push({
id: name, name, description: desc,
url: `https://github.com/${GITHUB_USERNAME}/${name}`,
language: null,
tags: extractTags(name, desc, null),
stars: 0, updated_at: new Date(0)
});
}
}
// Stats
const agenticCount = allProjects.filter(p => p.tags.some(t => t.id === 'Agentic AI' || t.id === 'Multi-Agent')).length;
const llmCount = allProjects.filter(p => p.tags.some(t => t.id === 'LLM')).length;
document.getElementById('statTotal').textContent = `${allProjects.length} repositories`;
document.getElementById('statAgentic').textContent = `${agenticCount} agentic`;
document.getElementById('statLLM').textContent = `${llmCount} LLM`;
document.getElementById('statsBar').classList.remove('hidden');
document.getElementById('loading').classList.add('hidden');
document.getElementById('projectGrid').classList.remove('hidden');
renderFilterRow(allProjects);
renderProjects(allProjects);
} catch (error) {
console.error("Error fetching projects:", error);
document.getElementById('loading').innerHTML = `
<div class="text-red-400 flex flex-col items-center">
<svg class="w-8 h-8 mb-2" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"></path></svg>
<p>Failed to load from GitHub API.</p>
<p class="text-xs text-neutral-500 mt-2">Rate limit might be exceeded.</p>
</div>`;
}
}
// ─────────────────────────────────────────────────────────────────────────────
// Render
// ─────────────────────────────────────────────────────────────────────────────
function renderProjects(projects) {
const grid = document.getElementById('projectGrid');
const noResults = document.getElementById('noResults');
grid.innerHTML = '';
if (projects.length === 0) {
grid.classList.add('hidden');
noResults.classList.remove('hidden');
return;
}
grid.classList.remove('hidden');
noResults.classList.add('hidden');
projects.forEach(project => {
const dotColor = languageColors[project.language] || '#737373';
const card = document.createElement('a');
card.href = project.url;
card.target = '_blank';
card.className = 'project-card flex flex-col justify-between bg-neutral-900/30 border border-neutral-800 rounded-xl p-6 text-left overflow-hidden';
const tagsHTML = project.tags.length > 0
? `<div class="flex flex-wrap gap-1.5 mt-auto mb-1">
${project.tags.map(t => `<span style="display:inline-flex;align-items:center;gap:4px;padding:2px 7px;border-radius:5px;font-size:10px;font-weight:600;letter-spacing:0.05em;text-transform:uppercase;border:1px solid;white-space:nowrap;" class="${t.cls}">${ICONS[t.id] || ''}${t.label}</span>`).join('')}
</div>`
: '<div class="mt-auto"></div>';
card.innerHTML = `
<div class="flex flex-col flex-grow min-w-0">
<div class="flex justify-between items-start mb-3 w-full">
<h3 class="text-base font-medium tracking-tight truncate pr-3" style="color:var(--text);" title="${project.name}">${project.name}</h3>
<svg class="w-4 h-4 shrink-0 mt-0.5" style="color:var(--text-faint);" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg>
</div>
<p class="text-sm leading-relaxed line-clamp-3 mb-4" style="color:var(--text-muted);">${project.description}</p>
${tagsHTML}
</div>
<div class="mt-4 pt-4 flex items-center justify-between text-xs font-medium shrink-0" style="border-top:1px solid var(--border);color:var(--text-subtle);">
<div class="flex items-center gap-2 truncate pr-2">
${project.language ? `<span style="width:10px;height:10px;border-radius:50%;display:inline-block;flex-shrink:0;background:${dotColor};"></span><span class="truncate">${project.language}</span>` : ''}
</div>
${project.stars > 0 ? `<div class="flex items-center gap-1 shrink-0"><svg class="w-3.5 h-3.5" fill="currentColor" viewBox="0 0 20 20"><path d="M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"></path></svg>${project.stars}</div>` : ''}
</div>
`;
grid.appendChild(card);
});
}
// Search
document.getElementById('searchInput').addEventListener('input', () => renderProjects(getFiltered()));
// Boot — load CSV descriptions first, then fetch GitHub
loadCustomData().then(() => fetchGitHubProjects());
</script>
</body>
</html>