This is a little nodejs rest api that will return a badge for GitHub of active installations for a given HACS integration.
docker-compose up -d
docker run -d -p 3000:3000 --name hacs-active-installations-badge kartoffeltoby/badge:latest
npm install
npm start
curl http://localhost:3000/badge/better_thermostat
[![hacs_badge](http://localhost:3000/badge/better_thermostat?cache=1)]()
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