augmentcode / augment-repo-wrapped
GitHub year-in-review Stories for any repository
README
๐ Repo Wrapped
Your GitHub repository's year in review - Spotify Wrapped style!
Generate beautiful, shareable story slides showcasing your repository's achievements, contributors, and activity throughout the year.
Built by Augment Code with Next.js 15, TypeScript, and Tailwind CSS.
โจ Features
- ๐ Comprehensive Stats - Commits, PRs, reviews, issues, and code changes
- ๐ฅ Contributor Leaderboard - Top contributors with commit counts
- ๐ Activity Insights - Busiest days, months, and contribution patterns
- ๐จ Beautiful Slides - Instagram-story style presentation
- ๐ฅ Shareable - Download high-quality PNG images
- ๐ Secure - OAuth authentication with read-only access
- โก Fast - Server-side caching for instant re-loads
- ๐ Dark/Light Mode - Matches your preference
๐ Quick Start
Prerequisites
- Node.js 18+ and npm
- A GitHub account
- GitHub OAuth App credentials (create one here)
Installation
-
Clone the repository:
git clone https://github.com/augmentcode/augment-repo-wrapped.git cd augment-repo-wrapped -
Install dependencies:
npm install -
Set up environment variables:
cp .env.example .env.local -
Configure
.env.local:- Create a GitHub OAuth App at https://github.com/settings/developers
- Set callback URL to:
http://localhost:3000/api/auth/callback/github - Copy Client ID and Client Secret to
.env.local - Generate a secret:
openssl rand -base64 32 - Update
NEXTAUTH_SECRETin.env.local
-
Run the development server:
npm run dev -
Open http://localhost:3000 in your browser
๐ฆ Deployment
Deploy to Vercel in minutes! See DEPLOYMENT.md for detailed instructions.
Quick steps:
- Create a production GitHub OAuth App
- Deploy to Vercel
- Add environment variables in Vercel dashboard
- Update OAuth callback URL to your Vercel URL
๐ ๏ธ Tech Stack
- Framework: Next.js 15 (App Router)
- Language: TypeScript
- Styling: Tailwind CSS
- UI Components: shadcn/ui
- Authentication: NextAuth.js
- GitHub API: Octokit
- Deployment: Vercel
๐ How It Works
- Authenticate - Sign in with GitHub OAuth or Personal Access Token
- Select Repository - Choose any public repository you have access to
- Generate Wrapped - We fetch stats from GitHub's API (cached for 5 minutes)
- View & Share - Browse beautiful slides and download as PNG
What We Fetch:
- Repository metadata and languages
- Commit activity and contributor stats
- Pull requests with reviews and comments
- Issues and community metrics
- Code frequency and change patterns
Privacy & Permissions:
- Scope:
public_repo read:org(minimum required for Statistics API) - Read-only: We never write, update, or delete anything
- No storage: Your data is never stored on our servers
- Cached: Results cached for 5 minutes for performance
๐ค Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
๐ License
MIT License - see LICENSE for details.
๐ Acknowledgments
- Inspired by Spotify Wrapped
- Built with โค๏ธ by Augment Code
๐ Support
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Website: augmentcode.com
