Spin Leaderboard
Put one laptop or tablet running Chrome or Edge in front of the class, connect each rider’s Bluetooth heart rate strap, and show who is working hardest. Riders are ranked by percentage of their own max heart rate, so the board is fair across ages and fitness levels. Used this way, everything stays on this device: nothing is uploaded or sent anywhere.
Riders can also bring their own phone: Android with Chrome or Edge, or an iPhone running the free Bluefy browser. Add yourself as a rider with your strap, then press Join room. The studio screen joins the same room with no strap, and every device in the room shows the same board. Joining shares your name, heart rate and percentage of max with the other devices in the room, and nothing else.
This browser cannot connect to Bluetooth heart rate straps. Use Chrome or Edge on a laptop, Chromebook or Android device. On iPhone and iPad, Safari and the other App Store browsers lack Web Bluetooth, but the free Bluefy browser can connect a strap: open this page in Bluefy instead. Otherwise, ask the instructor to add your strap on the studio device. You can still join the room here to watch the board.
Leaderboard
| Rank | Rider | BPM | % max | Zone | Effort | Status |
|---|
No riders on the board yet. Add a rider and give them an age or a max heart rate.
In the room
Riders
Riders are saved in this browser, so a weekly class only needs each strap reconnected. A saved rider’s strap is recognised when it is chosen again.
How it works
- Add rider opens the browser’s Bluetooth chooser. Pick one strap each time; the browser asks for every strap separately.
- Most straps accept only one Bluetooth connection. A strap already paired with a watch, phone app or bike computer will not appear or will not connect, so disconnect it there first.
- Max heart rate is the explicit value if you enter one, otherwise estimated as 220 minus age. The board shows a rider once one of them is set.
- A reading older than 5 seconds is shown as no signal and drops below live riders. A strap that disconnects is retried automatically for about two minutes; after that, press Reconnect.
- Start session resets the effort score: zone number × minutes, so a minute in zone 5 earns 5 points. It also asks the device to keep the screen on until you stop the session or leave the tab.
- Studio display enlarges the board for a TV or projector and tries to go full screen, keeping the session buttons on screen. Press Exit studio display or Escape to leave full screen.
- Join room connects this device to the class’s shared room. On a rider’s own phone, add yourself as the only rider first; on the studio screen, join with no riders and press Studio display. Each device sends its riders’ readings to the others once a second and builds the board itself. A device that goes quiet for 30 seconds, or leaves, drops off the board. Keep the page open and the screen on while riding; Start session keeps it awake.
- Devices in the room connect directly to each other over WebRTC, so every phone needs to be on the studio Wi‑Fi with the studio screen. Mobile data (carrier NAT) and guest Wi‑Fi that isolates its clients often cannot make a direct connection, and those phones will not appear.
-
To find each other, devices exchange encrypted connection details through six public Nostr relays
(
nos.lol,cdn.satellite.earth,nostr.stakey.net,relay.hackshed.dev,relay.piazza.today,relay.nostr.dev.br) and Google’s STUN servers, which tell a device its own network address. No heart rate reading passes through them, and this site runs no server. - Only after you press Join room does anything leave this device: each rider’s name, current heart rate and percentage of max, sent to the other devices in the room. Ages and max heart rates are never sent. The room is open to anyone who opens this page and joins, so use a name you are happy for the class to see. Without Join room, readings, names and max heart rates never leave this device. The roster is kept in this browser’s local storage until you remove the riders or clear site data.
- Studio receiver: open this page with
?receiver=<port>(for example?receiver=8765) on a computer running a heart rate receiver program, and the page takes readings from it overws://localhost, retrying every few seconds until it answers. It only ever talks to the same computer. A receiver that reads ANT+ sees every strap in range, including straps already paired with a watch or bike computer; a strap it has not seen before is added as a new rider, so remove any that are not in the class. A removed strap is ignored from then on, in this browser, until you press Stop ignoring removed straps. The receiver display must run Chrome, Edge or Firefox; Chrome may ask once for permission to reach devices on the local network.
Zones
- Z1 Easy Below 60% of max
- Z2 Steady 60–69% of max
- Z3 Tempo 70–79% of max
- Z4 Hard 80–89% of max
- Z5 Max 90% and above of max