Skip to content

Highlight packages with no dependencies #1900

Closed as not planned
Closed as not planned

Description

@nstepien

Describe the feature

Just an idea, but it'd be nice if npmx would highlight packages with 0 direct dependencies.
Maybe a nice green banner, to contrast with other warning banners.

Additional information

  • Would you be willing to help implement this feature?

Final checks

Activity

  1. floatDreamWithSong commented on Mar 9, 2026

    @floatDreamWithSong

    Hi, I’d like to take this issue. But before implementation, I’d like to clarify the definition of “direct dependencies” to make sure the behavior matches expectations. Should “0 direct dependencies” mean:

    1. Only dependencies are counted
    2. dependencies + devDependencies are counted
    3. All dependency fields declared in package.json are counted ? ( for example : dependencies、 devDependencies、peerDependencies ...)

    Once clarified, I’ll proceed with the implementation. Thanks!

  2. nstepien commented on Mar 9, 2026

    @nstepien
    Author

    Basicallly 1.
    The intent is to show "this package will not balloon up the size of your node_modules", and also that 0 deps means reducing the risk of upcoming security issues.

  3. nicolo-ribaudo commented on Mar 12, 2026

    @nicolo-ribaudo
    Contributor

    I posted this in #2046, but I also think that it would be good to still show the "dependencies" section on the sidebar, even if it's empty.

    It makes it so that I have to look in a single place to know what deps a package has, rather than looking in different places (sidebar vs banner) depending on whether the package has some or none.

  4. ghostdevv commented on Mar 20, 2026

    @ghostdevv
    Member

    We decided to not show a banner when a package has no dependencies, see this message here as to why - as for @nicolo-ribaudo's request for always showing the dependencies section, I've created #2168

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    frontFrontend, Design

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions