How firaol240/stat-tool-web works
This is a browser-based NBA player lookup and comparison tool. A user enters a player name; the page derives an ID and requests box-score and advanced stats through the Express API, which fetches both datasets from an external NBA stats service. The browser aggregates seasons, displays each player’s stats, then compares two loaded players with a chart and leader highlights. The README also identifies box and advanced statistics as the product’s core capabilities. The HTML and styling are present in the tree but were not sampled, so their exact page wiring is not represented.
Main entry points: Mainpg.js Player search · server.js Express API · public Web pages
Components 11
Player comparison
- Web pages
public - Player search
public/Mainpg.js - Season aggregation
public/Mainpg.js - Stat display
public/Mainpg.js - Comparison chart
public/Mainpg.js - Leader highlights
public/Mainpg.js
API service
- Express API
server.js - Search history API
server.js
External data
- Supabase searches
- NBA stats service
Other components
- NBA fan
Connections 11
- NBA fan → Web pages: opens
README.md - Web pages → Player search: hosts
- Player search → Express API: requests stats
public/Mainpg.js - Express API → NBA stats service: fetches stats
server.js - Express API → Player search: returns datasets
server.js - Player search → Season aggregation: organizes stats
public/Mainpg.js - Player search → Stat display: updates columns
public/Mainpg.js - Player search → Comparison chart: updates chart
public/Mainpg.js - Player search → Leader highlights: highlights leaders
public/Mainpg.js - Express API → Search history API: routes searches
server.js - Search history API → Supabase searches: reads and writes
server.js