A serverless API that generates dynamic SVG stat cards for osu! players. Perfect for displaying your osu! stats on GitHub profiles (why would you want to do that huh), websites, or anywhere that supports SVG images. If ANY of you ever say this is AI I will hunt you down and kill you. Spent like 2 days on just absolute positioning and people be like "oh its AI".
- Dynamic SVG generation with real-time osu! statistics
- Extended stats display option via query parameters
- XP progress bar with percentage indicator
- Serverless deployment on Vercel
Add this to your GitHub README or any markdown file:
[](https://osu.ppy.sh/users/your_username)https://osu-stats-embed.vercel.app/api/{username}
Control which stats are displayed using query parameters:
| Parameter | Default | Description |
|---|---|---|
stats |
false |
Show extended stats |
/api/elirif?stats=true
- Node.js 16+ installed
- Vercel account
- osu! API v1 key (Get one here)
- Clone the repository:
git clone https://github.com/saddexed/osu-stats-embed.git
cd osu-stats-embed- Install dependencies:
npm install- Create
.envfile:
OSU_API_KEY=your_api_key_here- Test locally:
npm run devVisit http://localhost:3000/api/your-username to see your stats card.
- Install Vercel CLI:
npm i -g vercel- Deploy:
vercel-
Add environment variable in Vercel dashboard:
- Go to your project settings
- Add
OSU_API_KEYwith your osu! API key
-
Your API will be live at
https://your-project.vercel.app/api/username
GPL-3.0 License - see LICENSE file for details.
Contributions are welcome! Feel free to open issues or submit pull requests.
- osu! API for providing player statistics
- Vercel for serverless hosting
- Inspired by osu-score-embed