How roshan10k/strikelab works
StrikeLab is a shot-quality analytics product: users configure a shot or upload match events, then receive xG/PSxG estimates, coaching guidance, and team/player/goalkeeper analytics. The main interactive flow runs from the React calculator through the JSON API to model inference; registry-backed models support inference and gated retraining. The README documents capabilities beyond the sampled source, so those links are shown where documented; unsampled implementation details are not inferred.
Main entry points: api_server.py FastAPI Server · client.ts API Client · Calculator.tsx Shot Calculator · model_registry.py Model Registry
Components 19
Analytics UI
- Shot Calculator
frontend/src/routes/Calculator.tsx - Shot Scenario
frontend/src/store/scenario.ts - Tactical Pitch
frontend/src/components/pitch/PitchView.tsx - Goal Frame
frontend/src/components/pitch/GoalFrame.tsx - Match Dashboard
frontend/src/routes/MatchDashboard.tsx - Player Analytics
frontend/src/routes/Players.tsx - Goalkeeper Analytics
frontend/src/routes/Keepers.tsx - Model Admin
frontend/src/routes/Admin.tsx - API Client
frontend/src/api/client.ts
API and analytics
- FastAPI Server
api_server.py - Match Aggregation
analytics.py
Models and coaching
- xG Inference
calculate_xg_enhanced.py - PSxG and Coach
calculate_psxg.py
Model management
- Model Registry
model_registry.py - Retrain Service
retrain_service.py - Synthetic Data
generate_psxg_synthetic_data.py - PSxG Training
train_psxg_model.py - xG Training
train_ultimate_model.py
Other components
- Analyst
Connections 25
- Analyst → Shot Calculator: configures shot
README.md - Shot Calculator → Shot Scenario: updates state
frontend/src/routes/Calculator.tsx - Tactical Pitch → Shot Scenario: updates positions
frontend/src/components/pitch/PitchView.tsx - Goal Frame → Shot Scenario: updates placement
frontend/src/components/pitch/GoalFrame.tsx - Shot Calculator → Tactical Pitch: renders
frontend/src/routes/Calculator.tsx - Shot Calculator → Goal Frame: renders
frontend/src/routes/Calculator.tsx - Shot Calculator → API Client: requests estimates
frontend/src/routes/Calculator.tsx - Match Dashboard → API Client: requests analytics
frontend/src/routes/MatchDashboard.tsx - Player Analytics → API Client: requests analytics
frontend/src/routes/Players.tsx - Goalkeeper Analytics → API Client: requests analytics
frontend/src/routes/Keepers.tsx - Model Admin → API Client: manages models
frontend/src/routes/Admin.tsx - API Client → FastAPI Server: sends API requests
frontend/src/api/client.ts - FastAPI Server → xG Inference: calls inference
api_server.py - FastAPI Server → PSxG and Coach: calls inference
api_server.py - FastAPI Server → Match Aggregation: aggregates events
api_server.py - xG Inference → Model Registry: loads artifacts
calculate_xg_enhanced.py - PSxG and Coach → Model Registry: loads artifacts
calculate_psxg.py - FastAPI Server → Retrain Service: dispatches retraining
api_server.py - Retrain Service → Synthetic Data: generates samples
retrain_service.py - Retrain Service → PSxG Training: trains PSxG
retrain_service.py - Retrain Service → xG Training: trains xG
retrain_service.py - PSxG Training → Model Registry: registers model
train_psxg_model.py - xG Training → Model Registry: registers model
train_ultimate_model.py - Model Registry → FastAPI Server: reports versions
README.md - Analyst → Match Dashboard: uploads match data
README.md