A modular NBA Basketball Operations decision-support platform built with R Shiny, designed to simulate the types of tools used by professional basketball front offices.
Built as part of my basketball analytics portfolio to demonstrate practical applications of roster management, salary cap strategy, contract analysis, and executive reporting.
- Team payroll overview
- Salary cap summary
- Contract distribution
- Roster composition
- Executive-level KPIs
- Complete roster management
- Contract status
- Years remaining
- Remaining guaranteed salary
- Two-Way Contracts
- Exhibit 10 Contracts
- Qualifying Offers
- Restricted Free Agents
- Team payroll
- Salary Cap
- Luxury Tax
- First Apron
- Second Apron
- Player salary as % of cap
- Payroll threshold visualization
- Trade matching
- Incoming / outgoing salary
- Cap impact
- Trade simulation framework
- Draft asset tracking
- Future first-round picks
- Future second-round picks
- Contract extension projections
- Payroll impact
- Multi-year planning
- Future payroll projections
- Contract expirations
- Long-term cap planning
- Position-by-position roster view
- Starter visualization
- Rotation planning
- Position eligibility
- R
- Shiny
- golem
- SQLite
- DuckDB
- tidyverse
- DT
- bs4Dash
β Executive Dashboard β Salary Cap Intelligence β Trade Analyzer β Roster Intelligence β Draft Assets β Extension Simulator β Five-Year Outlook β Depth Chart
π§ Free Agency Planner π§ Trade Machine 2.0 π§ Player Similarity Engine π§ Draft Pick Valuation π§ Lineup Optimization
- Player similarity search
- CBA Worded Explanations
- Trade optimization
- Draft pick valuation
- Lineup optimization
- Injury impact analysis
- Free agency planner
- AI-powered executive summaries
basketball-operations-platform
β
βββ R/
β βββ Executive Dashboard
β βββ Salary Cap Intelligence
β βββ Trade Intelligence
β βββ Roster Intelligence
β βββ Draft Intelligence
β βββ Extension Simulator
β βββ Five-Year Outlook
β βββ Depth Chart
β
βββ inst/
βββ data/
βββ tests/
βββ docs/
βββ renv/
Before running Thompson Basketball Intelligence, install:
- R 4.3 or newer
- RStudio
- Git
Open Git Bash or a terminal and run:
git clone https://github.com/DannyTData/basketball-operations-platform.gitMove into the project folder:
cd basketball-operations-platformOpen:
basketball-operations-platform.Rproj
RStudio should automatically recognize the project environment.
In the RStudio Console, run:
install.packages("renv")
renv::restore()The restoration process may take several minutes because it installs the package versions used to build the application.
From the RStudio Console, run:
golem::run_dev()The application should open in the RStudio Viewer or your default web browser.
The application can also be started with:
source("dev/run_dev.R")install.packages("golem")
library(golem)
golem::run_dev()install.packages("renv")
renv::restore()install.packages(c(
"DBI",
"RSQLite",
"duckdb"
))Restart the R session:
Session β Restart R
Then run:
renv::restore()Run:
options(shiny.launch.browser = TRUE)
golem::run_dev()TBI is a portfolio and educational project. Salary, roster, contract, draft, and transaction information may include demonstration data or planning assumptions and should not be treated as an official NBA source.
Clone the repository
git clone https://github.com/DannyTData/basketball-operations-platform.gitOpen the project
basketball-operations-platform.Rproj
Restore packages
renv::restore()Run the application
golem::run_dev()This project was created to demonstrate the types of analytical tools used inside an NBA Basketball Operations department.
Rather than building isolated analytics models, this platform integrates multiple basketball decision-support modules into a single application.
The project emphasizes:
- Basketball Operations
- Salary Cap Management
- Roster Construction
- Contract Planning
- Executive Reporting
- Decision Support
- Player similarity models
- Trade value model
- Draft pick valuation
- Lineup optimization
- Player projection models
- Injury impact analysis
- Team comparison dashboard
- Automated roster updates
I'm passionate about combining basketball knowledge with data analytics to build tools that support basketball decision-making.
My interests include:
- Basketball Operations
- Basketball Analytics
- Salary Cap Strategy
- R Programming
- SQL
- Data Visualization
- Predictive Modeling
GitHub: https://github.com/DannyTData
LinkedIn: (https://www.linkedin.com/in/danny-f-thompson/)
This project is provided for educational and portfolio purposes.