Yet another GitHub stats card generator.
Modern UI Github Action for your profiles.
Generates an SVG with your GitHub stats:
- ⭐ Stars (total across all your repos)
- 📝 Commits (all time, not just last year)
- 🍴 Forks
- 🐛 Issues
- 🔀 PRs
- 📦 Repos you've contributed to
Updates daily via GitHub Actions.
Commits the new SVG automatically.
Go to Settings → Developer settings → Personal access tokens → Fine-grained tokens
No extra access needed, default scope works good.
Repo → Settings → Secrets and variables → Actions → New repository secret
Name: GH_TOKEN
Value: your token
Actions → Generate GitHub Profile Stats SVG → Run workflow
Or just wait until midnight UTC, it runs daily.
Force dark theme:
Auto theme:
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/YOUR_USERNAME/git-pf-stats-svg/raw/master/output/dark.svg">
<img alt="Github stats" src="https://github.com/YOUR_USERNAME/git-pf-stats-svg/raw/master/output/light.svg">
</picture># install deps
npm i
# start dev server
npm run dev
# with mock data
npm run dev:mock
# build svg
npm run build
# build frontend
npm run build:clientTo run dev server with actual data setup .env
- Node.js
- D3 + jsdom for SVG generation
- GitHub GraphQL API
- Chokidar for file watching in dev mode
- Svelte + vite for dev server frontend