Automatically generate citation badges from Google Scholar and a manually supplied Web of Science peer review count.
Citations badge:
Reviews badge:
- Fork this repository
- Set up GitHub Secrets (Repository Settings → Secrets → Actions):
SCHOLAR: Your Google Scholar IDWOS_OVERWRITE: Your Web of Science peer review count (optional)DEPLOY_TOKEN: Used withDEPLOY_TARGETto trigger another repository's deployment workflow after citation data updates (optional)DEPLOY_TARGET: Target workflow inowner/repo@ref:workflow_idformat, such asyourusername/your-site@main:deploy.yml(optional)
- Enable GitHub Pages to use the
distbranch
This is additive to the existing GitHub Actions/GitHub Pages flow, not a replacement.
Run the service:
docker run --rm -d --name citation-badge \
-p 8000:8000 \
-v "$PWD/data:/data" \
-e PUID="$(id -u)" \
-e PGID="$(id -g)" \
-e SCHOLAR='WLN3QrAAAAAJ' \
controlnet/citation-badgeOr if you prefer to build by yourself:
docker build -t controlnet/citation-badge .Required env vars:
SCHOLAR: Your Google Scholar IDWOS_OVERWRITEis optional and generates the Web of Science peer review badge when set to a non-negative integer
Optional runtime user mapping:
PUIDdefaults to1000PGIDdefaults to1000- Set them to
$(id -u)/$(id -g)if you want the containerized service process to match your current host user
Mounted state volume:
-v "$PWD/data:/data"keeps the service’s runtime state and latest promoted release outside the container.
Then you can access the served files as same as the GitHub, such as localhost:8000/all.svg, localhost:8000/citation.json, etc.
Badges update automatically hourly. Embed them in your sites:


