Skip to main content
GitHub Stargazers Growth Plotter Banner

📈 GitHub Stargazers Growth Plotter

AwesomeDiscord Python GitHub CLI Matplotlib License: MIT GitHub followers

Note: As the stargazers API for 3rd party repos gets deprecated or restricted, repository owners can use this tool to easily fetch and publish their own repository's growth charts!

🚀 GitHub Stargazers Growth Plotter is an automated tool that fetches the stargazers history of any GitHub repository, caches it locally, and generates a stunning SVG growth plot. Designed for repository owners, this script can auto-publish charts directly to your README.md for maximum visibility and better SEO indexing of project metrics.

✨ Features

  • 🔐 Automated Authentication: Seamlessly integrates with your active GitHub CLI (gh) token. Zero manual token configuration required!
  • 🎯 Zero-Config Context: Automatically detects your current repository from your git config if run without arguments.
  • 🗄️ Local Caching: Caches historical stargazer data in a CSV file and dynamically appends it to your .gitignore to prevent accidental commits.
  • 📊 High-Quality Plotting: Renders beautiful, scalable vector .svg plots optimized for web display, saving them cleanly in an assets/ directory.
  • 📝 Auto-Publishing: With a simple flag, automatically inject your latest growth chart into your README.md within a perfectly centered HTML block.

🛠️ Prerequisites

  1. Python 3.x: Ensure Python is installed on your system.
  2. GitHub CLI (gh): You must have the GitHub CLI installed and authenticated.
    gh auth login
    
  3. Installation: Install the tool via PyPI:
    pip install github-growth-plotter
    
    (To install from source locally, clone the repo and run pip install .)

🚀 Usage Guide

1️⃣ Run for the current repository

If you are already inside a Git repository folder, you can simply run:

github-growth-plot

This detects the repository, downloads the stargazers to a CSV, and outputs the SVG plot in the assets/ directory.

2️⃣ Run for a specific repository

You can specify any repository using the standard owner/repo format:

github-growth-plot "google/jax"

3️⃣ Auto-publish to README

Want to display the chart on your project's main page? Pass the --publish flag:

github-growth-plot --publish

This automatically appends the following HTML snippet to the bottom of your README.md:

## Star History

<a href="https://star-history.com/#<username>/<reponame>&Timeline" align="center">
  <picture>
    <source media="(prefers-color-scheme: dark)" srcset="assets/<username>_<reponame>_growth.svg">
    <img alt="Star History Chart" src="assets/<username>_<reponame>_growth.svg">
  </picture>
</a>

📂 Generated Files

When executed, the script generates and manages the following files:

  • 🖼️ assets/<username>_<reponame>_growth.svg: The generated vector graph showing star growth over time.
  • 📄 <username>_<reponame>_stargazers.csv: Raw historical star data (automatically ignored via .gitignore).
  • 🙈 .gitignore: Updated automatically to ignore the generated CSV file.

Star History

Star History Chart

Made with ❤️ for Open Source Maintainers.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

github_growth_plotter-0.1.1.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

github_growth_plotter-0.1.1-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file github_growth_plotter-0.1.1.tar.gz.

File metadata

  • Download URL: github_growth_plotter-0.1.1.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.7

File hashes

Hashes for github_growth_plotter-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ad5e354f50a371b6a8da04269c08494110c4c00eef74615ee2f669dc2991fe1e
MD5 42c8d0eacf04197dedd237390093c3dc
BLAKE2b-256 dff3eb2ce0fd689467f4ddac9e0baa95dab4f37bab8c5119408b3e954e8ba8ed

See more details on using hashes here.

File details

Details for the file github_growth_plotter-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for github_growth_plotter-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 43813355fa35f8bf439980c5c7f9207f8b7c588fc687be79bf4926e1ce0ba54e
MD5 c5c4d576576e2a5974259965aec8a7b4
BLAKE2b-256 49a557f81342b757fb8a37e376a820524cda5d8b67ba298a50a3a68e96bd5c68

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page