Skip to content

Latest commit

Β 

History

History
98 lines (74 loc) Β· 3.71 KB

File metadata and controls

98 lines (74 loc) Β· 3.71 KB

IPL 2026 Auction Command Center

A real-time, interactive dashboard for analyzing the IPL 2026 Mega Auction results. This application provides a comprehensive view of team squads, financial strategies, and SWOT analysis using a modern tech stack.

Dashboard Preview

πŸš€ Features

  • League Overview: Real-time ticker showing total league spending, overseas slot usage, and top 10 most expensive buys.
  • Bento Grid Dashboard: Compact, responsive cards for all 10 teams displaying purse spent, squad size, and key risks (SPOF).
  • Interactive Team Drawers: Drill down into any team to view:
    • SWOT Analysis: Strengths and Weaknesses parsed from expert analysis.
    • Pitch View: Visual representation of the "Best XI" on a cricket field. Features full player names, role icons (Β© Captain, 🧀 Keeper), and styled reserve players.
    • Roster Table: Sortable list of all players with price tags, Age, IPL Experience, clickable profiles, and "New" player badges.
  • Visual Analytics: Color-coded indicators for Title Probability (Green/Yellow/Red) and detailed probability breakdowns.

πŸ› οΈ Tech Stack

  • Framework: Next.js 15.4 (App Router)
  • Styling: Tailwind CSS
  • Animations: Framer Motion
  • Language: TypeScript 5.5
  • Icons: Lucide React
  • Data Processing: Custom Node.js scripts to parse raw text analysis.

πŸ“‚ Project Structure

.
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ app/            # Next.js App Router pages
β”‚   β”œβ”€β”€ components/     # React UI components (TeamCard, PitchView, etc.)
β”‚   β”œβ”€β”€ data/           # Generated JSON data (ipl_data.json)
β”‚   └── types/          # TypeScript definitions
β”œβ”€β”€ data_source/        # Raw text files (Auction List & Team Analysis)
β”œβ”€β”€ scripts/            # Data processing & scraping scripts
β”‚   β”œβ”€β”€ scrape-all-squads.ts    # Main scraper
β”‚   β”œβ”€β”€ find-missing-players.ts # Fuzzy matching for missing data
β”‚   └── seed-data.ts            # Main data generation script
└── public/             # Static assets

⚑ Getting Started

1. Clone the repository

git clone https://github.com/psam21/ipl26.git
cd ipl26

2. Install dependencies

npm install

3. Data Pipeline

The app uses a local JSON file generated from raw text files and web scraping.

Step 1: Scrape Player Data The project includes robust scraping tools to fetch player images, age, and IPL debut years.

# Scrape full squads from IPL website
npx tsx scripts/scrape-all-squads.ts

# Fill in missing data using fuzzy matching (Levenshtein distance)
npx tsx scripts/find-missing-players.ts

Step 2: Seed the Data Parses text files in data_source/ and merges with scraped data to generate src/data/ipl_data.json.

npx tsx scripts/seed-data.ts

4. Run the Development Server

npm run dev

Open http://localhost:3000 with your browser to see the dashboard.

πŸš€ Deployment

This project is optimized for deployment on Vercel.

  1. Push your code to a GitHub repository.
  2. Import the project into Vercel.
  3. Vercel will automatically detect Next.js and deploy.

πŸ“ Data Sources

The dashboard is powered by two primary text files located in data_source/:

  1. IPL 2026 Auction Complete Players List.txt: Contains the full auction results, prices, and player types.
  2. IPL 2026 Team Analysis.txt: Contains expert analysis, SWOT points, and predicted Best XIs.

🀝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.