packagephobia icon indicating copy to clipboard operation
packagephobia copied to clipboard

Feature request: show the number of dependencies

Open JosephusPaye opened this issue 5 years ago • 1 comments

Thanks for this, it's a great tool that I use frequently.

When comparing two packages, I find that the first thing I want to know after the publish and install sizes is the number of (direct) dependencies. For this I've had to use the npm website together with Package Phobia. It would be nice to have the number of dependencies displayed in Package Phobia.

It could look something like the following:

Screen shot of Package Phobia showing the package ava with number of dependencies

The bars for versions could also show the number of dependencies on hover, in addition to what they currently show.

JosephusPaye avatar Apr 03 '21 06:04 JosephusPaye

Good idea! Indeed, the reason for linking Package Phobia to npm is for those additional details.

In #124 we added the file count. So we could also add the dependency count on hover.

I kinda want to avoid too many numbers on the main page here because it can become noisy.

styfle avatar Apr 04 '21 19:04 styfle