npm-trends icon indicating copy to clipboard operation
npm-trends copied to clipboard

No one care about github stars?

Open SunHuawei opened this issue 6 years ago • 3 comments

I understand the count numbers of downloading can express the "real trends", but sometimes I really want to know the trend of the github stars. Anyone feel the same?

I didn't find any simple and direct api to get the star history, but I find a way which is used by timqian/star-history, it just use this api https://api.github.com/repos/${repo}/stargazers?page=${page} to fetch all the data. I think we can do the same. Certainly, we should cache the result in db. Only one thing is the rate limit. We may need a smart strategy for it.

So, what do you think?

SunHuawei avatar Apr 03 '19 09:04 SunHuawei

I use https://star-history.com/ alongside https://npmtrends.com/, but it would great if the star history was integrated into npm-trends!

jameshfisher avatar Sep 28 '22 09:09 jameshfisher

Or as a cheaper first draft: just link to star-history.com for the same set of packages. E.g. the page at https://npmtrends.com/react-beautiful-dnd-vs-react-dnd-vs-react-draggable would generate a link to: https://star-history.com/#atlassian/react-beautiful-dnd&react-dnd/react-dnd&react-grid-layout/react-draggable&Date and just call it "view this query on Star-History.com"

jameshfisher avatar Sep 28 '22 09:09 jameshfisher

Or as a cheaper first draft: just link to star-history.com for the same set of packages. E.g. the page at https://npmtrends.com/react-beautiful-dnd-vs-react-dnd-vs-react-draggable would generate a link to: https://star-history.com/#atlassian/react-beautiful-dnd&react-dnd/react-dnd&react-grid-layout/react-draggable&Date and just call it "view this query on Star-History.com"

That sounds really cool and easy to do!

GermanJablo avatar Sep 02 '23 14:09 GermanJablo