Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

117 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

โœจ Assistant Coach - Cloud9 Esports Analytics Platform

A comprehensive AI-powered esports analytics platform that integrates with GRID API to deliver real-time Cloud9 team insights, player performance tracking, and strategic analysis.

๐Ÿš€ Features

GRID API Integration

  • Live Cloud9 Data: Real player statistics, match history, and team performance
  • Automatic Caching: Smart data caching for offline access and improved performance
  • Seamless Fallback: Gracefully handles API unavailability with cached or demo data

Core Analytics

  • Player Performance Tracking: Individual KDA, win rates, and games played
  • Match History Analysis: Recent Cloud9 matches with detailed statistics
  • AI-Powered Insights: GPT-4 powered match analysis and strategic recommendations
  • Live Match Tracking: Real-time KDA updates and objective monitoring
  • Strategic Impact Dashboard: Connect individual mistakes to team outcomes
  • Data Import: Upload custom player rosters via CSV or JSON files through AI Chat

๐Ÿ“– Getting Started

1. Launch the Application

The app is pre-configured and ready to run in your Spark environment.

2. Configure GRID API (Optional but Recommended)

For real Cloud9 esports data:

  1. Get Your API Key

    • Apply for GRID API access through the hackathon resources
    • Wait for approval and receive your API key
  2. Connect to GRID

    • Open the application
    • Click "Configure API" on the GRID API Integration card
    • Enter your API key
    • Click "Connect"
  3. Start Analyzing

    • The app will automatically fetch Cloud9 roster and match data
    • Data refreshes every 5 minutes
    • Use "Refresh Data" to manually update

3. Explore Features

Dashboard Tab

  • View team overview statistics
  • Generate AI insights for specific matches
  • Browse player roster with real-time stats

Live Tab

  • Track ongoing matches with real-time updates
  • Monitor KDA changes as they happen
  • View objective control and gold differential

Insights Tab

  • Review AI-generated pattern analysis
  • Identify recurring mistakes and their impact
  • Get actionable coaching recommendations

Players Tab

  • Deep-dive into individual player analytics
  • Compare performance against team averages
  • Track improvement trends over time

Strategic Tab

  • Analyze mistake categories and their strategic impact
  • Correlate micro-level errors with macro outcomes
  • Understand objective loss patterns

AI Chat Support

  • Ask questions about platform features
  • Get help with data interpretation
  • Upload CSV or JSON files to import custom data
  • View file format guide and examples

๐Ÿ“ค Data Import Feature

Upload your own player roster data via the AI Chat interface:

  1. Click the chat icon in the bottom-right corner
  2. Click the upload button (๐Ÿ“) in the chat toolbar
  3. Select your file - CSV or JSON format (max 10MB)
  4. Automatic import - System parses and adds data instantly

Supported Formats:

  • CSV: Player roster with headers (id, name, role, title, kda, winRate, gamesPlayed)
  • JSON: Single entity (player array) or multi-entity (players, teams, matches, tournaments)

Sample Files: See sample-players.csv, sample-players.json, and sample-multi-entity.json

Full Guide: DATA_UPLOAD_GUIDE.md

๐Ÿ”ง Technical Details

Technology Stack

  • Framework: React 19 + TypeScript
  • Styling: Tailwind CSS 4 + shadcn/ui
  • Data: GRID API GraphQL + Spark KV Storage
  • AI: GPT-4 via Spark LLM API
  • Animation: Framer Motion
  • Icons: Phosphor Icons

Key Files

src/
โ”œโ”€โ”€ lib/
โ”‚   โ”œโ”€โ”€ gridApi.ts          # GRID API client & queries
โ”‚   โ”œโ”€โ”€ types.ts            # TypeScript interfaces
โ”‚   โ””โ”€โ”€ mockData.ts         # Fallback demo data
โ”œโ”€โ”€ hooks/
โ”‚   โ”œโ”€โ”€ use-grid-data.ts    # Data fetching & caching
โ”‚   โ””โ”€โ”€ use-live-match.ts   # Live match tracking
โ”œโ”€โ”€ components/
โ”‚   โ”œโ”€โ”€ GridApiSetup.tsx    # API configuration UI
โ”‚   โ”œโ”€โ”€ DataSourceIndicator.tsx
โ”‚   โ”œโ”€โ”€ LiveMatchTracker.tsx
โ”‚   โ”œโ”€โ”€ PlayerCard.tsx
โ”‚   โ””โ”€โ”€ ...
โ””โ”€โ”€ App.tsx                 # Main application

๐Ÿ“š Documentation

๐ŸŽฎ Usage Without API Key

The application works fully without a GRID API key using demonstration data:

  • Sample Cloud9 roster
  • Mock match history
  • Simulated live matches
  • All UI features functional

This allows you to:

  • Test all functionality
  • Understand the interface
  • Demonstrate features
  • Develop without API access

๐Ÿ”’ Privacy & Security

  • API keys stored locally in browser
  • No third-party data transmission
  • All API calls use HTTPS
  • Disconnect anytime to clear credentials

๐Ÿ› Troubleshooting

No data loading?

  • Check your internet connection
  • Verify API key is correct
  • Try manual "Refresh Data"
  • Check browser console for errors

Stale data?

  • Click "Refresh Data" button
  • Clear cache and reconnect
  • Check GRID API status

API key not working?

  • Ensure key is valid and not expired
  • Check for extra spaces when pasting
  • Verify hackathon API access is approved

๐Ÿ—๏ธ Development

Adding New Features

  1. Define data types in src/lib/types.ts
  2. Create GraphQL queries in src/lib/gridApi.ts
  3. Build UI components in src/components/
  4. Integrate with hooks for state management

Testing

  • Use mock data for development
  • Test with and without API connection
  • Verify graceful error handling
  • Check responsive design on mobile

๐Ÿ“„ License

The Spark Template files and resources from GitHub are licensed under the terms of the MIT license, Copyright GitHub, Inc.

๐Ÿ† Sky's the Limit - Cloud9 x JetBrains Hackathon

Built for the Cloud9 x JetBrains Hackathon as a comprehensive Assistant Coach powered by Data Science and AI, inspired by Moneyball's analytical approach to competitive esports.

About

๐ŸŽฎ๐Ÿ“Š A comprehensive AI-powered esports analytics platform that integrates with GRID API to deliver real-time Cloud9 team insights, player performance tracking, and strategic analysis.

Topics

Resources

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages

Generated from github/spark-template