Skip to content
ย 
ย 

Latest commit

ย 

History

21 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

GitHub PR Stats

ไธญๆ–‡ๆ–‡ๆกฃ | Read this document in Chinese

Version
React TypeScript Vite
Vercel Redis GraphQL

๐Ÿ† Showcase your open source achievements and make every merged PR a badge of honor.

Transform your scattered GitHub PR contributions into beautiful, shareable statistics. Perfect for resumes, portfolios, and technical recruiting.

โœจ Live Demo

Note: The following demos use public GitHub data accessible via the GitHub API for demonstration purposes only.

๐Ÿ“Š PR List Mode - Your Contribution Timeline

PR List Demo

๐Ÿ“ˆ Repository Stats Mode - Impact Overview

Repo Stats Demo Using Linux creator Linus Torvalds' public PR data for technical demonstration

โ˜€๏ธ Light Theme Available

Light Theme Demo

๐Ÿš€ Get Started in 2 Minutes

1. Deploy Instantly

Deploy with Vercel

For detailed setup instructions, see ๐Ÿ“š Documentation โ†’ ๐Ÿš€ Deployment Guide

2. Add to Your Profile

![My PR Stats](https://github-pr-stats-five.vercel.app/api/github-pr-stats?username=yourname)

3. Customize Your Display

# Show only merged PRs from high-star projects
![Elite Contributions](https://github-pr-stats-five.vercel.app/api/github-pr-stats?username=yourname&status=merged&min_stars=1000&limit=5)

# Repository overview with merge rates
![Repository Stats](https://github-pr-stats-five.vercel.app/api/github-pr-stats?username=yourname&mode=repo-aggregate)

๐ŸŽฏ Why Choose GitHub PR Stats?

Feature Benefit
๐ŸŽจ Two Display Modes PR timeline or repository overview - choose what fits your story
โšก Smart Caching Fast loading with Redis - your visitors won't wait
๐ŸŽฎ Visual Interface No code needed - configure everything with our web UI
๐ŸŒŸ Quality Focus Filter by stars to highlight your high-impact contributions
๐Ÿ“ฑ Works Everywhere SVG output works in GitHub, websites, presentations, anywhere
๐Ÿ”’ Privacy First Your tokens stay secure on the server

๐Ÿ† Perfect For

  • ๐ŸŽ“ Developers: Show your open source impact on LinkedIn, resume, or personal website
  • ๐Ÿข Companies: Quickly assess candidates' real-world contribution quality and consistency
  • ๐Ÿ“ˆ Project Maintainers: Visualize contributor engagement and project health metrics
  • ๐ŸŒŸ Open Source Stars: Celebrate your contributions to major projects like Linux, React, TensorFlow

๐ŸŽฎ Interactive Configuration

Frontend Demo Interface

Visit your deployed instance to use our visual parameter debugger:

  • Real-time Preview: See changes instantly as you adjust parameters
  • Smart Defaults: Interface adapts when you switch between PR list and repository modes
  • One-Click Copy: Generate and copy the perfect URL for your use case
  • Mobile Friendly: Configure on any device

๐Ÿ“š Documentation

๐Ÿ” GitHub Action (Markdown Updater)

Use this action from any repository to auto-update a markdown region.

name: Update My PR Stats

on:
  schedule:
    - cron: '15 2 * * *'
  workflow_dispatch:

permissions:
  contents: write

jobs:
  update-pr-stats:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v4

      - name: Update markdown region
        id: update
        uses: f14XuanLv/github-pr-stats@main
        with:
          username: ${{ github.repository_owner }}
          file: README.md
          commit_changes: true
          commit_message: 'docs: refresh PR stats'
          github_token: ${{ secrets.GITHUB_TOKEN }}
          mode: pr-list
          theme: dark
          status: all
          min_stars: 0
          limit: 10
          sort: status,stars_desc
          stats: total_pr,merged_pr,display_pr
          fields: repo,stars,pr_title,pr_number,status,created_date,merged_date

      - name: Show update result
        run: echo "changed=${{ steps.update.outputs.changed }}"

Add this region to your markdown file before running the workflow:

<!-- region github-pr-stats -->
<!-- endregion -->

๐ŸŽจ Themes & Customization

Choose from multiple themes and customize every aspect:

  • ๐ŸŒ™ Dark Theme - Perfect for developer portfolios
  • โ˜€๏ธ Light Theme - Great for professional websites
  • ๐ŸŽฏ Custom Fields - Show exactly what matters for your audience
  • ๐Ÿ“Š Smart Stats - Highlight your contribution metrics automatically

๐Ÿค Contributing

Pull Requests or Issues are welcome.

Contributors

โญ Star History

Star History Chart

๐Ÿ“„ License

MIT License - Completely free, contributions welcome


๐ŸŒŸ If this project helps you, please give it a Star!

About

๐Ÿ“Š Showcase your open source contributions with beautiful SVG tables. Display your merged PRs from prestigious projects.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages