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.
- 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.
- 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.
.
├── 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
git clone https://github.com/psam21/ipl26.git
cd ipl26npm installThe 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.tsStep 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.tsnpm run devOpen http://localhost:3000 with your browser to see the dashboard.
This project is optimized for deployment on Vercel.
- Push your code to a GitHub repository.
- Import the project into Vercel.
- Vercel will automatically detect Next.js and deploy.
The dashboard is powered by two primary text files located in data_source/:
IPL 2026 Auction Complete Players List.txt: Contains the full auction results, prices, and player types.IPL 2026 Team Analysis.txt: Contains expert analysis, SWOT points, and predicted Best XIs.
Contributions are welcome! Please feel free to submit a Pull Request.