Skip to content

Self-hosted badge data via shields endpoint badges - #56

Merged
alDuncanson merged 1 commit into
masterfrom
endpoint-badges
Sep 4, 2026
Merged

Self-hosted badge data via shields endpoint badges#56
alDuncanson merged 1 commit into
masterfrom
endpoint-badges

Conversation

@alDuncanson

Copy link
Copy Markdown
Owner

Removes the last third-party badge middleman. We're two generations into single-maintainer VS Marketplace badge services dying (apphb → shields retirement → vsmarketplacebadges.dev); this makes the repo self-sufficient:

  • Badge Data workflow (daily cron + manual dispatch): queries the Marketplace extensionquery API once per day (vs once per README view — far gentler on the undocumented API than any badge service can be), formats the numbers, and force-pushes installs.json / rating.json in shields endpoint schema to an orphan badges branch.
  • README: the two remaining vsmarketplacebadges.dev badges (Marketplace installs, rating) now render via img.shields.io/endpoint from that branch. Same labels and colors as before.
  • The badges branch is already seeded and verified end-to-end — shields is currently rendering 133.97K from it, so the badges render correctly the moment this merges.

After merge: nothing required — the cron takes over (09:23 UTC daily). The workflow can also be run manually from the Actions tab anytime.

Left alone: CI, release, Open VSX, Spectra Assure, and stars badges — those sources are all first-party or documented.

A daily workflow queries the Marketplace stats API once, writes
shields endpoint JSON to the badges branch, and the README's
Marketplace installs/rating badges render from that — removing the
dependency on the third-party vsmarketplacebadges.dev service.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@alDuncanson
alDuncanson merged commit 293a8df into master Sep 4, 2026
1 check passed
@alDuncanson
alDuncanson deleted the endpoint-badges branch September 4, 2026 03:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant