github-avatar-frame-api

GitHub Avatar Frame API

Officially accepted for GSSoC!

GSSOC


📊 Project Insights

🌟 Stars 🍴 Forks 🐛 Issues 🔔 Open PRs 🔕 Closed PRs 🛠️ Languages 👥 Contributors
Stars Forks Issues Open PRs Closed PRs Languages Count Contributors Count


<hr>

🎨 About GitHub Avatar Frame API

A free and open-source API to frame your GitHub avatar using creative themes. Perfect for README files, portfolios, or social media.

🌐 Live API: https://github-avatar-frame-api.onrender.com


📌 API Usage

Base Endpoint:

https://github-avatar-frame-api.onrender.com/api/framed-avatar/{username}?theme={theme}&size={size}&canvas={canvas}&shape={shape}&radius={radius}

Query Parameters:

Parameter Type Default Description Example
usernamestringrequiredGitHub usernameoctocat
themestringbaseFrame theme (eternity, base, flamingo)flamingo
sizeinteger256Avatar size in px (64–1024)300
canvasstringlightBackground color of avatar canvas: light / darkdark
shapestringcircleAvatar shape: circle or roundedrounded
radiusinteger25Corner radius for rounded shape in px50


Canvas, Shape & Radius Explained

Combine all three to customize your avatar:

Canvas Shape Radius Example URL Preview
light circle - URL
dark circle - URL
light rounded 20 URL
dark rounded 50 URL


Live Examples by Theme

Theme Canvas / Shape / Radius Preview Description
eternity light / circle / 0 Classic eternity theme, light background, circular avatar
eternity dark / circle / 0 Dark canvas version of eternity theme
base light / rounded / 20 Base theme, light background, rounded corners 20px
base light / rounded / 50 Base theme, light background, rounded corners 50px
flamingo dark / circle / 0 Flamingo theme, dark canvas
flamingo light / rounded / 30 Flamingo theme, light canvas, rounded corners 30px


Embed in README

![My Avatar](https://github-avatar-frame-api.onrender.com/api/framed-avatar/your-username?theme=flamingo&size=256&canvas=dark&shape=rounded&radius=20)

🤝 Contributing


⚙ Tech Stack


🔗 Links


🌟 Show Your Support


📜 License

MIT License