Skip to content

timrogers/mona-mayhem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mona Mayhem

⚔️ GitHub Contribution Battle Arena ⚔️

A retro arcade-themed website built with Astro that allows comparing the GitHub contribution graphs of two GitHub users.

Mona Mayhem Screenshot

Features

  • 🎮 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

How to Use

  1. Enter two GitHub usernames in the input fields
  2. Click the "⚡ BATTLE! ⚡" button
  3. View the contribution graphs side by side to compare activity

Development

Prerequisites

  • Node.js (v18 or higher)
  • npm

Installation

npm install

Running the Development Server

npm run dev

The application will be available at http://localhost:4321/

Building for Production

npm run build

The built files will be in the dist/ directory.

Running the Production Server

npm run preview

Technology Stack

  • 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)

API

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

Architecture

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

Screenshots

Comparison View

Comparison Screenshot

License

MIT

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors