Workshop · Apps & Dashboards

REPLAY THE STAGE

Build a Cycling Analysis Board Without Writing Code

Build a cycling analysis board, stage by stage, without writing a line of code.

An agent can scaffold the app in minutes. This workshop is about the structure that survives a second user and a second contributor.

Taught by David Granjon, creator of shinyMobile and a lead developer at cynkra, in partnership with cynkra.

$299 Buy now Buy once, watch any time.
Who it is for

Analysts who do not write code, and R users who want to ship a board in an afternoon.

If you have ever waited a week for someone to build you a dashboard, this is the workshop where you build it yourself, block by block. If you are the person who builds them, this is how you ship one before lunch and hand it to someone who can change it without you.

What you build
  • Read a stage's route and rider data into blockr's data blocks
  • Snap transform blocks together to filter, group and shape it, no code written
  • Add a chart block and watch the board draw the stage as the data lands
  • Share the board so a colleague can change a block without asking you

You leave with A working cycling analysis board, built block by block from real stage data, that you can change and share.

Curriculum

The outline is published here when the academy record carries it.

Try it

Two pieces of the board, running on the stage 5 route.

Both run David Granjon's functions from blockr.cycling on the route of stage 5, with the code each block returns shown beside it. Neither uses any rider's data. Nothing is sent anywhere and nothing loads from another site.

Change one block, the board follows

Move a field in any of the four blocks. That block runs again, and so does every block below it.

Interactive board not loading? On the Stage 5, Mâcon to Belleville-en-Beaujolais route, the three-zone power block at its defaults (16, 30 and 50 km/h, 78 kg with the bike) gives 3,559 kJ over 5 h 32 min, an average of 178 W. Change a block upstream and every block below it runs again.

Which force wins?

Pick a section of the route, set the power, the rider and the road, and read how the power splits between gravity, air and rolling.

Interactive calculator not loading? It solves the force-balance block's model for speed on real sections of the Stage 5, Mâcon to Belleville-en-Beaujolais route. The model gives the session 2 slide's numbers: flat at 40 km/h takes 259 W, climbing 7% at 20 km/h takes 294 W, climbing 10% at 15 km/h takes 291 W (58 kg rider, 8 kg bike). On the flat most of the power goes to air; on the climbs, to gravity.

What the board draws

One recorded stage, five views of it.

Stage 5, Mâcon to Belleville-en-Beaujolais, 140 km. Each view is rendered by the workshop's own code.

The stage profile: Stage 5, Mâcon to Belleville-en-Beaujolais, 140 km
The stage profile. The route's elevation, with its categorized climbs.
The race tracker: Stage 5, Mâcon to Belleville-en-Beaujolais, 140 km
The race tracker. The groups on the road, drawn on the route from the recorded race.
The race center: Stage 5, Mâcon to Belleville-en-Beaujolais, 140 km
The race center. The board the workshop ends on: the profile, the groups and the time gaps together.
Rider power: Stage 5, Mâcon to Belleville-en-Beaujolais, 140 km
Rider power. One rider's power along the stage. Simulated data. The rider streams in this chart are generated by the workshop's code from the recorded race. They are not measured power or heart rate.
Rider radar: Stage 5, Mâcon to Belleville-en-Beaujolais, 140 km
Rider radar. Three riders across four measures. Simulated data. The rider streams in this chart are generated by the workshop's code from the recorded race. They are not measured power or heart rate.
From the code

The code you work in, as it is in the workshop files.

The whole board: seven blocks and the links that wire them into the race centerblockr-athlyticz-workshop1/blockr.myrace/app.R, lines 13 to 40
serve(
  new_dock_board(
    blocks = c(
      gpx = new_gpx_read_block(path = file.path(stage_dir, "route.gpx")),
      checkpoints = new_race_checkpoints_block(dir = stage_dir),
      rec = new_race_recording_block(dir = stage_dir),
      riders = new_race_riders_block(dir = stage_dir),
      classifications = new_race_classifications_block(dir = stage_dir),
      news = new_race_commentary_block(dir = stage_dir),
      center = new_race_center_block(
        title = "Stage 5 - M\u00e2con > Belleville-en-Beaujolais - 140 km"
      )
    ),
    links = c(
      new_link(from = "gpx", to = "center", input = "data"),
      new_link(from = "checkpoints", to = "center", input = "checkpoints"),
      new_link(from = "rec", to = "center", input = "race"),
      new_link(from = "riders", to = "center", input = "riders"),
      new_link(
        from = "classifications",
        to = "center",
        input = "classifications"
      ),
      new_link(from = "news", to = "center", input = "commentary")
    ),
    extensions = new_dag_extension()
  )
)
A data block: a reactive path in, state the board can saveblockr-athlyticz-workshop1/blockr.myrace/R/gpx_read_block.R, lines 19 to 28
new_gpx_read_block <- function(path = character(), ...) {
  new_data_block(
    function(id) {
      moduleServer(id, function(input, output, session) {
        r_path <- reactiveVal(path)

        observeEvent(input$file, {
          r_path(input$file$datapath[[1L]])
        })
What a block hands the board: a quoted, reproducible R callblockr-athlyticz-workshop1/blockr.myrace/R/expr-builders.R, lines 9 to 11
make_gpx_read_expr <- function(path) {
  bbquote(blockr.myrace::read_gpx(.(path)), list(path = path))
}
A transform block with one required input and five optional onesblockr-athlyticz-workshop1/blockr.myrace/R/race_center_block.R, lines 47 to 49
  new_transform_block(
    function(id, data, checkpoints = NULL, race = NULL, riders = NULL,
             classifications = NULL, commentary = NULL) {
The curriculum

15 lessons, 2 h 29 min.

  1. 01Understand Why blockr ExistsDavid Granjon explains why cynkra built blockr: only developers can build dashboards, work gets rebuilt from scratch, and domain experts should be able to assemble workflows themselves.10:16
  2. 02Install blockr and Launch the AppDavid installs blockr from GitHub with pak and launches the app from Positron.12:28
  3. 03Explore a Complex Linked DashboardDavid moves from the simple board to a more complex hosted example, the clinical data explorer on blockr.cloud.7:28
  4. 04Understand Race Tracking and Available DataDavid explains how races are tracked with transponders and a platform that infers groups and gaps, and introduces stage 5 of the 2026 Tour de France Femmes as the target.17:17
  5. 05Learn Block Anatomy and AI SkillsDavid explains block anatomy: a block is a Shiny module whose UI holds the inputs and whose server returns a reactive expression and a state.18:38
  6. 06Review the Generated GPX Block PackageDavid walks through the blockr.myrace package that Claude generated: the registration file, a read_gpx helper built on xml2, and the GPX read data block constructor with its module server.3:45
  7. 07Load Real Race Data Into BlocksDavid shows where the recorded stage 5 data lives in the TDFF2026 folder and copies it into the package's inst/extdata folder.14:48
  8. 08Task 1.4: Build Race Data BlocksDavid reviews the race recording data block, which takes a directory and returns a data frame of group snapshots, and notes that blockr data blocks keep small constructors with helpers elsewhere.11:36
  9. 09Plan the Layered Race WidgetDavid starts task two, building the race center widget layer by layer: profile, checkpoints, race recording with riders and groups, then commentary.15:07
  10. 10Add the Race Center Profile LayerDavid reviews the HTML widget package Claude generated, covering its R side and its JavaScript factory and drawing functions.7:00
  11. 11Add Checkpoints to the Race CenterDavid reviews the checkpoint block Claude made, which exposes each checkpoint's type, climb name and category, weather, altitude and gradient.5:50
  12. 12Review Race Results and Plan CommentaryDavid reviews the race center with the GPX, checkpoints, recording, riders and classification blocks connected.4:34
  13. 13Replay the Race and DeployDavid links the race commentary block to the race center so commentary events appear on the profile, and adjusts the widget size and commentary position.3:10
  14. 14Build a Board With the AssistantDavid starts a board with the DAG and AI assistant extensions from blockr.dag and blockr.assistant and asks the assistant to add and link a GPX reader and a race center block.11:52
  15. 15Recap the Widget and Plan HomeworkDavid recaps the widget built in layers (profile, points of interest, race recording, commentaries), noting each block works on its own, can generate code, and can have its state saved as JSON, in a pin or in a database.5:30
Free preview

Watch lesson 1, free.

Lesson 1: Understand Why blockr Exists 10:16

From the recording

Three clips, straight from the workshop.

Change Upstream, Downstream Updates 1:07

You Might Not Need The GPX 0:46

What Is An HTML Widget 1:00

The stage

A real Tour de France Femmes stage, stage by stage.

The board you build follows a real stage: its route, its climbs, and the riders moving along it. The profile here is drawn from public stage data; in the workshop you load the same kind of data into a block and the board does the drawing.

+326 m, 4.7%+238 m, 4.3%+295 m, 6.6%+242 m, 4.8% Stage 5, Tour de France Femmes 2026 · 147 km · 175 to 693 m
A real stage, drawn from public stage data; the biggest climbs are marked as the line reaches them. Source: the public VisuGPX trace of the 2026 route, stage 5, uploaded by member cyclopwr; elevation profile derived from its 8,093 points (the trace on VisuGPX). Credit: VisuGPX and cyclopwr.
The problem

The people who need an analysis board rarely write code, and the people who write code rarely have an afternoon to build one for them.

Three decisions it teaches
  1. Which blocks a stage analysis needs: the route and rider data in, the transforms between, the chart out
  2. How to shape data by snapping transform blocks together instead of writing the pipeline
  3. How to share a board so the next person changes a block, not a script
What you get

Everything that exists for this session, and nothing that does not.

  • The recording157 minutes, yours to keep
Play with the data

Run the code, in your browser.

The chart on this page, drawn by code you can edit. R runs on webR and Python on Pyodide; nothing loads until you press Run, and nothing you type leaves the page.

This chart is the code's result. Run recomputes it in your browser.
Run differential game by game (bars), its rolling mean (line) and a band of one rolling sd.

Edit me: Move the window, or change the metric to runs_scored and run again.

Data: Season game log (game_log.csv). Simulated for practice by AthlyticZ (agents/sim_data.py, seed 20261109). License CC BY 4.0.

The code runs in your browser on webR or Pyodide; nothing you type leaves the page.

David Granjon
Your instructor David Granjon

Taught by David Granjon, creator of shinyMobile and a lead developer at cynkra, in partnership with cynkra.

David builds blockr at cynkra and wrote up the Tour de France Femmes stage profile the workshop grows from: the post on cynkra's blog. The team page lists everything he teaches here.

David Granjon holds a PhD and is the creator of shinyMobile. David's work here sits in Apps & Dashboards. On AthlyticZ, David teaches Build a Cycling Analysis Board Without Writing Code.

Credit: David Granjon and cynkra, whose Tour de France Femmes stage profile is the work this workshop teaches from. Nothing from the post is reproduced here.

What is included

What is yours when you buy.

Questions

The ones that stop a purchase.

Is this too advanced, or too basic, for me?

You should be comfortable with writing functions in R, and the idea of Shiny. You do not need to have built a package or a module before. Not for you if you have never written R, or you want a finished dashboard handed to you rather than built.

What exactly do I get, and for how long?

The full recording, yours to keep: buy once, watch any time. Masterclass subscribers get every live session for a year and can watch every recorded session for as long as they are a member. Everyone else can buy a recording on its own.

Do I need to install anything?

No. The recording plays in the browser.

What if it is not for me?

Twenty minutes on a call before you buy costs nothing, and the call is the fastest way to tell. If you bought it and it is the wrong one for you, email michael@athlyticz.com and a person will answer.

Want more?

Ten live hours of end-to-end project work every month.

The Masterclass is all of it, live and recorded, for $1,899 a year, or $199 a month. Paid by the month, it renews monthly at $199, cancel any time by replying to your receipt.

This session $299

Build a Cycling Analysis Board Without Writing Code. The recording, yours to keep.

Buy now
The Masterclass $1,899 a year, or $199 a month

Every live session this year, and every recording.

Join the Masterclass
Membership $2,999 a year

The whole catalog of courses plus the Masterclass.

Get Membership
$299Buy now