Skip to content

Your AI Coding Year Wrapped πŸŽ‰ Generate beautiful Spotify Wrapped-style reports for Claude Code usage. Privacy-first, 100% free, open source.

Notifications You must be signed in to change notification settings

isaadgulzar/year-in-code

Repository files navigation

Year in Code

Year in Code

Discover your coding journey β€” from your very first commit to today

GitHub Website License

Year in Code Screenshot
Year in Code Screenshot

Transform your coding activity into beautiful year-in-review reports. Track your GitHub contributions or Claude Code usage β€” all processed client-side in your browser.

✨ Features

  • 🎯 GitHub Wrapped: Discover how many years you've been coding, from your first commit to now
  • πŸ“Š Beautiful Visualizations: Year-long activity heatmaps, contribution streaks, top languages
  • ⚑ Simple & Fast: Just enter your GitHub username or upload Claude Code data
  • πŸ“Έ Share Ready: Download or copy your wrapped summary as a shareable image
  • πŸ”’ 100% Private: All processing happens in your browser, nothing uploaded to servers
  • πŸ’― Free & Open Source: No costs, no tracking, no limits
  • 🎨 Responsive Design: Works beautifully on desktop and mobile

πŸš€ Quick Start

Option 1: GitHub Wrapped (Recommended)

The easiest way to get your Year in Code report:

  1. 🌐 Visit yearincode.xyz
  2. πŸ“ Enter your GitHub username
  3. πŸŽ‰ Get your wrapped report instantly!

What you'll discover:

  • Years in Code: See which year of coding you're in (calculated from your very first commit!)
  • Total Contributions: All your commits, PRs, and issues for the year
  • Longest Streak: Your best consecutive contribution days
  • Top Languages: Your most-used programming languages
  • Peak Activity: Your most productive month and day of the week
  • Total Stars: Stars earned across all your repositories

Option 2: Claude Code Wrapped

For Claude Code users who want to visualize their AI-assisted coding activity:

Prerequisites

You need ccusage to generate your usage data. No installation needed:

# Check if you have Claude Code usage data
npx -y ccusage@latest daily

Step 1: Generate Your Data

Export your Claude Code usage as JSON:

# For 2025 data (macOS/Linux)
npx -y ccusage@latest daily --since 20250101 --until 20251231 --json > ~/Desktop/my-wrapped-2025.json

# For 2025 data (Windows PowerShell)
npx -y ccusage@latest daily --since 20250101 --until 20251231 --json > $HOME\Desktop\my-wrapped-2025.json

# For 2024 data
npx -y ccusage@latest daily --since 20240101 --until 20241231 --json > ~/Desktop/my-wrapped-2024.json

πŸ’‘ Tip: Always include @latest to ensure you're using the newest version of ccusage

Step 2: Get Your Wrapped Report

  1. 🌐 Visit yearincode.xyz
  2. πŸ”„ Switch to "Claude Code" tab
  3. πŸ“€ Upload your JSON file (drag & drop supported)
  4. πŸŽ‰ View your beautiful wrapped report!

What you'll get:

  • πŸ“Š Total Tokens: See your complete token usage for the year
  • πŸ”₯ Longest Streak: Your best coding consistency streak
  • πŸ€– Top 3 Models: Most-used Claude models (Sonnet, Opus, Haiku)
  • πŸ“… Activity Heatmap: 365-day visualization of your coding activity
  • πŸ“Έ Shareable Card: Beautiful summary card to download or share
Year in Code Screenshot
Year in Code Screenshot

Why Year in Code?

Year in Code transforms your coding data into an engaging year-in-review experience:

  • 🎁 Wrapped Experience: Inspired by Spotify Wrapped and GitHub Wrapped
  • 🎯 Unique Insight: Discover which year of coding you're in β€” from your very first commit!
  • πŸš€ Multi-Tool Support: Works with GitHub and Claude Code
  • πŸ”§ Simple to Use: No complex setup, just a username or a file upload
  • πŸ’ Open Source: Free for everyone to use and contribute

Development Setup

Prerequisites

  • Node.js 18+ installed

Installation

# Clone the repository
git clone https://github.com/isaadgulzar/year-in-code.git
cd year-in-code

# Install dependencies
npm install

# Run development server
npm run dev

Open http://localhost:3000 to see the app!

How It Works

Privacy First πŸ”’

  • GitHub Mode: Fetches public data from GitHub's API using the public GitHub Contributions API
  • Claude Code Mode: Processes your JSON file 100% client-side in your browser β€” your data never leaves your computer!

All processing happens in your browser. We don't store or collect any of your data.

Tech Stack

  • Framework: Next.js 15 (App Router)
  • Styling: Tailwind CSS
  • Language: TypeScript
  • Deployment: Vercel
  • APIs: GitHub Contributions API (public data only)

Development

# Run development server
npm run dev

# Build for production
npm run build

# Start production server
npm start

# Lint code
npm run lint

Deployment

Deploy to Vercel (Recommended)

Deploy with Vercel

  1. Click the button above
  2. Deploy - no environment variables needed!

Other Platforms

# Build the app
npm run build

# Deploy to Netlify, Railway, Cloudflare Pages, etc.

Environment Variables

No environment variables required! The app works completely standalone with no backend dependencies.

FAQ & Tips

How does "Xth Year In Code" work?

When you use GitHub mode, we find your very first commit date across all your public repositories and calculate how many years have passed since then. This gives you a unique perspective on your coding journey!

Is my data private?

Yes!

  • GitHub mode: Only fetches public contribution data that's already visible on your GitHub profile
  • Claude Code mode: Processes files entirely in your browser β€” nothing is uploaded to our servers

How do I get my Claude Code usage data?

You need the ccusage CLI. No installation required:

# Check your usage first
npx -y ccusage@latest daily

# Then export as JSON for Year in Code
npx -y ccusage@latest daily --since 20250101 --until 20251231 --json > ~/Desktop/my-wrapped.json

Can I use data from multiple years?

Currently, each upload processes one year at a time. Multi-year comparison is on the roadmap!

How do I share my wrapped report?

Click the "Download" button to save your summary card as PNG, or use "Copy" to copy it to your clipboard for easy sharing on social media. You can also use "Share on X" for direct Twitter sharing!

Can I share my GitHub wrapped with a direct link?

Yes! Use this format: yearincode.xyz/2025/github/your-username

Example: yearincode.xyz/2025/github/isaadgulzar

Roadmap

  • GitHub integration with "Years in Code" feature
  • Direct link sharing for GitHub wrapped
  • Support for more ccusage output formats
  • Multi-year comparison view
  • More detailed analytics (hourly breakdown, commit patterns)
  • Custom color themes
  • PDF export option
  • More AI coding tools (Cursor, Copilot)

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

MIT License - see LICENSE file for details

Acknowledgments

This project wouldn't exist without:

  • 🎡 Spotify Wrapped & GitHub Wrapped: Inspiration for the wrapped experience
  • 🌐 GitHub Contributions API: Powers our GitHub integration
  • πŸ”§ ccusage by @ryoppippi: The amazing CLI that powers Claude Code data generation
  • πŸ’œ Claude Code Community: For making AI-assisted coding amazing
  • πŸ™ Open Source: Built on the shoulders of giants (Next.js, Tailwind, html-to-image)

Special thanks to @winXzorin (Eren) for requesting the GitHub wrapped feature!

Support & Community

Related Projects


Built with ❀️ for developers worldwide

GitHub β€’ Website β€’ Twitter

About

Your AI Coding Year Wrapped πŸŽ‰ Generate beautiful Spotify Wrapped-style reports for Claude Code usage. Privacy-first, 100% free, open source.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •