How cotyolmedo/reakt works
REAKT is an interactive training system: a learner runs reaction sessions in the Android app, which communicates with an ESP32 gateway and one or two ESP32 stimulus nodes; session data can also sync to Supabase. The graph preserves the app, local gateway/radio path, node input/output, shared protocol and scoring logic, and cloud persistence. Firmware sketches and most app implementation were not excerpted, so their internal call relationships are omitted; documented links are cited to the README.
Main entry points: main.dart Training app · REAKT_Gateway.ino ESP32 gateway · REAKT_Node.ino ESP32 node · gateway_link.dart Gateway link
Components 14
Android app
- Training app
app/lib/main.dart - Session UI
app/lib/presentation/session_record.dart - Gateway link
app/lib/services/gateway_link.dart - Local session store
app/lib/services/local_store.dart - Cloud sync
app/lib/services/cloud_sync.dart
Gateway and radio
- ESP32 gateway
firmware/gateway/REAKT_Gateway/REAKT_Gateway.ino - ESP-NOW radio
firmware/libraries/ReaktCore/src/ReaktRadio.h
Training node
- ESP32 node
firmware/nodes/REAKT_Node/REAKT_Node.ino - Button input
firmware/libraries/ReaktCore/src/ReaktCore.h - LED stimulus
firmware/nodes/REAKT_Node/Stimulus.h
Shared protocol
- Frame protocol
firmware/libraries/ReaktCore/src/ReaktCore.h - Reaction scoring
firmware/libraries/ReaktCore/src/ReaktCore.h
Other components
- Learner
- Supabase
Connections 15
- Learner → Training app: runs session
README.md - Training app → Session UI: presents sessions
- Training app → Gateway link: controls gateway
- Gateway link → ESP32 gateway: WebSocket
README.md - ESP32 gateway → ESP-NOW radio: uses radio
- ESP-NOW radio → ESP32 node: ESP-NOW
README.md - ESP32 node → LED stimulus: drives output
- ESP32 node → Button input: reads presses
- Button input → ESP-NOW radio: reports events
firmware/libraries/ReaktCore/src/ReaktRadio.h - ESP32 gateway → Frame protocol: exchanges frames
- ESP32 node → Frame protocol: exchanges frames
- Gateway link → Local session store: stores sessions
- Cloud sync → Supabase: syncs results
README.md - Training app → Cloud sync: syncs sessions
README.md - ESP32 gateway → Reaction scoring: tracks results