badgen.net/libs/index.md

15 KiB

Badgen Badgen

Fast badge generating service.

classic flat api

Usage

https://badgen.net/badge/:subject/:status/:color?icon=github
                   ──┬──  ───┬───  ──┬───  ──┬── ────┬──────
                     │       │       │       │       └─ Advanced Options (label, list, icon, color)
                     │       │       │       │
                     │      TEXT    TEXT    RGB / COLOR_NAME ( optional )
                     │
                  "badge" - default (static) badge generator

Available color names:

Available icons:

Available query params:

  • icon Use builtin icon in front of subject text. e.g.
  • list Set list=1 will replace , with | in status text. e.g.
  • label Override default subject text (URL-Encoding needed for spaces or special characters).
  • color Override badge color. e.g.

Advanced usage (for badge makers):

  • /runkit create arbitrary live badge with RunKit's online IDE.
  • /https create arbitrary live badge from arbitrary endpoint.

Examples

Static Badge

Preview URL
/badge/Swift/4.2/orange
/badge/license/MIT/blue
/badge/chat/on%20gitter/cyan
/badge/stars/★★★★☆
/badge/become/a%20patron/F96854
/badge/code%20style/standard/f2a
/badge/platform/ios,macos,tvos?list=1