Skip to content

Improve npmx custom badge #341

@Gugustinette

Description

@Gugustinette

We can already render classic version badge using the /api/registry/badge/[...pkg] route :

Image

We could go further and provide a parameterized route, which can display the data for any field available in npmx :

  • License
  • Install size
  • Monthly/Weekly downloads
  • Vulnerabilities
  • Number of dependencies
  • Last updated date

I might miss some fields, but that's the idea.

Metadata

Metadata

Assignees

No one assigned

    Labels

    frontFrontend, Designhelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions