No description
Find a file
2025-05-16 20:51:40 -04:00
api New API to generate badge 2025-05-16 20:28:21 -04:00
src 🚀 Init 2025-03-07 17:16:54 -05:00
test 🚀 Init 2025-03-07 17:16:54 -05:00
.gitignore 🚀 Init 2025-03-07 17:16:54 -05:00
index.ts 🚀 Init 2025-03-07 17:16:54 -05:00
LICENSE 🚀 Init 2025-03-07 17:16:54 -05:00
package.json 🚀 Init 2025-03-07 17:16:54 -05:00
README.md Remove SSR requirement 2025-05-16 20:51:40 -04:00
tsconfig.json 🚀 Init 2025-03-07 17:16:54 -05:00

Pingweak Badges

Pingweak badges, built for Astro.

Usage

Static

Using the API, you can get an image returned. SudoVanilla has a domain you can use.

Example for status.netweak.com:

<img alt="Status" src="https://netweak.badges.sudovanilla.org/api/get/status.netweak.com"/>

Pattern:

https://netweak.badges.sudovanilla.org/api/get/STATUS_PAGE.EXAMPLE.ORG

SSR

Import component:

import {SmallBadge} from "@sudovanilla/netweak-badges"

Create badge for overall status:

<SmallBadge Page="status.example.org"/>

Create badge for specific service:

<SmallBadge Page="status.example.org" Service="2"/>

To assign it to a specific service, take a look at your JSON response and use the number assigned to the service under services:

JSON Response