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.

Metadata

Release files for github-growth-plotter 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for github-growth-plotter 0.1.1
File Size Uploaded Provenance
github_growth_plotter-0.1.1.tar.gz 7.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for github-growth-plotter 0.1.1
File Interpreter ABI Platform
github_growth_plotter-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 15.8 kB

Release files / github_growth_plotter-0.1.1.tar.gz

Download URL github_growth_plotter-0.1.1.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ad5e354f50a371b6a8da04269c08494110c4c00eef74615ee2f669dc2991fe1e
BLAKE2b-256 checksum
How to use checksums
dff3eb2ce0fd689467f4ddac9e0baa95dab4f37bab8c5119408b3e954e8ba8ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / github_growth_plotter-0.1.1-py3-none-any.whl

Download URL github_growth_plotter-0.1.1-py3-none-any.whl
Size 8.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
43813355fa35f8bf439980c5c7f9207f8b7c588fc687be79bf4926e1ce0ba54e
BLAKE2b-256 checksum
How to use checksums
49a557f81342b757fb8a37e376a820524cda5d8b67ba298a50a3a68e96bd5c68
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Security for github-growth-plotter 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

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