8 releases

0.1.7 Jan 2, 2024
0.1.6 Dec 20, 2023
0.1.5 Sep 3, 2023
0.1.4 Aug 3, 2023
0.1.0 Jan 6, 2023

#1470 in Parser implementations

Download history 94/week @ 2024-03-13 92/week @ 2024-03-20 78/week @ 2024-03-27 90/week @ 2024-04-03 108/week @ 2024-04-10 69/week @ 2024-04-17 80/week @ 2024-04-24 87/week @ 2024-05-01 42/week @ 2024-05-08 81/week @ 2024-05-15 78/week @ 2024-05-22 76/week @ 2024-05-29 62/week @ 2024-06-05 66/week @ 2024-06-12 46/week @ 2024-06-19 41/week @ 2024-06-26

225 downloads per month
Used in 2 crates


139 lines

GitHub star history

github crates.io build status

Command line program to generate a graph showing number of GitHub stars of a user, org or repo over time.

$ cargo install star-history

Compiler support: requires rustc 1.46+


star history of rust-lang/rust


We require a token for accessing GitHub's GraphQL API. If you have the GitHub CLI (gh) installed, you can run gh auth status to find out whether a token is already set up on your machine, and gh auth login if one isn't.

$ gh auth login

$ star-history dtolnay
$ star-history serde-rs
$ star-history rust-lang/rust

Simply pass multiple arguments to display multiple users or repositories on the same graph.

The generated graphs use D3; the star-history command should pop open a browser showing your graph. It uses the same mechanism that cargo doc --open uses so hopefully it works well on various systems.

If you prefer not to use the gh CLI, you can instead provide a token to star-history through the GITHUB_TOKEN environment variable. Head to https://github.com/settings/tokens and click "Generate new token (classic)". The default public access permission is sufficient — you can leave all the checkboxes empty. Save the generated token somewhere like ~/.githubtoken. Then export GITHUB_TOKEN=$(cat ~/.githubtoken) prior to running star-history commands.


Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.


~98K SLoC