A website that displays GitHub star rankings for popular frontend projects.
- 📊 Real-time display of GitHub star counts
- 🏷️ Project categorization (Meta-Frameworks, Frameworks, UI Libraries, etc.)
- 📱 Responsive design for both desktop and mobile
- 🔄 Local caching to reduce API calls
- 📈 Visual comparison of star differences between projects
- ⚡ Built with Next.js and TypeScript
- Next.js - React framework
- TypeScript - Type safety
- Tailwind CSS - Styling
- SWR - Data fetching
- GitHub API - Data source
- Node.js 18.x or later
- pnpm 8.x or later
- Clone the repository:
git clone https://github.com/yayxs/front-end-star-ranking.git
cd front-end-star-ranking
- Install dependencies:
pnpm install
- Create a
.env.local
file in the root directory and add your GitHub token:
GITHUB_TOKEN=your_github_token_here
- Start the development server:
pnpm dev
- Open http://localhost:3000 in your browser.
To avoid API rate limits, you need to create a GitHub Personal Access Token:
- Go to GitHub Settings > Developer Settings > Personal Access Tokens
- Generate a new token with
public_repo
scope - Copy the token to your
.env.local
file
Edit app/api/github/route.ts
to add or modify projects:
const FRONTEND_REPOS: RepoInfo[] = [
{ repo: 'vercel/next.js', category: 'Meta-Frameworks' },
// Add more projects here
];
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.