Gaucho Racing's real-time telemetry and data analytics platform.
Important
This is Mapache v3, and it is in maintenance mode. It still runs production at mapache.gauchoracing.com, so bug fixes and small changes are welcome here. All new feature work happens in the ground-up v4 rewrite at Gaucho-Racing/Mapache.
Mapache streams telemetry off the car in real time, without a trackside base station. The on-car TCM decodes CAN traffic and publishes it over MQTT whenever it has LTE. When it doesn't, it caches frames locally and uploads them in batches later, so nothing is lost. In the cloud, Mapache decodes every frame into named signals, stores them in ClickHouse, and serves them to a web dashboard for live monitoring and post-session analysis.
The design is written up in our ITC 2025 paper, Mapache: An Intelligent, Real-Time Telemetry Platform for Formula SAE.
Screenshots are from a local stack with simulated GR26 data.
flowchart LR
tcm["🏎️ TCM on the car<br/>CAN decode + LTE"]
subgraph transport["Transport"]
mqtt[("MQTT broker")]
s3[("S3<br/>offline batches")]
end
subgraph ingest["Ingest"]
gr26["gr26<br/>CAN → signals"]
foreman["foreman<br/>job queue"]
end
subgraph store["Storage"]
ch[("ClickHouse<br/>signals")]
pg[("Postgres<br/>metadata")]
end
subgraph api["API services"]
live["live<br/>SSE / WebSocket"]
query["query<br/>analytics"]
vehicle["vehicle<br/>vehicles · sessions · laps"]
auth["auth<br/>Sentinel SSO"]
end
kerbecs{{"kerbecs<br/>API gateway"}}
dash["📊 Dashboard"]
tcm -- "live frames" --> mqtt
tcm -- "parquet batches" --> s3
mqtt --> gr26
gr26 <-. "batch jobs" .-> foreman
s3 -. "backfill" .-> gr26
gr26 --> ch
gr26 -- "live signals" --> mqtt
mqtt --> live
ch --> query
pg --- vehicle
pg --- auth
api --- kerbecs
kerbecs --- dash
sequenceDiagram
autonumber
participant TCM as TCM (car)
participant MQ as MQTT
participant GR as gr26
participant CH as ClickHouse
participant LV as live
participant UI as Dashboard
rect rgb(235, 245, 255)
Note over TCM,UI: Online: real-time path
TCM->>MQ: gr26/{vehicle}/{node}/{can_id}
MQ->>GR: shared subscription
GR->>CH: decoded signals
GR->>MQ: query/live/{vehicle}/{signal}
MQ->>LV: fan-out
LV-->>UI: SSE / WebSocket stream
end
rect rgb(245, 240, 255)
Note over TCM,CH: Offline: catch-up path
TCM->>TCM: cache frames while LTE is down
TCM->>MQ: batch-uploaded notice (file ULID)
MQ->>GR: enqueue foreman ingest job
GR->>CH: backfill from parquet batch in S3
end
| Service | Language | What it does |
|---|---|---|
gr26 |
Go | Ingests GR26 CAN frames from MQTT, decodes them into signals, writes to ClickHouse, and republishes live updates. Also backfills offline parquet batches through foreman jobs |
live |
Go | Streams live signals to the dashboard over SSE and WebSocket |
query |
Python (FastAPI) | Signal catalog and analytics queries over ClickHouse |
vehicle |
Go | Vehicles, sessions, laps, markers, and per-vehicle config |
auth |
Go | Login and users through Sentinel SSO |
dashboard |
React + Vite | The web app: live widgets, signal explorer, sessions, jobs |
mapache-go / mapache-py |
Go / Python | Shared libraries for message and signal encoding |
| foreman | Go | Durable job queue used for batch ingest (separate repo) |
| kerbecs | Go | API gateway that routes /api/* to the services above (separate repo) |
gr24, gr25, and rigby hold ingest code and a simulator for earlier cars. None of them are deployed.
Requires Docker.
cp example.env .env
docker compose up --buildThis starts every service plus local MQTT (NanoMQ), ClickHouse, and Postgres. In .env, point DATABASE_* and CLICKHOUSE_* at the bundled containers (db:5432, clickhouse:9000). Fill in the SENTINEL_* values to log in, or set VITE_SKIP_AUTH_CHECK=true on the dashboard to skip login. Backend auth checks are already off in dev.
Open the dashboard at http://localhost:5173. The gateway listens on http://localhost:10310.
Production runs on Gaucho Racing's on-prem Kubernetes cluster and is deployed through Argo CD from Gaucho-Racing/infrastructure (kubernetes/gr-foundry/manifests/mapache-legacy).
./scripts/release.sh 3.11.1 # services release: images + infra bump PR
./scripts/release.sh -t mapache-go 3.6.1 # Go library
./scripts/release.sh -t mapache-py 3.2.1 # Python libraryA services release tags v<version>, which publishes ghcr.io/gaucho-racing/mapache-legacy/<service>:<version>. The deploy workflow then opens a bump PR in the infrastructure repo, and merging it rolls the cluster forward.
Bug fixes and maintenance only; new features belong in Mapache v4. Branch off main as gh-username/fix-name, use Conventional Commits, and open a pull request into main.
Distributed under the MIT License. See LICENSE.txt.





