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

[Feature Request] Show file sizes #440

Open
lonix1 opened this issue Jun 25, 2022 · 4 comments
Open

[Feature Request] Show file sizes #440

lonix1 opened this issue Jun 25, 2022 · 4 comments

Comments

@lonix1
Copy link

lonix1 commented Jun 25, 2022

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).

@MartinKolarik MartinKolarik transferred this issue from jsdelivr/jsdelivr Jun 25, 2022
@MartinKolarik
Copy link
Member

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

@lonix1
Copy link
Author

lonix1 commented Jun 26, 2022

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.

@jimaek
Copy link
Member

jimaek commented Jun 26, 2022

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

@lonix1
Copy link
Author

lonix1 commented Jun 26, 2022

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants