Skip to content

Commit f9ab0b9

Browse files
authored
Merge pull request #43 from rapha18th/rapha18th-4point-Hoops-Showcase
Create 4point-Hoops.mdx
2 parents a502e7e + eb5be67 commit f9ab0b9

File tree

1 file changed

+94
-0
lines changed

1 file changed

+94
-0
lines changed

docs/showcase/4point-Hoops.mdx

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
---
2+
title: 4Point Hoops | AI Basketball Analytics Platform
3+
description: Advanced NBA analytics platform that combines live Basketball-Reference data with Perplexity Sonar to deliver deep-dive player stats, cross-season comparisons and expert-grade AI explanations
4+
sidebar_position: 14
5+
keywords: [4point hoops, nba, basketball, analytics, ai, perplexity, sonar, sports-data, comparisons]
6+
---
7+
8+
![4Point Hoops Dashboard](https://d112y698adiu2z.cloudfront.net/photos/production/software_photos/003/442/047/datas/original.png)
9+
10+
**4Point Hoops** is an advanced NBA analytics platform that turns raw basketball statistics into actionable, narrative-driven insights. By scraping Basketball-Reference in real time and routing context-rich prompts to Perplexity's Sonar Pro model, it helps fans, analysts, and fantasy players understand the "why" and "what's next" – not just the numbers.
11+
12+
<iframe
13+
className="w-full aspect-video rounded-xl"
14+
src="https://www.youtube.com/embed/lThCWq0ij7k"
15+
title="YouTube video player"
16+
frameBorder="0"
17+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
18+
allowFullScreen
19+
></iframe>
20+
21+
## Features
22+
23+
* **Player Analytics** with season & playoff splits, shot-type breakdowns, and performance radar for any NBA player
24+
* **Cross-Era Comparisons** enabling side-by-side stat comparisons (e.g., Michael Jordan '97 vs. Stephen Curry '22)
25+
* **Team Dashboards** with standings, playoff-probability Sankey flows, and auto-refreshing KPI tiles
26+
* **AI Explain & Similar Players** providing one-click Sonar explanations of stat lines and AI-picked comparable athletes
27+
* **Basketball AI Chat** allowing users to ask an expert LLM about NBA history, rosters, or projections
28+
* **Credit-Based SaaS System** with Firebase Auth, Google login, credit wallets, and admin tooling
29+
30+
## Prerequisites
31+
32+
* Node.js 16+ and npm
33+
* Python 3.8+ and pip
34+
* Firebase project setup
35+
* Perplexity API key (Sonar Pro)
36+
* Basketball-Reference access
37+
38+
## Installation
39+
40+
```bash
41+
# Clone the frontend repository
42+
git clone https://github.com/rapha18th/hoop-ai-frontend-44.git
43+
cd hoop-ai-frontend-44
44+
npm install
45+
46+
# Clone the backend repository
47+
git clone https://github.com/rapha18th/4Point-Hoops-Server.git
48+
cd 4Point-Hoops-Server
49+
pip install -r requirements.txt
50+
```
51+
52+
## Configuration
53+
54+
Create `.env` file in the backend directory:
55+
```ini
56+
PERPLEXITY_API_KEY=your_sonar_pro_api_key
57+
FIREBASE_PROJECT_ID=your_firebase_project_id
58+
FIREBASE_PRIVATE_KEY=your_firebase_private_key
59+
FIREBASE_CLIENT_EMAIL=your_firebase_client_email
60+
```
61+
62+
## Usage
63+
64+
1. **Start Backend**:
65+
```bash
66+
cd 4Point-Hoops-Server
67+
python app.py
68+
```
69+
70+
2. **Start Frontend**:
71+
```bash
72+
cd hoop-ai-frontend-44
73+
npm run dev
74+
```
75+
76+
3. **Access Application**: Open the frontend URL and explore NBA analytics with AI-powered insights
77+
78+
4. **Use AI Features**: Click "AI Explain" on any player or stat to get intelligent analysis powered by Perplexity Sonar
79+
80+
## Code Explanation
81+
82+
* **Frontend**: React with shadcn/ui components and Recharts for data visualization
83+
* **Backend**: Python Flask API serving Basketball-Reference data and managing Perplexity API calls
84+
* **Data Pipeline**: BRScraper for real-time data collection with Firebase caching
85+
* **AI Integration**: Perplexity Sonar Pro for intelligent basketball analysis and explanations
86+
* **Authentication**: Firebase Auth with Google login and credit-based access control
87+
* **Deployment**: Frontend on Netlify, backend on Hugging Face Spaces with Docker
88+
89+
## Links
90+
91+
- [Frontend Repository](https://github.com/rapha18th/hoop-ai-frontend-44)
92+
- [Backend Repository](https://github.com/rapha18th/4Point-Hoops-Server)
93+
- [Live Demo](https://4pointhoops.netlify.app/)
94+
- [Devpost Submission](https://devpost.com/software/4point-hoops)

0 commit comments

Comments
 (0)