Skip to content

🎫 BoardGameGeek badge which counts the number of owned games

Notifications You must be signed in to change notification settings

TobseF/board-game-geek-badge

Repository files navigation

🎫 BoardGameGeek Game Counter Badge

This is a BoardGameGeek-Badge SVG graphic which shows the number of owned games. The counter gets automatically updated by a GitHub CI workflow.

board-game-count

⭐ Features

⭐ Customizable
⭐ SVG graphic
⭐ Always up to date
⭐ Image hosted by GitHub
⭐ Git based stats history
⭐ No API key is needed

📖 How it works

This update-badge-script.js Node.js script reads the BoardGameGeek API and writes the game stats into an SVG template file (board-game-geek-count-template.svg). If the generated badge is newer then the file in the repository, it commits the new generated board-game-geek-count.svg to this GIT repository. The pipeline gets triggered by a cron job, which automatically updates the image every midnight.

You can link the generated file by:
https://raw.githubusercontent.com/{userName}/github-badge/master/github-repo-count.svg

🛠 Config

The script can be configured to generate a badge for any user:

Releases

No releases published

Packages