A fun and interactive web application that calculates the "worth" of your GitHub profile in Nigerian Naira (NGN). Discover your GitHub value based on your contributions, followers, stars, and other metrics!
-
π Real-time GitHub Profile Search - Instantly search any public GitHub username
-
π° Intelligent Scoring Algorithm - Comprehensive scoring based on:
- Followers count
- Total stars received
- Number of active repositories
- Original vs forked repositories
- Account age
- Programming language diversity
- Bonus and penalty calculations
-
π Detailed Score Breakdown - See exactly how your GitHub score is calculated
-
π¨ Beautiful Dark/Light Theme - Toggle between dark and light modes
-
π± Fully Responsive Design - Works perfectly on desktop, tablet, and mobile
-
π Share Your Worth - Share your GitHub worth on social media or copy to clipboard
-
π·οΈ Affordability Tiers - Humorous categorization of your GitHub value with relevant descriptions
Your calculated value falls into one of these fun categories:
- π± Vibes & Data (β¦0 - β¦50,000) - Snacks and good vibes
- πΈ Small Bills (β¦50,000 - β¦200,000) - Nice meals and utilities
- π½οΈ Medium Chops (β¦200,000 - β¦500,000) - Proper restaurant vibes
- π Big Boy Energy (β¦500,000 - β¦1,000,000) - Luxury items
- π Billionaire Status (β¦1,000,000+) - Your GitHub is worth serious money!
- Framework: Next.js 16.0
- Language: TypeScript
- UI Components: Radix UI
- Styling: Tailwind CSS
- Icons: Lucide React
- Form Management: React Hook Form
- Data Fetching: SWR
- Theme Support: Next Themes
- Notifications: Sonner
- Node.js 18+
- pnpm (recommended) or npm/yarn
-
Clone the repository
git clone https://github.com/yourusername/github-worth-calculator.git cd github-worth-calculator -
Install dependencies
pnpm install # or npm install -
Run the development server
pnpm dev # or npm run dev -
Open http://localhost:3000 in your browser to see the application.
pnpm build
pnpm start.
βββ app/ # Next.js app directory
β βββ api/github-worth/ # API endpoint for GitHub calculations
β β βββ route.ts
β βββ layout.tsx # Root layout
β βββ page.tsx # Home page
β βββ globals.css # Global styles
β
βββ components/ # React components
β βββ github-search-form.tsx # Search input form
β βββ github-worth-result.tsx # Results display card
β βββ theme-provider.tsx # Theme context provider
β βββ theme-toggle.tsx # Dark/light mode toggle
β βββ ui/ # Reusable UI components (Radix UI based)
β
βββ lib/ # Utility functions
β βββ github-scoring.ts # Core scoring algorithm
β βββ utils.ts # Helper utilities
β
βββ hooks/ # Custom React hooks
β βββ use-mobile.ts # Mobile detection hook
β βββ use-toast.ts # Toast notification hook
β
βββ public/ # Static assets
βββ styles/ # Additional stylesheets
βββ package.json # Project dependencies
βββ tsconfig.json # TypeScript configuration
Method: GET
Query Parameters:
username(string, required) - GitHub username to calculate worth for
Response:
{
"username": "octocat",
"avatarUrl": "https://...",
"name": "The Octocat",
"hustleScore": 1250,
"nairaValue": 312500,
"affordabilityTier": {
"label": "Small Bills",
"emoji": "πΈ",
"description": "Can settle small bills..."
},
"message": "You're a solid contributor!",
"breakdown": {
"followers": 100,
"stars": 500,
"activeRepos": 50,
"originalRepos": 35,
"accountAge": 200,
"languageDiversity": 150,
"bonuses": 50,
"penalties": 0
},
"stats": {
"followers": 100,
"totalStars": 500,
"totalForks": 250,
"publicRepos": 50,
"originalRepos": 35,
"activeRepos": 40,
"languages": ["JavaScript", "TypeScript", "Python"],
"accountAgeDays": 2500
}
}The GitHub Worth Calculator uses a sophisticated algorithm that considers:
- Followers - Direct metric of community recognition
- Stars - Quality and value of your repositories
- Active Repositories - Repositories updated in the last 6 months
- Original Repositories - Created vs forked repositories
- Account Age - Years and months of GitHub presence
- Language Diversity - Number of different programming languages used
- Bonuses - Additional points for milestones (e.g., 100+ followers)
- Penalties - Deductions for archived or inactive accounts
Each metric is converted to a Hustle Score (0-5000), which is then multiplied by β¦250 to get the final Naira value.
Modify the theme in components/theme-provider.tsx to change the color scheme:
const THEMES = {
light: {
primary: "#YOUR_COLOR",
// ...
},
dark: {
// ...
}
}Adjust scoring weights in lib/github-scoring.ts:
const SCORING_WEIGHTS = {
followersWeight: 10,
starsWeight: 5,
// ...
}Add or modify affordability tiers in lib/github-scoring.ts:
const AFFORDABILITY_TIERS: AffordabilityTier[] = [
{
label: "Your Tier",
emoji: "π",
description: "Description here",
minValue: 0,
maxValue: 50000,
},
// ...
]Contributions are welcome! Here's how you can help:
- Fork the repository
- Create a feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Found a bug? Please open an issue with:
- Clear description of the issue
- Steps to reproduce
- Expected behavior
- Actual behavior
- Screenshots if applicable
This project is licensed under the MIT License - see the LICENSE file for details.
- GitHub API for providing comprehensive GitHub data
- Radix UI for beautiful, accessible components
- Tailwind CSS for utility-first styling
- All contributors and users of this project
This application calculates "GitHub worth" for entertainment purposes only. The Naira values are not based on real market valuations or professional assessments. It's a fun way to celebrate your GitHub contributions!
Have questions or suggestions? Feel free to reach out:
- π§ Email: [rune.notstatic2gmaill.com]
- π¦ Twitter: [@nigmaQx]
β If you enjoy this project, please consider giving it a star! β