Leetify Team Balancer is a web application that calculates player performance using Leetify stats and forms balanced teams. It contacts the Leetify API with a 1-second delay per player, generates a profile for each one, and assigns a total score. This score is then used to create fair and balanced teams using a snake-draft algorithm. 🐍
- 📊 Fetches player performance stats from Leetify
- ⏳ Ensures a 1-second delay per API request to prevent rate-limiting
- 🎯 Generates a player profile with a total score
- 🐍 Uses a snake-draft method to create balanced teams
- ⚡ Built with Next.js for fast and modern web performance
To run the project locally, follow these steps:
- Clone the repository
git clone https://github.com/yourusername/leetify-team-balancer.git
cd leetify-team-balancer
- Install dependencies
npm install
- Create a .env file and add your Steam API key:
STEAM_API_KEY="your_api_key_here"
- Start the development server
npm run dev
The app will be available at http://localhost:3000
🎉
To connect with the Steam API, ensure you have a valid API key stored in a .env
file.
For local development and contributions:
- Run the development server
npm run dev
- Build the production version
npm run build
- Start the production server
npm start
We welcome contributions! If you find a bug or want to improve the app, feel free to open an issue or submit a pull request. 🚀
A special thanks to:
- 🏆 Leetify for providing detailed CS stats
- 🛠️ The open-source community for their support and contributions
Happy team balancing! ⚡