About • Features • Quick Start & Information
StarCards is a Cloudflare Worker that returns an SVG of the latest GitHub stars on your repositories. You deploy your own instance, then embed that URL in markdown.
- SVG built for GitHub READMEs
- Two layouts: stacked cards or a star feed
- Inlined GitHub avatars
- Cloudflare caches the SVG at the edge
Set OWNER in code/src/github.ts to your GitHub username. From code/:
pnpm install
pnpm deploy
Wrangler prints a *.workers.dev URL. Embed it:

<img src="https://starcards.<subdomain>.workers.dev/?width=640">

Note
Point OWNER at your GitHub user before you deploy. Cloudflare caches each URL for one hour.
https://starcards.<subdomain>.workers.dev/?width=640
width(required). SVG width in pixels. Must be a positive integer (for example640). Height follows the layout and the number of rows. Missing,0, or any non-integer returns HTTP 400 withwidth must be a positive integer.
https://starcards.<subdomain>.workers.dev/?width=640&cards=5
cards(optional). How many star rows to draw, between1and10. Omit it and the worker draws 3. Invalid values return HTTP 400 withcards must be an integer between 1 and 10.
https://starcards.<subdomain>.workers.dev/?width=640&layout=feed
layout(optional).cardorfeed. Omit it or passcardfor stacked cards (login, starred repo, time).feeddraws one line per event:login starred repo. Any other value returns HTTP 400 withlayout must be card or feed.
https://starcards.<subdomain>.workers.dev/?width=640&borderColor=2277ff
borderColor(optional). Card outline color as six hexadecimal digits. Use2277ffor%232277ff(the URL-encoded form of#2277ff). Defaults to#c69026and does not changelayout=feed. Invalid values return HTTP 400 withborderColor must be a six-digit hex.
