Skip to content

JSON Format to enhance customization with shields.io #117

Description

@aptyp4uk1337

Hi, many people have already mentioned this issue regarding badge customization, and the fact that it depends on the library used to render the badge.

I suggest simply adding a JSON format that will return the number of views and update accordingly.

For example, something like https://komarev.com/ghpvc/?username=ApTyp4uK1337&format=json

Response:

{
  "views": "1337"
}

So, by using the features of shields.io (https://shields.io/badges/dynamic-json-badge), we can create a customizable badge.

https://img.shields.io/badge/dynamic/json?url=https://komarev.com/ghpvc/?username=ApTyp4uK1337&format=json&query=$.views&style=flat&label=Profile views

This will resolve the issue with the styles, the label color, and the icon placement all at once.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions