How maxweltchek/stravarunfaker works
Strava Run Faker lets a user mark a route on a map, optionally snap it to roads, choose a start time, duration, and heart-rate noise, then generate and download a GPX run. The browser sends route and generation requests to Flask; the server obtains a road route, synthesizes timed track points and speed-correlated heart rate, and returns GPX. Road snapping uses OSRM, while the browser displays OpenStreetMap tiles. The sampled source shows these main calls; the template and styling are represented by their exact tree paths but were not sampled.
Main entry points: app.js Map and controls · app.py HTTP endpoints · GPXDataGen.py GPX and timing · roadSnapper.py Road routing
Components 12
Browser client
- Map and controls
static/app.js - Page template
templates/index.html - Page styling
static/styles.css - GPX download
static/app.js
Flask service
- HTTP endpoints
app.py
Run generation
- Road routing
roadSnapper.py - GPX and timing
GPXDataGen.py - Heart-rate synthesis
heartRateGenerator.py - Distance and noise
tools.py
External services
- OSRM router
- OpenStreetMap tiles
Other components
- Runner
Connections 15
- Runner → Map and controls: uses
README.md - Map and controls → Page template: loads
- Map and controls → Page styling: styles
- Map and controls → OpenStreetMap tiles: loads tiles
static/app.js - Map and controls → HTTP endpoints: posts points
static/app.js - Map and controls → HTTP endpoints: requests snap
static/app.js - HTTP endpoints → Road routing: routes points
app.py - Road routing → OSRM router: requests route
roadSnapper.py - HTTP endpoints → GPX and timing: generates GPX
app.py - GPX and timing → Heart-rate synthesis: generates pulse
GPXDataGen.py - GPX and timing → Distance and noise: measures route
GPXDataGen.py - Heart-rate synthesis → Distance and noise: uses helpers
heartRateGenerator.py - HTTP endpoints → Map and controls: returns route
app.py - HTTP endpoints → GPX download: returns GPX
app.py - GPX download → Runner: downloads file
static/app.js