-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·334 lines (295 loc) · 15 KB
/
index.html
File metadata and controls
executable file
·334 lines (295 loc) · 15 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>🔮 Oracle1 Index — SuperInstance Ecosystem</title>
<style>
:root {
--bg: #0d1117; --surface: #161b22; --border: #30363d;
--text: #e6edf3; --text2: #8b949e; --accent: #58a6ff;
--green: #3fb950; --purple: #a371f7; --orange: #d29922;
--red: #f85149; --pink: #f778ba;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--bg); color: var(--text); }
.container { max-width: 1400px; margin: 0 auto; padding: 20px; }
/* Header */
header { text-align: center; padding: 30px 0 20px; }
header h1 { font-size: 2.2em; background: linear-gradient(135deg, var(--accent), var(--purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
header p { color: var(--text2); margin-top: 5px; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; margin-right: 5px; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
/* Stats bar */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 20px 0; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 15px 12px; text-align: center; transition: border-color 0.2s; }
.stat:hover { border-color: var(--accent); }
.stat .num { font-size: 1.8em; font-weight: 700; }
.stat .label { color: var(--text2); font-size: 0.8em; margin-top: 2px; }
.stat .sub { font-size: 0.7em; color: var(--text2); margin-top: 3px; }
.stat-accent .num { color: var(--accent); }
.stat-green .num { color: var(--green); }
.stat-purple .num { color: var(--purple); }
.stat-orange .num { color: var(--orange); }
/* Charts row */
.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin: 20px 0; }
.chart-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 20px; }
.chart-card h3 { font-size: 0.9em; color: var(--text2); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.bar-chart { display: flex; flex-direction: column; gap: 6px; }
.bar-row { display: flex; align-items: center; gap: 8px; }
.bar-label { width: 100px; font-size: 0.8em; color: var(--text2); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { flex: 1; height: 18px; background: #21262d; border-radius: 9px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 9px; transition: width 0.5s ease; display: flex; align-items: center; justify-content: flex-end; padding-right: 6px; font-size: 0.7em; color: var(--text); min-width: 30px; }
/* Search */
.search-box { display: flex; gap: 10px; margin: 15px 0; }
.search-box input { flex: 1; padding: 12px 18px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 1em; }
.search-box input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(88,166,255,0.1); }
/* Filters */
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 15px; }
.filter-btn { padding: 5px 12px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); color: var(--text2); cursor: pointer; font-size: 0.8em; transition: all 0.15s; }
.filter-btn:hover { border-color: var(--accent); color: var(--text); }
.filter-btn.active { background: var(--accent); color: white; border-color: var(--accent); }
/* Fleet status */
.fleet { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 20px; margin: 20px 0; }
.fleet h3 { font-size: 0.9em; color: var(--text2); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.fleet-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.vessel { background: #21262d; border-radius: 8px; padding: 12px; border-left: 3px solid var(--accent); }
.vessel-name { font-weight: 600; margin-bottom: 4px; }
.vessel-type { font-size: 0.75em; color: var(--text2); }
.vessel-stat { font-size: 0.8em; color: var(--green); margin-top: 6px; }
/* Repo grid */
#count { color: var(--text2); margin: 8px 0; font-size: 0.9em; }
.repo-grid { display: grid; gap: 8px; }
.repo-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 12px 15px; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; transition: border-color 0.15s; }
.repo-card:hover { border-color: var(--accent); }
.repo-name { font-weight: 600; color: var(--accent); text-decoration: none; font-size: 0.95em; }
.repo-name:hover { text-decoration: underline; }
.repo-desc { color: var(--text2); font-size: 0.85em; margin-top: 2px; }
.badge { display: inline-block; padding: 1px 7px; border-radius: 10px; font-size: 0.7em; margin-left: 5px; }
.badge-lang { background: #21262d; color: var(--text2); }
.badge-cat { background: #1a2a3a; color: var(--accent); }
.repo-origin { font-size: 0.7em; padding: 2px 7px; border-radius: 10px; }
.origin-orig { background: #1a3a2a; color: var(--green); }
.origin-fork { background: #2a1a3a; color: var(--purple); }
.repo-date { font-size: 0.75em; color: var(--text2); white-space: nowrap; }
/* Recent activity */
.activity { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 20px; margin: 20px 0; }
.activity h3 { font-size: 0.9em; color: var(--text2); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.activity-list { display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow-y: auto; }
.activity-item { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid #21262d; font-size: 0.85em; }
.activity-item:last-child { border-bottom: none; }
.activity-date { color: var(--text2); font-size: 0.8em; min-width: 80px; }
.activity-name { color: var(--accent); text-decoration: none; }
.activity-name:hover { text-decoration: underline; }
.activity-lang { font-size: 0.75em; padding: 1px 6px; border-radius: 8px; background: #21262d; color: var(--text2); }
/* Footer */
footer { text-align: center; padding: 30px 0; color: #484f58; font-size: 0.8em; }
footer a { color: var(--accent); text-decoration: none; }
/* Responsive */
@media (max-width: 768px) {
.charts { grid-template-columns: 1fr; }
.stats { grid-template-columns: repeat(3, 1fr); }
.fleet-grid { grid-template-columns: 1fr; }
.repo-card { grid-template-columns: 1fr; }
.repo-date { display: none; }
}
/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #30363d; border-radius: 4px; }
</style>
</head>
<body>
<div class="container">
<header>
<h1>🔮 Oracle1 Index</h1>
<p><span class="live-dot"></span>Live dashboard for the SuperInstance + Lucineer ecosystem</p>
<p id="lastUpdated" style="font-size:0.8em;color:#484f58;margin-top:5px;"></p>
</header>
<!-- Stats -->
<div class="stats" id="statsBar"></div>
<!-- Charts -->
<div class="charts">
<div class="chart-card">
<h3>📊 Languages</h3>
<div class="bar-chart" id="langChart"></div>
</div>
<div class="chart-card">
<h3>📁 Categories</h3>
<div class="bar-chart" id="catChart"></div>
</div>
</div>
<!-- Fleet Status -->
<div class="fleet">
<h3>⚓ Fleet Status</h3>
<div class="fleet-grid" id="fleetGrid"></div>
</div>
<!-- Recent Activity -->
<div class="activity">
<h3>🕐 Recent Updates</h3>
<div class="activity-list" id="activityList"></div>
</div>
<!-- Search -->
<div class="search-box">
<input type="text" id="search" placeholder="Search repos by name, description, language..." autocomplete="off">
</div>
<div class="filters" id="filters"></div>
<div id="count"></div>
<div class="repo-grid" id="repos"></div>
<footer>
Indexed by Oracle1 🔮 • Auto-updated every 15 minutes via CI/CD<br>
<a href="https://github.com/SuperInstance/oracle1-index">Source</a> •
<a href="https://github.com/SuperInstance">SuperInstance</a> •
<a href="https://github.com/Lucineer">Lucineer</a>
</footer>
</div>
<script>
let allRepos = [], categories = [], langStats = [], recentActivity = [];
let activeFilter = 'all';
const FLEET = [
{ name: 'Oracle1', emoji: '🔮', type: 'Lighthouse', status: 'active', tests: '2,730+', repos: '700+', lang: 'Go/Python/C/Rust' },
{ name: 'JetsonClaw1', emoji: '⚡', type: 'Vessel', status: 'active', tests: '51+', repos: '8+', lang: 'C/C++/CUDA/Python' },
{ name: 'Babel', emoji: '🌐', type: 'Scout', status: 'deploying', tests: '120+', repos: '1', lang: '80+ languages' },
];
const CAT_COLORS = {
'flux-runtime': '#58a6ff', 'flux-toolchain': '#79c0ff', 'flux-analysis': '#a5d6ff',
'flux-protocol': '#d2a8ff', 'flux-research': '#f778ba', 'greenhorn': '#3fb950',
'fleet': '#00ADD8', 'i2i': '#d29922', 'git-agents': '#f85149',
'cocapn': '#ff7b72', 'cuda': '#00599C', 'equipment': '#7ee787',
'marine': '#79c0ff', 'craftmind': '#d2a8ff', 'ai-ml': '#f0883e',
'infrastructure': '#8b949e', 'consensus': '#a371f7',
};
async function load() {
const [reposRes, catsRes, langRes, recentRes] = await Promise.all([
fetch('search-index.json').then(r => r.json()).catch(() => []),
fetch('categories.json').then(r => r.json()).catch(() => []),
fetch('language-stats.json').then(r => r.json()).catch(() => []),
fetch('recent-activity.json').then(r => r.json()).catch(() => []),
]);
allRepos = reposRes;
categories = catsRes;
langStats = langRes;
recentActivity = recentRes;
renderStats();
renderLangChart();
renderCatChart();
renderFleet();
renderActivity();
renderFilters();
document.getElementById('search').oninput = render;
render();
// Last updated
try {
const lu = await fetch('last-updated.txt').then(r => r.text()).catch(() => '');
if (lu) document.getElementById('lastUpdated').textContent = 'Updated: ' + lu.trim();
} catch(e) {}
}
function renderStats() {
const total = allRepos.length;
const orig = allRepos.filter(r => !r.fork).length;
const forked = total - orig;
const langs = [...new Set(allRepos.map(r => r.language).filter(Boolean))].length;
const cats = [...new Set(allRepos.map(r => r.category).filter(Boolean))].length;
const fluxRepos = allRepos.filter(r => r.category && r.category.startsWith('flux')).length;
document.getElementById('statsBar').innerHTML = `
<div class="stat stat-accent"><div class="num">${total}</div><div class="label">Total Repos</div></div>
<div class="stat stat-green"><div class="num">${orig}</div><div class="label">Original</div></div>
<div class="stat stat-purple"><div class="num">${forked}</div><div class="label">Forked</div></div>
<div class="stat stat-orange"><div class="num">${langs}</div><div class="label">Languages</div></div>
<div class="stat"><div class="num">${cats}</div><div class="label">Categories</div></div>
<div class="stat"><div class="num">${fluxRepos}</div><div class="label">FLUX Repos</div></div>
<div class="stat stat-green"><div class="num">2,730+</div><div class="label">Tests</div></div>
<div class="stat"><div class="num">25+</div><div class="label">New Repos</div></div>
`;
}
function renderLangChart() {
const max = langStats.length > 0 ? langStats[0].count : 1;
document.getElementById('langChart').innerHTML = langStats.slice(0, 8).map(l => `
<div class="bar-row">
<span class="bar-label">${l.language}</span>
<div class="bar-track">
<div class="bar-fill" style="width:${(l.count/max*100).toFixed(0)}%;background:${l.color}">${l.count}</div>
</div>
</div>
`).join('');
}
function renderCatChart() {
const max = categories.length > 0 ? categories[0].count : 1;
document.getElementById('catChart').innerHTML = categories.slice(0, 10).map(c => `
<div class="bar-row">
<span class="bar-label">${c.title}</span>
<div class="bar-track">
<div class="bar-fill" style="width:${(c.count/max*100).toFixed(0)}%;background:${CAT_COLORS[c.key] || '#58a6ff'}">${c.count}</div>
</div>
</div>
`).join('');
}
function renderFleet() {
document.getElementById('fleetGrid').innerHTML = FLEET.map(v => `
<div class="vessel" style="border-left-color: ${v.status === 'active' ? 'var(--green)' : 'var(--orange)'}">
<div class="vessel-name">${v.emoji} ${v.name}</div>
<div class="vessel-type">${v.type} • ${v.status === 'active' ? '🟢 Online' : '🟡 Deploying'}</div>
<div class="vessel-stat">${v.tests} tests • ${v.repos} repos</div>
<div style="font-size:0.75em;color:var(--text2);margin-top:3px">${v.lang}</div>
</div>
`).join('');
}
function renderActivity() {
document.getElementById('activityList').innerHTML = recentActivity.map(r => `
<div class="activity-item">
<span class="activity-date">${r.updated}</span>
<a class="activity-name" href="${r.url}" target="_blank">${r.owner}/${r.name}</a>
${r.language ? `<span class="activity-lang">${r.language}</span>` : ''}
<span style="color:var(--text2);font-size:0.8em;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap">${(r.description || '').substring(0, 60)}</span>
</div>
`).join('');
}
function renderFilters() {
const el = document.getElementById('filters');
el.innerHTML = '<button class="filter-btn active" data-cat="all">All</button>';
categories.forEach(c => {
el.innerHTML += `<button class="filter-btn" data-cat="${c.key}">${c.title} (${c.count})</button>`;
});
el.querySelectorAll('.filter-btn').forEach(btn => {
btn.onclick = () => {
el.querySelectorAll('.filter-btn').forEach(b => b.classList.remove('active'));
btn.classList.add('active');
activeFilter = btn.dataset.cat;
render();
};
});
}
function render() {
const q = document.getElementById('search').value.toLowerCase();
let filtered = allRepos;
if (q) {
filtered = filtered.filter(r =>
r.name.toLowerCase().includes(q) ||
(r.description || '').toLowerCase().includes(q) ||
(r.language || '').toLowerCase().includes(q) ||
(r.category || '').toLowerCase().includes(q)
);
}
if (activeFilter !== 'all') {
filtered = filtered.filter(r => r.category === activeFilter);
}
document.getElementById('count').textContent = `Showing ${filtered.length} of ${allRepos.length} repos`;
const el = document.getElementById('repos');
const shown = filtered.slice(0, 200);
el.innerHTML = shown.map(r => `
<div class="repo-card">
<span class="repo-origin ${r.fork ? 'origin-fork' : 'origin-orig'}">${r.fork ? '🍴 fork' : '⭐ orig'}</span>
<div>
<a class="repo-name" href="${r.url}" target="_blank">${r.owner}/${r.name}</a>
${r.language ? `<span class="badge badge-lang">${r.language}</span>` : ''}
${r.category ? `<span class="badge badge-cat">${r.category}</span>` : ''}
<div class="repo-desc">${r.description || ''}</div>
</div>
<span class="repo-date">${r.updated || ''}</span>
</div>
`).join('');
}
load();
</script>
</body>
</html>