Thank you for your interest in contributing to Keggy Data! This repository contains the football data (clubs and footballers) used in the Keggy game.
Since this package is not yet published to npm, install it directly from GitHub:
npm install github:Daniel-Cross/keggy-dataOr if you have the repository cloned locally:
npm install ../keggy-dataThen use it in your code:
import { FOOTBALLERS, CLUBS, Difficulty, Country } from "@keggy-data/data";- Fork the repository and clone it locally
- Find the appropriate country file in
src/clubs/(e.g.,england.ts,spain.ts) - Add your club following the existing format:
{ name: "Club Name", country: Country.ENGLAND, // Use the appropriate Country enum }
- Make sure the club is exported in
src/clubs/index.ts:- Add it to the
ALL_CLUBSarray - Export it in the individual country exports if needed
- Add it to the
- Test locally:
npm install npm run build
- Submit a pull request with a clear description
- Fork the repository and clone it locally
- Open
src/footballers.ts - Add your footballer following the existing format:
{ id: <next available id>, // Check the highest ID and increment name: "Player Name", clubs: [ CLUBS.find((club) => club.name === "Club Name")!, // Add more clubs as needed ], difficulty: Difficulty.EASY, // or MEDIUM, HARD, VERY_HARD position: "Forward", // e.g., Forward, Midfielder, Defender, Goalkeeper nationality: "Country Name", }
- Important: Make sure all clubs referenced exist in the clubs files
- Test locally:
npm install npm run build
- Submit a pull request with:
- Clear description of the footballer
- Verification that all clubs exist
- Appropriate difficulty level
- Club Names: Use the official club name (e.g., "Manchester United" not "Man Utd")
- Player Names: Use full name as commonly known (e.g., "Lionel Messi")
- Difficulty Levels:
- EASY: Very famous players with well-known clubs (Messi, Ronaldo, etc.)
- MEDIUM: Popular players with some obscure clubs
- HARD: Lesser-known players and obscure clubs
- VERY_HARD: Very obscure footballers and unknown clubs
- Accuracy: Please verify that the clubs and information are accurate
- Formatting: Follow the existing code style and formatting
- Create a feature branch from
main - Make your changes
- Test that the package builds successfully
- Submit a PR with a clear description
- Be patient - PRs will be reviewed and merged by maintainers
If you have questions, please open an issue in the repository.
Thank you for contributing! 🎉