svelte-society / sveltesociety.dev

The Svelte Society website
https://sveltesociety.dev/
MIT License
362 stars 208 forks source link

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

Open benmccann opened 1 month ago

benmccann commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

We can pull several stats like:

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 commented 1 month ago

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