From 5e1cb67f9a44c09f81eeb71816cc6499e62a8a66 Mon Sep 17 00:00:00 2001 From: Lethonium Dev Server <38733902+RalfLeonFasler@users.noreply.github.com> Date: Tue, 17 Nov 2026 16:55:23 +0000 Subject: [PATCH] Show live usage on the landing page, and add routes and privacy 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. --- README.md | 26 ++++++++++++- crates/server/src/landing.html | 63 ++++++++++++++++++++++++++++++ crates/server/src/presence.rs | 5 +++ crates/server/src/privacy.html | 71 ++++++++++++++++++++++++++++++++++ crates/server/src/routes.rs | 5 +++ crates/server/src/ws.rs | 18 ++++++++- crates/server/tests/ws.rs | 14 +++++++ 7 files changed, 199 insertions(+), 3 deletions(-) create mode 100644 crates/server/src/privacy.html diff --git a/README.md b/README.md index 62be3fc..856d06a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # OpenBikeNet Server -**Status: early draft, implements protocol v0.** +**Status: implements protocol v0.2. A public instance runs at +[openbikenet.cloud](https://openbikenet.cloud).** This is the reference server for the [OpenBikeNet protocol](https://github.com/OpenBikeNet/protocol): a shared, neutral server that lets riders of different indoor cycling apps see each other on @@ -14,6 +15,29 @@ Ideas and feedback are welcome in its Discussions. A public instance runs at [openbikenet.cloud](https://openbikenet.cloud). Apps connect to `wss://openbikenet.cloud/v0`, and `https://openbikenet.cloud/v0/stats` shows which apps are on. +## Shared routes + +The server serves every route file in `protocol/routes`. A position on a route is a distance in +metres from its start, so the same distance means the same spot in every app. + +| Route ID | Length | Notes | +| --- | --- | --- | +| `velodrome-250` | 250 m | A flat velodrome, the first shared route | +| `herne-hill-450` | 450 m | Herne Hill Velodrome, anticlockwise as raced | +| `herne-hill-450-clockwise` | 450 m | The same track the other way round | + +## Apps + +- [OpenRadlr](https://openradlr.com): the first app on the network and the reference + implementation. +- [VeloPopuli](https://velopopuli.com): has the shared Herne Hill track; the OpenBikeNet link is + in review. + +## Privacy + +`GET /privacy` describes what the public server stores. In short: per-app counts and dates, never +rider names, positions or IP addresses. The landing page shows live usage and the last 30 days. + ## Running it With Docker (nothing else needed): diff --git a/crates/server/src/landing.html b/crates/server/src/landing.html index a9096ac..a45a361 100644 --- a/crates/server/src/landing.html +++ b/crates/server/src/landing.html @@ -44,6 +44,16 @@
A neutral relay that lets riders of different indoor cycling apps meet on the same route.
This is a backend for apps. There is nothing to use here in a browser.
+Loading the live numbers…
+ + + +| WS/v0 | Protocol v0: presence on shared routes |
| App | Versions | Riders / connections | Last 30 days | Last seen |
make up