Skip to content

Easier to use badge code #35

@benmccann

Description

@benmccann

Feature request

Right now the install size requires an ID like 36256258 that changes with every version:

<a href="https://pkg-size.dev/@sveltejs/kit"><img src="https://pkg-size.dev/badge/install/36256258" title="Install size for @sveltejs/kit"></a>

It would be nice if the package name could instead be used:

<a href="https://pkg-size.dev/@sveltejs/kit"><img src="https://pkg-size.dev/badge/install/@sveltejs/kit" title="Install size for @sveltejs/kit"></a>

This would be an alias for the latest run ID for that package. It wouldn't rerun the calculation as that's expensive.

Motivations

I don't want to have to update my README with each new release. I don't mind visiting the site again to kick off a new run too much, but I'd rather avoid the churn to my file inside git

Alternatives

No response

Additional context

No response

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions