Dynamically generate a Steam profile stats card for your GitHub README.
Inspired by github-stats-extended and github-readme-stats.
Paste this into your GitHub profile README, replacing YOUR_STEAM_ID with your Steam64 ID:
[](https://steamcommunity.com/profiles/YOUR_STEAM_ID)Don't know your Steam ID? Use your vanity URL name instead:
[](https://steamcommunity.com/id/YOUR_USERNAME)The card shows:
- Avatar — Your Steam profile picture
- Username — Your Steam persona name
- Steam Level — Your Steam level badge
- Games Owned — How many games you own
- Hours Played — Total playtime across all games
Add &theme=light for a light-themed card (default is dark).
[](https://steamcommunity.com/profiles/YOUR_STEAM_ID)- Go to your Steam profile
- Look at the URL:
- Steam64 ID — The 17-digit number:
steamcommunity.com/profiles/76561197960435530 - Vanity URL — Your custom name:
steamcommunity.com/id/anuraghazra
- Steam64 ID — The 17-digit number:
If you don't have a custom URL set, use the numeric Steam64 ID.
Visit https://YOUR_VERCEL_DOMAIN.vercel.app/ to use the interactive wizard. Enter your Steam ID, see a live preview, and copy the markdown code.
- A Vercel account (free tier works)
- A Steam Web API key (free)
- Node.js 18+ (for local testing)
- Vercel CLI (optional)
- Clone or fork this repo.
- Install Vercel CLI:
npm i -g vercel - In the project directory, run:
vercel
- Follow the prompts to link your Vercel account.
- Set the environment variable:
Paste your Steam Web API key when prompted.
vercel env add STEAM_API_KEY
- Deploy:
vercel --prod
Or deploy directly from GitHub:
(When using the Vercel import flow, add STEAM_API_KEY as an environment variable.)
- Create a
.envfile:STEAM_API_KEY=your_key_here - Run:
vercel dev
- Open
http://localhost:3000to see the frontend.
| Parameter | Type | Required | Description |
|---|---|---|---|
steamid |
string | No* | Steam64 ID (17-digit number) |
username |
string | No* | Vanity URL name (custom profile URL slug) |
theme |
string | No | Card theme: dark (default) or light |
*You must provide either steamid or username.
Returns an SVG image with Content-Type: image/svg+xml.
MIT