Render multiple user badges into one SVG image.
- /badge/collection?username=pphatdev&type=visitors,total-stars,repositories
| Param | Description |
|---|---|
| username | GitHub username |
| type | Comma-separated user badge types |
Supported badge types:
- visitors
- repositories
- organization
- languages
- followers
- total-stars
- total-contributors
- total-commits
- total-code-reviews
- total-issues
- total-pull-requests
- total-joined-years
| Param | Description |
|---|---|
| columns | Number of columns in the grid (default: 1, max: 10) |
| gap | Gap between badges in pixels (default: 8, range: 0-100) |
| theme | Badge theme |
| customLabel | Custom label text (applies to all badges in the collection) |
| labelColor | Label text color |
| labelBackground | Label background color |
| iconColor | Icon color |
| valueColor | Value text color |
| valueBackground | Value background color |
Two badges in one SVG:
Multiple badges with 3 columns:
Custom columns and gap:
Single-row layout:
Theme:
Custom colors:
Theme + colors + columns + gap:
curl "https://stats.pphat.top/badge/collection?username=pphatdev&type=visitors,total-stars"
curl "https://stats.pphat.top/badge/collection?username=pphatdev&type=visitors,repositories,followers,total-stars&columns=2"
curl "https://stats.pphat.top/badge/collection?username=pphatdev&type=visitors,total-stars,repositories&theme=ocean"Missing username:
curl "https://stats.pphat.top/badge/collection?type=visitors,total-stars"Missing type:
curl "https://stats.pphat.top/badge/collection?username=pphatdev"Invalid type:
curl "https://stats.pphat.top/badge/collection?username=pphatdev&type=visitors,unknown-badge"Invalid columns:
curl "https://stats.pphat.top/badge/collection?username=pphatdev&type=visitors,total-stars&columns=0"