> ## Documentation Index
> Fetch the complete documentation index at: https://docs.advay.ca/llms.txt
> Use this file to discover all available pages before exploring further.

# Badge (SVG)

Render an SVG badge with the current count (does not increment).

Query params: `id`, `label`, `style` (omit or `terminal`/`mono`), `color` (classic), `bg`, `labelColor`, `valueColor`, `font` (terminal style).

Example

```bash theme={null}
open "https://<deployment>/badge?id=home&style=terminal&label=hits&bg=%23101414&valueColor=%233cffb3"
```


## OpenAPI

````yaml GET /badge
openapi: 3.0.3
info:
  title: nums API
  version: 1.0.0
  description: Simple hit counter and badge service.
servers:
  - url: https://nums.advay.ca
security: []
paths:
  /badge:
    get:
      summary: Render SVG badge
      parameters:
        - in: query
          name: id
          schema:
            type: string
        - in: query
          name: label
          schema:
            type: string
          example: views
        - in: query
          name: style
          schema:
            type: string
          example: terminal
          description: Use terminal/mono for terminal style; omit for classic
        - in: query
          name: color
          schema:
            type: string
          example: blue
          description: Classic badge color (ignored for terminal style)
        - in: query
          name: bg
          schema:
            type: string
          example: '#101414'
        - in: query
          name: labelColor
          schema:
            type: string
        - in: query
          name: valueColor
          schema:
            type: string
        - in: query
          name: font
          schema:
            type: string
      responses:
        '200':
          description: SVG image

````