Help request to compute the amount of disk space and bandwidth wasted by useless published items? #178676
Replies: 3 comments 8 replies
This comment was marked as off-topic.
This comment was marked as off-topic.
-
Beta Was this translation helpful? Give feedback.
-
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
Dear maintainers,
I'd like to conduct a survey about the amount of disk space and bandwidth wasted on the npm registry by items that are never used by package consumers - i.e. items that are published in the registry and are never imported by projects and / or products, because they technically can't be imported or because they are not supposed to be.
Typically, the following items are a waste of resources, hanging around, only taking space in the registry and in the client systems:
If you need an example of what I mean,
svgicons2svgfontis a good one:https://www.npmjs.com/package/svgicons2svgfont?activeTab=code
The package comes with sources, source maps, tests, and a package.json that holds 190 line when only around 80-90 are actually needed to consume the package. It consumes 425KB on my computer, when only 280KB are reachable and required to make it work. Around 30% of its size is just wasted.
My objective is to compute the total amount of space occupied by this uneeded published information, accross all packages (public and, ideally, private) in order to write a paper about it and, hopefully, raise awareness and initiate a change in both npm and client sides.
Is there a way to achieve such a thing, using a public API, or maybe by having access to some data that npm's maintainer are likely to possess? I don't care about the content - except for package.json files. I'm only interested in file types (path and extension) and their size.
Thanks in advance,
Eric.
Beta Was this translation helpful? Give feedback.
All reactions