Embed endpoints
GET /api/embed/gitstars.svg
Section titled “GET /api/embed/gitstars.svg”Returns an SVG chart card.
curl "https://gitstars.io/api/embed/gitstars.svg?provider=github&repo=vercel/next.js&theme=light&range=1y&metric=stars"GET /api/embed/gitstars
Section titled “GET /api/embed/gitstars”Returns JSON metadata and the matching SVG path.
curl "https://gitstars.io/api/embed/gitstars?provider=github&repo=vercel/next.js"Parameters
Section titled “Parameters”| Parameter | Values | Default |
|---|---|---|
provider | github, gitlab | required |
repo | full repository name | required |
theme | light, dark | light |
range | 30d, 90d, 1y, all | 1y |
metric | stars, forks | stars |
width | 320 to 1200 | 600 |
height | 220 to 800 | 380 |