项目
在 GitHub 查看
gabriel-pineda/git-wrapped-api
关于
Git Wrapped is the API that powers git-wrapped.com (Github Wrapped), a service that generates beautiful visualizations of your GitHub activity.
其他项目实测星标增长
- 24小时
- +8
- 7天
- +59
- 15天
- +58
- 1个月
- +58
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Git Wrapped API
Git Wrapped is the API that powers git-wrapped.com (Github Wrapped), a service that generates beautiful visualizations of your GitHub activity.

🚀 Quick Start
Prerequisites
- Node.js and npm/yarn
- GitHub Personal Access Token (Classic)
- How to create a GitHub Personal Access Token
- Required permissions:
public_repo,read:user
Environment Setup
Create a .env.local file in the root directory with:
GITHUB_TOKEN=ghp_<your_token_here>
Installation
# Using yarn
yarn install
# Using npm
npm install
Development
Run the development server:
# Using yarn
yarn dev
# Using npm
npm run dev
The application will be available at http://localhost:3000.
📡 API
GET /api/stats?username=<github-username>&year=<year>
yearis optional. The default is the current year. Every number in the answer is for that year only (for the current year, up to today).topLanguagesare the top 3 languages of the repositories you committed to in that year, weighted by your commits there. With fewer than 3 public commits in the year, they fall back to the main language of your repositories.
🛠 Technical Stack
- Next.js 13
- TypeScript
- Main API file:
api/stats.ts
🤝 Contributing
We welcome contributions from the community! Here's how you can help:
Open an Issue
- Found a bug? Have a feature request? Open an issue describing what you'd like to change.
Submit a Pull Request
- Fork the repository
- Create a new branch for your feature
- Make your changes
- Submit a PR with:
- Clear description of the changes
- Link to the related issue
- Sample result/screenshot if applicable
- Wait for review
📝 License
The code in this repository is licensed under the MIT License.
Additional Next.js Resources
探索相关项目
加载中…