Skip to content

Show live usage on the landing page, and add routes and privacy - #8

Open
RalfLeonFasler wants to merge 1 commit into
mainfrom
landing-stats
Open

RalfLeonFasler wants to merge 1 commit into
mainfrom
landing-stats

Conversation

@RalfLeonFasler

Copy link
Copy Markdown
Contributor

The public page says nothing about whether anyone is on the network. This adds the small amount of real signal there is:

  • Live: "1 app connected; no riders on the routes right now", or the rider count when there are riders.
  • Last 30 days: rider-minutes and the number of apps, from the existing /v0/stats.
  • Usage table: app, versions, riders/connections, 30-day minutes and last seen. Apps with no connections and no minutes are left out.
  • Shared routes: the routes this server actually loaded, from Presence, not a hard-coded list.
  • Privacy: GET /privacy says what is stored (per-app counts and dates) and what never is (names, positions, rider values, IPs). Linked from the landing page.

The README gets the same status, routes and apps, and a privacy line.

No new dependency; the live numbers are a small fetch of /v0/stats, and the table is built with textContent. The landing test now checks the route table and the privacy link, and a new test checks /privacy.

This is deliberately modest: it shows what is happening now, not a claim of scale.

The landing page now shows who is on the shared routes right now, the last 30 days of rider-minutes, a per-app usage table and the routes the server serves. Add GET /privacy with what the public server stores and what it never stores. Update the README status, routes and apps.

The landing test checks the route table and the privacy link; a new test checks the privacy page.
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.

1 participant