Skip to content

psam21/ipl26

Repository files navigation

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.

About

IPL 2026 Team and Players Analysis

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages