Embed overview
GitStars.io embeds are public, cacheable endpoints for repository trend cards. They are useful in project READMEs, dashboards, landing pages, and internal reports.
Endpoint choices
Section titled “Endpoint choices”- Use
/api/embed/gitstars.svgwhen you need an image. - Use
/api/embed/gitstarswhen you need JSON plus a generated SVG URL.
Minimal example
Section titled “Minimal example”<img src="https://gitstars.io/api/embed/gitstars.svg?provider=github&repo=vercel/next.js" alt="GitStars.io trend for vercel/next.js"/>Requirements
Section titled “Requirements”The repository must exist in GitStars.io and have enough metric data for the selected range.