⚔️ GitHub Contribution Battle Arena ⚔️
A retro arcade-themed website built with Astro that allows comparing the GitHub contribution graphs of two GitHub users.
- 🎮 Retro arcade-style UI with glowing neon effects
- 📊 Side-by-side contribution graph comparison
- ⚡ Real-time data fetching from GitHub
- 🎨 Color-coded contribution intensity visualization
- 📱 Responsive design for mobile and desktop
- Enter two GitHub usernames in the input fields
- Click the "⚡ BATTLE! ⚡" button
- View the contribution graphs side by side to compare activity
- Node.js (v18 or higher)
- npm
npm installnpm run devThe application will be available at http://localhost:4321/
npm run buildThe built files will be in the dist/ directory.
npm run preview- Framework: Astro v5
- Runtime: Node.js with @astrojs/node adapter
- Font: Press Start 2P (retro gaming font)
- API: GitHub's contribution graph API (
https://github.com/{username}.contribs)
The application uses GitHub's public contribution API endpoint:
- Endpoint:
https://github.com/{username}.contribs - No authentication required
- Returns JSON data with contribution counts and colors
The application uses a server-side proxy to fetch GitHub data:
- Frontend: Static page with JavaScript for interactivity
- Backend: Astro API route (
/api/contributions/[username]) that proxies requests to GitHub - This architecture bypasses CORS restrictions and allows caching
MIT

