How kennethhuang7/courtvision works
CourtVision is an archived Electron desktop app for NBA player analytics and predictions, backed by a Python data and ML pipeline. The user-facing flow is routed through the app to prediction, analysis, discovery, and social screens; the README describes ensemble forecasts and confidence scoring. The backend is retired, so live account, prediction, and social workflows are unavailable. Source excerpts support the app entry and feature-engineering links; other unsampled connections are omitted or marked unverified.
Main entry points: App.tsx App router · predict_games.py Game prediction · build_features.py Feature engineering · main.ts Electron shell
Components 24
Desktop client
- Electron shell
app/electron/main.ts - App router
app/src/App.tsx - Account screens
app/src/pages/Register.tsx
Analytics features
- Predictions
app/src/pages/dashboard/Predictions.tsx - Player analysis
app/src/pages/dashboard/PlayerAnalysis.tsx - Pick discovery
app/src/pages/dashboard/PickFinder.tsx - Trend analysis
app/src/pages/dashboard/Trends.tsx - Saved picks
app/src/pages/dashboard/SavedPicks.tsx - Analytics
app/src/pages/dashboard/Analytics.tsx - Model performance
app/src/pages/dashboard/ModelPerformance.tsx - Community
app/src/pages/dashboard/Community.tsx - Messaging
app/src/pages/dashboard/Messages.tsx - Streamlit dashboard
streamlit/streamlit_app/Home.py
Prediction pipeline
- Game prediction
src/predictions/predict_games.py - Confidence scoring
src/predictions/confidence_scoring.py - Feature explanations
src/predictions/feature_explanations.py - Feature engineering
src/feature_engineering/build_features.py - Team statistics
src/feature_engineering/team_stats_calculator.py - Model training
src/models/train_catboost.py
Data operations
- Data collection
src/data_collection/update_yesterday_games.py - Daily pipeline
src/automation/daily_pipeline.py - NBA data store
Other components
- Desktop user
- Hosted backend
Connections 24
- Desktop user → Electron shell: launches
README.md - Electron shell → App router: hosts
- App router → Account screens: routes
app/src/App.tsx - App router → Predictions: routes
app/src/App.tsx - App router → Player analysis: routes
app/src/App.tsx - App router → Pick discovery: routes
app/src/App.tsx - App router → Trend analysis: routes
app/src/App.tsx - App router → Saved picks: routes
app/src/App.tsx - App router → Analytics: routes
app/src/App.tsx - App router → Model performance: routes
app/src/App.tsx - App router → Community: routes
app/src/App.tsx - App router → Messaging: routes
app/src/App.tsx - Predictions → Hosted backend: requests live data
- Community → Hosted backend: social services
- Messaging → Hosted backend: messaging services
- Game prediction → Confidence scoring: scores confidence
src/predictions/predict_games.py - Game prediction → Feature explanations: builds explanations
src/predictions/predict_games.py - Game prediction → Team statistics: uses team stats
src/predictions/predict_games.py - Feature engineering → Team statistics: calculates ratings
src/feature_engineering/build_features.py - Model training → Hosted backend: publishes predictions
- Daily pipeline → Data collection: runs collection
- Data collection → NBA data store: writes game data
- Feature engineering → NBA data store: reads historical data
- Streamlit dashboard → NBA data store: queries analytics