Dropback Takehome: Men's College Basketball Player Comparison Tool#3
Open
saketvissa wants to merge 5 commits intoDropback:mainfrom
Open
Dropback Takehome: Men's College Basketball Player Comparison Tool#3saketvissa wants to merge 5 commits intoDropback:mainfrom
saketvissa wants to merge 5 commits intoDropback:mainfrom
Conversation
added 5 commits
November 11, 2025 21:31
- Create ESPNService for fetching players and stats from ESPN hidden API - Add SupabaseService for bulk database operations - Build data ingestion API route with batch processing - Store player info and stats in local Postgres instance
- Add player selection dropdowns grouped by class year - Display player cards with headshots, jersey numbers, and stats - Implement side-by-side stats comparison table - Add stat highlighting (bold for better stats) - Include modern UI: hover effects, fade-in animations, sticky headers - Add empty state for initial page load - Support dark mode via system preference
- Implement 4 advanced basketball metrics: Efficiency Rating, True Shooting %, Assist/Turnover Ratio, and Defensive Impact - Add interactive bar chart visualization using Recharts library - Include metric guide panel with formulas and descriptions - Add player strengths summary section highlighting top 3 statistical strengths per player) - Full dark mode support for all visualization components
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Dropback Takehome: Men's College Basketball Player Comparison Tool
Reviewer - @DropbackHQ
Demo
Screen.Recording.2025-11-11.at.11.32.36.PM.mov
Installation Steps
Install dependencies
Start Supabase local instance
Configure environment variables
Create
apps/web/.env.localwith the following (get values fromnpx supabase status):An example template is provided in
apps/web/.env.exampleStart the development server
Run data ingestion
This will fetch and populate the local Postgres instance with ~1000 college basketball players from ESPN's 2025-2026 season.
Access the app
Open http://localhost:3000 to use the player comparison tool.
Technical Details
A full-stack college basketball player comparison tool with three core components:
Data Ingestion Service: Automated ESPN API integration that fetches player profiles and statistics, then stores them in Supabase. Handles both player metadata (name, position, year, team) and player statistics (PPG, RPG, APG, FG%, etc.).
Database Schema: Two-table design with
playerstable for profile data andplayer_statstable for a player's season statistics. Includes proper foreign key relationships, indexes on frequently queried fields, and support for home/away stat tracking.Comparison UI: Modern Next.js interface with dual player selection dropdowns (grouped by year), side-by-side stats table with difference highlighting, and advanced metrics visualizations using Recharts. Feature responsive design with dark mode support.
Advanced Metrics Visualizations:
Also includes a player strengths analysis that identifies each player's top 3 attributes based on college basketball thresholds (12 PPG for scoring, 6 RPG for rebounding, 3 APG for playmaking, etc.).
Further Improvements