merit-0.1.1 has been yanked.
Merit
Fast badge generator for any purpose
Usage
Web
USAGE:
https://merit-badge.dev/badge/{subject}[/{text}][?params]
PATH:
/subject : String
/text (Optional) : String. Text can also be comma separated numbers for sparkline
QUERY PARAMS:
color : Any valid css color. Supports Color name, RGB and hex
icon : Icon cany be any "Brand" or "Solid" icons from fontawesome
icon_color : Any valid css color. Supports Color name, RGB and hex
style : [possible values: flat, classic] defaults to classic
size : [possible values: large, medium, small] defaults to small
| badge with only subject | https://merit-badge.dev/badge/subject |
|
| Default badge | https://merit-badge.dev/badge/subject/text |
|
| badge with medium size | https://merit-badge.dev/badge/size/medium?size=medium |
|
| badge with large size | https://merit-badge.dev/badge/size/large?size=large |
|
| red badge | https://merit-badge.dev/badge/color/red?color=ff0000 |
|
| badge with brand icon | https://merit-badge.dev/badge/icon/brand?icon=npm |
|
| badge with solid icon | https://merit-badge.dev/badge/icon/solid?icon=code |
|
| badge with sparkline chart | https://merit-badge.dev/badge/data/1,5,2,4,8,3,7 |
|
| flat badge | https://merit-badge.dev/badge/style/flat?style=flat |
Icon cany be any Brand or Solid icons from fontawesome Color can be any 6 or 8 digit hex color, a valid css color name or RGB / RGBA color
Services
Same query params as
/badgecan be applied any service
npm
USAGE:
GET VERSION : https://merit-badge.dev/npm[/@{scope}]/{package}
GET VERSION FOR A TAG : https://merit-badge.dev/npm[/@{scope}]/{package}/{tag}
GET LICENSE : https://merit-badge.dev/npm[/@{scope}]/{package}/lic
GET DOWNLOAD # : https://merit-badge.dev/npm[/@{scope}]/{package}/dl/{period}
GET DOWNLOAD SPARKLINE : https://merit-badge.dev/npm[/@{scope}]/{package}/hist/{period}
PATH:
/@{scope} : Scope of the npm package. Eg: /@angular
/{tag} : Specific tag of the package. Eg: beta, next, rc 1.0.8
/lic : Get the license of the package
/dl/{period} : Get download count for given period.
/hist/{period} : Get download trending in sparkline chart
Periods are: "d" for Daily, "w" for Weekly, "m" for Monthly, "y" for Yearly,
| https://merit-badge.dev/npm/typescript/next | |
| https://merit-badge.dev/npm/@types/react | |
| https://merit-badge.dev/npm/typescript/dl/m | |
| https://merit-badge.dev/npm/typescript/hist/m |
crates.io
USAGE:
GET VERSION : https://merit-badge.dev/crates/{package}
GET LICENSE : https://merit-badge.dev/crates/{package}/lic
GET DOWNLOAD # : https://merit-badge.dev/crates/{package}/dl
GET DOWNLOAD SPARKLINE : https://merit-badge.dev/crates/{package}/hist
PATH:
/lic : Get the license of the package
/dl : Get download count for given period.
/hist : Get download trending in sparkline chart
| https://merit-badge.dev/crates/actix-web | |
| https://merit-badge.dev/crates/actix-web/lic | |
| https://merit-badge.dev/crates/actix-web/dl | |
| https://merit-badge.dev/crates/actix-web/hist |
github
USAGE:
GET LICENSE : https://merit-badge.dev/github/{owner}/{name}/lic
GET START # : https://merit-badge.dev/github/{owner}/{name}/stars
GET WATCHERS # : https://merit-badge.dev/github/{owner}/{name}/watchers
GET FORKS # : https://merit-badge.dev/github/{owner}/{name}/forks
PATH:
/{owner} : User Name or Org
/{name} : Name of the repo
CLI