Thank you for your interest in contributing to GitStars Map! We want to make contributing to this project as easy and transparent as possible.
By participating in this project, you agree to abide by basic open-source citizenship standards: be respectful, welcoming, and collaborative.
To set up the development environment locally:
- Fork the Repository: Fork this repository to your own GitHub account and clone it locally.
- Install Dependencies:
npm install
- Run Dev Server: Start the Vite local development server:
npm run dev
- Linting Check: Run ESLint to verify style guide conformity:
npm run lint
We use Vitest for our unit tests. All business logic, rates/rate-limiting code, and router logic must have unit tests.
- To run the test suite once:
npm test - To run tests in watch mode (interactive):
npx vitest
Important
If you add a new utility or service, you must write a corresponding test file under __tests__/ and verify that all 26+ tests pass successfully before submitting a pull request.
- Create a Branch: Create a branch for your feature or bugfix (e.g.,
feature/custom-themesorbugfix/graph-clickability). - Write Clean Code: Follow the existing project styling. Keep React components clean and utilize the CSS custom properties defined in
src/index.css. - Document Your Work: Update the
README.mdif you are adding new features, configuration options, or dependencies. - Submit the PR: Describe your changes in detail. If your changes affect the UI, please include screenshots or a short GIF.
Do not ever commit any API Keys, Google Gemini tokens, or GitHub Personal Access Tokens (PATs) to the codebase or .env files. The project is designed to run completely on the client side; all keys should be dynamically entered by the user in the UI settings panel and stored securely in their browser's local storage.