Public stats & README badges
Embed dynamic SVG shields or fetch JSON telemetry directly into your GitHub README, portfolio, or personal dashboard.
@
Weekly time badge
Cumulative active coding hours across the last 7 days.
ClockedIn18h 45m this week
Markdown
Image URL
/api/stats?username=yourusername&type=weeklyToday's time badge
Focused coding duration in the current 24h UTC window.
ClockedIn3h 20m today
Markdown
Image URL
/api/stats?username=yourusername&type=todayAll-time total badge
Lifetime coding time recorded since account creation.
ClockedIn247h total
Markdown
Image URL
/api/stats?username=yourusername&type=total-timePublic JSON API
Fetch raw JSON telemetry for portfolio integrations or widgets without exposing secret API tokens.
/api/stats?username=yourusername&format=json
Response schemaapplication/json
{
"username": "yourusername",
"todayTotal": "3h 20m",
"weekTotal": "18h 45m",
"totalTime": "247h 15m"
}Query parameters
Customize any badge or JSON response by appending query parameters.
| Parameter | Type | Default | Description |
|---|---|---|---|
| username | string | (required) | Your registered GitHub username. |
| type | string | weekly | Metric to show: weekly, today, or total-time. |
| style | string | flat | Shield style: flat, for-the-badge, flat-square, plastic, or social. |
| color | string | 006ff0 | Right-side background color (hex without # or color name). |
| label | string | metric name | Custom left-side label text. |
| format | string | svg | Set to json to retrieve JSON payload instead of an SVG badge. |