npm-trends
npm-trends copied to clipboard
No one care about github stars?
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?
I use https://star-history.com/ alongside https://npmtrends.com/, but it would great if the star history was integrated into npm-trends!
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"
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!