Vercel app that generates a pastel ombre GitHub stats SVG card with a cat icon.
- API endpoint:
/api/stats?username=...&theme=pink|blue|green|orange - Landing page:
/(a small UI to enter username and copy README/curl text)
Set environment variable:
GITHUB_TOKEN(required for GitHub GraphQL requests)
Generate an SVG stats card:
https://<your-vercel-project>.vercel.app/api/stats?username=YOUR_USERNAME&theme=pinkThemes supported: pink | blue | green | orange | pride (rainbow)
Open:
https://<your-vercel-project>.vercel.app/
Enter a username → it loads the SVG and lets you copy:
- README markdown snippet:
<img src="https://<your-vercel-project>.vercel.app/api/stats?username=YOUR_USERNAME&theme=pink" alt="GitHub Stats" /> - curl command
npm install
npx vercel dev --listen 3000Then try:
curl -i "http://localhost:3000/api/stats?username=octocat&theme=pink" > stats.svgAnd open: