Skip to content
SegoCodePublic

About

Image of the latest GitHub stars on your repositories on your README

Resources

Code of conduct

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

74 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StarCards

About • Features • Quick Start & Information

About

Top language Repository size Commit activity per year AI: Highly Assisted Licencia: PolyForm Noncommercial + GNU AGPL-3.0 Bitcoin BTC

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.

Features

  • SVG built for GitHub READMEs
  • Two layouts: stacked cards or a star feed
  • Inlined GitHub avatars
  • Cloudflare caches the SVG at the edge

Quick Start & Information

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:

![stars](https://starcards.<subdomain>.workers.dev/?width=995)
<img src="https://starcards.<subdomain>.workers.dev/?width=640">
![stars](https://starcards.<subdomain>.workers.dev/?width=995&layout=feed)

Note

Point OWNER at your GitHub user before you deploy. Cloudflare caches each URL for one hour.

Available Parameters

https://starcards.<subdomain>.workers.dev/?width=640
  • width (required). SVG width in pixels. Must be a positive integer (for example 640). Height follows the layout and the number of rows. Missing, 0, or any non-integer returns HTTP 400 with width must be a positive integer.
https://starcards.<subdomain>.workers.dev/?width=640&cards=5
  • cards (optional). How many star rows to draw, between 1 and 10. Omit it and the worker draws 3. Invalid values return HTTP 400 with cards must be an integer between 1 and 10.
https://starcards.<subdomain>.workers.dev/?width=640&layout=feed
  • layout (optional). card or feed. Omit it or pass card for stacked cards (login, starred repo, time). feed draws one line per event: login starred repo. Any other value returns HTTP 400 with layout must be card or feed.
https://starcards.<subdomain>.workers.dev/?width=640&borderColor=2277ff
  • borderColor (optional). Card outline color as six hexadecimal digits. Use 2277ff or %232277ff (the URL-encoded form of #2277ff). Defaults to #c69026 and does not change layout=feed. Invalid values return HTTP 400 with borderColor must be a six-digit hex.

About

Image of the latest GitHub stars on your repositories on your README

Resources

Code of conduct

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages

Generated from SegoCode/template