Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature:Relative Growth Rate #183

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

abizek
Copy link

@abizek abizek commented Mar 12, 2024

Closes #28.

Relative growth rate gives crucial insights that can be helpful to both library users and maintainers. For example, if we look into the past 2 years, we can see that swr outran react-query in downloads around Oct 2023. But with the relative growth rate, we can see that swr usage grew faster than react-query from Sep 2022!

react-query vs swr number of downloads
react-query vs swr relative growth rate

Is this better than average growth rate #103? (IMO Yes)

Averages are prone to outliers skew. With npm packages, every holiday season sees a sharp decline in downloads(see the picture above, swr downloads dropped almost by half!). Relative growth rate provides a clear view by showing growth across all periods.

@johnmpotter It seems like you'll like this!

@uidotdev @benadam11 Please check this out when you get a chance!

Copy link

vercel bot commented Mar 12, 2024

@abizek is attempting to deploy a commit to the uidotdev Team on Vercel.

A member of the Team first needs to authorize it.

@abizek
Copy link
Author

abizek commented Mar 22, 2024

Another interesting example

image

image

If this growth continues, https://github.com/uidotdev/usehooks and usehooks-ts will outrun react-use 😄

@fseitun
Copy link

fseitun commented Mar 26, 2024

I think that a different way to see this is logarithmic scale, see

@abizek
Copy link
Author

abizek commented Mar 27, 2024

The logarithmic scale can be helpful to view downloads, but relative growth ranges only between [-100%, 100%]. So, the log scale won't be of much use here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature request: option to chart relative growth rates?
2 participants