declarative relay deployment on hetzner relay-eval.waow.tech
atproto relay
14
fork

Configure Feed

Select the types of activity you want to include in your feed.

relay-eval: rank relays by coverage, not operator group

sort purely by unique_dids descending. operator symbols and run-by
column already convey who runs what — positional grouping was
distorting the leaderboard.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

zzstoatzz 97486213 1139099b

+19 -20
+19 -20
relay-eval/src/static/index.html
··· 249 249 h += `<th class="num">coverage</th><th class="num">missed</th><th></th>`; 250 250 h += `</tr></thead><tbody>`; 251 251 252 - for (const g of groups(data.stats)) { 253 - for (const s of g.relays) { 254 - const d = rd[s.host] || { coverage_gap: 0, unresolvable: 0, deactivated: 0 }; 255 - const missed = d.coverage_gap + d.unresolvable + d.deactivated; 256 - const o = op(s.host); 257 - const byLink = o.url 258 - ? `<a href="${o.url}" target="_blank">${o.name}</a>` 259 - : o.name; 260 - const isOutlier = outliers.has(s.host); 261 - const pctAbove = isOutlier ? Math.round((s.events / median - 1) * 100) : 0; 262 - h += `<tr${s.events === 0 ? ' class="dimmed"' : ''}>`; 263 - h += `<td>${rn(s.host)}</td>`; 264 - h += `<td class="run-by">${byLink}</td>`; 265 - h += `<td class="num">${s.events.toLocaleString()}${isOutlier ? `<span class="outlier" title="${pctAbove}% above median \u2014 likely replaying backlog after a restart">\u26a0</span>` : ''}</td>`; 266 - h += `<td class="num">${s.unique_dids.toLocaleString()}</td>`; 267 - h += `<td class="num">${pct(s.unique_dids, union)}</td>`; 268 - h += `<td class="num">${missed > 0 ? missed.toLocaleString() : '\u2014'}</td>`; 269 - h += `<td>${bar(s.unique_dids, union)}</td>`; 270 - h += `</tr>`; 271 - } 252 + const ranked = [...data.stats].sort((a, b) => b.unique_dids - a.unique_dids); 253 + for (const s of ranked) { 254 + const d = rd[s.host] || { coverage_gap: 0, unresolvable: 0, deactivated: 0 }; 255 + const missed = d.coverage_gap + d.unresolvable + d.deactivated; 256 + const o = op(s.host); 257 + const byLink = o.url 258 + ? `<a href="${o.url}" target="_blank">${o.name}</a>` 259 + : o.name; 260 + const isOutlier = outliers.has(s.host); 261 + const pctAbove = isOutlier ? Math.round((s.events / median - 1) * 100) : 0; 262 + h += `<tr${s.events === 0 ? ' class="dimmed"' : ''}>`; 263 + h += `<td>${rn(s.host)}</td>`; 264 + h += `<td class="run-by">${byLink}</td>`; 265 + h += `<td class="num">${s.events.toLocaleString()}${isOutlier ? `<span class="outlier" title="${pctAbove}% above median \u2014 likely replaying backlog after a restart">\u26a0</span>` : ''}</td>`; 266 + h += `<td class="num">${s.unique_dids.toLocaleString()}</td>`; 267 + h += `<td class="num">${pct(s.unique_dids, union)}</td>`; 268 + h += `<td class="num">${missed > 0 ? missed.toLocaleString() : '\u2014'}</td>`; 269 + h += `<td>${bar(s.unique_dids, union)}</td>`; 270 + h += `</tr>`; 272 271 } 273 272 h += `</tbody></table>`; 274 273