www.jsdelivr.com icon indicating copy to clipboard operation
www.jsdelivr.com copied to clipboard

[Feature Request] Show file sizes

Open lonix1 opened this issue 2 years ago • 4 comments

In the detail page for any package, it shows all the files within that package, and I can toggle the slider to select which ones I want.

It would be very helpful to show each file's size (in bytes or KiB).

lonix1 avatar Jun 25 '22 03:06 lonix1

In the upcoming redesign, we're going to add download counts there. I'm not sure if adding the size as well wouldn't look too cluttered (we can probably try) but the downloads should be a good indication of which files are useful as well.

image

MartinKolarik avatar Jun 25 '22 20:06 MartinKolarik

That would be very interesting, and in some cases it could be useful - e.g. it could tell you easily which file in a package is "the one", without consulting the docs (in case one is lazy :-) ).

But filesize is more important. In many packages there are multiple files and it's important to be able to reason about them. Sizes are important in deciding which to use.

The download counts are interesting, but the filesizes are important. Also I think the new design is very nice, not cluttered at all. And if something is necessary, it's necessary.

Looking forward to see what you folks come up with.

lonix1 avatar Jun 26 '22 02:06 lonix1

The CDN browser has file sizes, check it out https://cdn.jsdelivr.net/npm/react/

jimaek avatar Jun 26 '22 08:06 jimaek

Keep in mind most people will land on the homepage, search, and redirect to a page like this, which should also have filesizes.

But in the meantime, the page you posted is very helpful, thanks!

lonix1 avatar Jun 26 '22 10:06 lonix1