Skip to content

This is a little nodejs rest api that will return a badge for GitHub of active installations for a given HACS integration.

Notifications You must be signed in to change notification settings

KartoffelToby/hacs-statistics-badge

Repository files navigation

Active installations badge for HACS!

This is a little nodejs rest api that will return a badge for GitHub of active installations for a given HACS integration.

How to use

docker compose

    docker-compose up -d

docker run

    docker run -d -p 3000:3000 --name hacs-active-installations-badge kartoffeltoby/badge:latest

nodejs

    npm install
    npm start

Usage

Example

    curl http://localhost:3000/badge/better_thermostat

For GitHub

hacs_badge

    [![hacs_badge](http://localhost:3000/badge/better_thermostat?cache=1)]()

Using GitHub Actions

Look the config from this repo path after deploy to the badge is yourdomain.?cache=1

like: https://kartoffeltoby.github.io/hacs-statistics-badge/?cache=1

About

This is a little nodejs rest api that will return a badge for GitHub of active installations for a given HACS integration.

Topics

Resources

Stars

Watchers

Forks