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

Fetch weekly downloads from npm and allow sorting by downloads #660

Open
benmccann opened this issue Aug 8, 2024 · 3 comments
Open

Fetch weekly downloads from npm and allow sorting by downloads #660

benmccann opened this issue Aug 8, 2024 · 3 comments

Comments

@benmccann
Copy link
Collaborator

benmccann commented Aug 8, 2024

Very different numbers than our current star count. bits-ui is the most downloaded, but way down the list in terms of stars

https://npmcharts.com/compare/sveltestrap,@sveltestrap/sveltestrap,@skeletonlabs/skeleton,flowbite-svelte,bits-ui

@benmccann
Copy link
Collaborator Author

It turns out that bits-ui suggested to users by shadcn-svelte, which is the second most starred, so actually going by stars is reasonably good at surfacing shadcn-svelte in this case. Though while they're both the top two most popular in either case, there's still quite a difference between skeleton and shadcn-svelte/bits-ui in terms of which is more popular if you go by stars vs downloads

https://star-history.com/#huntabyte/shadcn-svelte&skeletonlabs/skeleton&Date

@MacFJA
Copy link
Collaborator

MacFJA commented Aug 9, 2024

We can pull several stats like:

  • Download
    • Download for the last week
    • Download for the last month
    • Download for the last year
  • Package scoring (the default order of NPM.org)

The "issue" I see is: where to put all this information on the package's card.
If I'm able to sort on criteria, I often like to compare a result with its direct siblings (if two packages differ by 1% or by 50% it's not the same impact)

@benmccann
Copy link
Collaborator Author

We could put the npmcharts favicon next to the star count and you could click through to package there. That would take up a lot less room than displaying the count. It would also let you toggle between daily, weekly, and monthly

Screenshot from 2024-08-09 13-34-56

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

No branches or pull requests

2 participants