Skip to content

show 'Requests routed' stat + fix Backbone count semantics#21

Merged
TeoSlayer merged 1 commit into
mainfrom
show-requests-and-throughput
Jun 7, 2026
Merged

show 'Requests routed' stat + fix Backbone count semantics#21
TeoSlayer merged 1 commit into
mainfrom
show-requests-and-throughput

Conversation

@TeoSlayer
Copy link
Copy Markdown
Contributor

Summary

  • Restore the Requests routed tile on the homepage now that the registry's `/api/public-stats` exposes `total_requests` again (paired with rendezvous PR feat(dashboard): expose total_requests + requests_per_sec on /api/public-stats rendezvous#53).
  • Backbone count on `/for/networks` now reads `active_nodes` (currently online), not `total_nodes`. With the rendezvous PR, `total_nodes` means cumulative ever-registered, which would overcount the live Backbone (reaper removes stale entries from Backbone membership).
  • New `fmtCompact()` helper that handles up through 'B' for the request count.

Test plan

  • `npm run build` succeeds (297 pages built, no errors)
  • After rendezvous deploy: hard-refresh pilotprotocol.network, "Requests routed" tile populates from live `total_requests`
  • Backbone count on /for/networks reflects currently-online count, not cumulative

Reverses the temporary removal of the request-count tile now that the
registry's /api/public-stats exposes total_requests again (paired with
the rendezvous PR landing total_requests + requests_per_sec on the
public surface).

- index.astro: pull total_requests from /api/public-stats at build +
  refresh time, render as third "Requests routed" tile.
- index.astro: rename fmtAgentsLong -> fmtCompact (now handles 'B').
- for/networks.astro: Backbone count uses active_nodes (currently
  online) rather than total_nodes — the rendezvous PR redefines
  total_nodes as cumulative ever-registered, which would overcount
  the live Backbone (the reaper removes stale entries from Backbone
  membership, so the live count tracks active_nodes).
@TeoSlayer TeoSlayer force-pushed the show-requests-and-throughput branch from fd415de to f960ab5 Compare June 7, 2026 13:51
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 7, 2026

🚀 Preview deployed to Cloudflare Pages

  • Commit deploy URL: https://ea646f98.pilotprotocol.pages.dev
  • Branch alias: https://show-requests-and-throughput.pilotprotocol.pages.dev (may take ~30s to propagate)
  • Commit: f960ab53c6701785e0de46c8027f1be30fed819a

@TeoSlayer TeoSlayer merged commit 5c4aa20 into main Jun 7, 2026
2 checks passed
@TeoSlayer TeoSlayer deleted the show-requests-and-throughput branch June 7, 2026 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants