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

Cache results #32

Closed
1 of 2 tasks
lishaduck opened this issue Dec 6, 2024 · 4 comments
Closed
1 of 2 tasks

Cache results #32

lishaduck opened this issue Dec 6, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@lishaduck
Copy link

Feature request

I'd be nice if pkg-size served cached sizes; it seems to store them, given the badges at the bottom of the pages.

Motivations

I would love to be able to view packages sizes quickly.

Alternatives

Wait for a webcontainer to boot if I accidentally close a tab. Especially relevant for large packages like ESLint configs.

Additional context

Semi-related: #22.

Bugs are expected to be fixed by those affected by it

  • I'm interested in working on this issue

Compensating engineering work financially will speed up resolution

  • I'm willing to offer financial support
@lishaduck lishaduck added the enhancement New feature or request label Dec 6, 2024
@privatenumber
Copy link
Owner

Unfortunately, caching would require a database, and we’d need to move npm install from the browser to the server for data integrity. This means we’ll need to set up a server and secure funding for it, which I don't think I have capacity for.

@lishaduck
Copy link
Author

The badges had looked like they had ids, but I looked again and realized that they're just the size in bytes. I assumed there was already a server, but as there isn't, I agree that this is doesn't really make sense.

@lishaduck lishaduck closed this as not planned Won't fix, can't repro, duplicate, stale Dec 7, 2024
@styfle
Copy link

styfle commented Dec 9, 2024

See https://github.com/styfle/packagephobia if you want caching

@lishaduck
Copy link
Author

I used it for a while, but I've found pkg-size to be more in-depth and is stabler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants