Skip to content

TechQuanta/github-avatar-frame-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

173 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Frame Your Profile


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


๐Ÿงช Live Examples by Theme


๐Ÿ’ป CLI Usage

The GitHub Avatar Frame API comes with a command-line interface (CLI) for easy avatar generation directly from your terminal. Perfect for developers who prefer working in code editors and terminals.

๐Ÿš€ Installation

Option 1: Install globally from npm

npm install -g github-avatar-frame-cli

Option 2: Use locally (from project root)

# Build the CLI
npm run build:cli

Use the CLI

npm run cli -- <command>

๐Ÿ“– Usage

Generate an avatar:

github-avatar-frame generate <username> [options]

Examples:

# Basic usage
github-avatar-frame generate octocat

# With custom theme and size
github-avatar-frame generate octocat --theme flamingo --size 512

# With text overlay
github-avatar-frame generate octocat --text "GitHub User" --text-color "#ff0000"

# With emojis
github-avatar-frame generate octocat --emojis "๐Ÿš€,๐Ÿ’ป,๐Ÿ”ฅ" --emoji-position corners

# Save to custom file
github-avatar-frame generate octocat --output my-avatar.png

# Use local API server
github-avatar-frame generate octocat --url http://localhost:3000

โš™๏ธ CLI Options

Option Default Description
--theme, -tbaseFrame theme (base, classic, darkmode, eternity, flamingo, gitblaze, macros, minimal, neon, ocean, starry)
--size, -s256Avatar size in pixels (64-1024)
--canvas, -clightBackground color (light, dark)
--shape, -shcircleAvatar shape (circle, rounded)
--radius, -r25Corner radius for rounded shape
--text, -txnoneCustom text to display
--text-color, -tc#ffffffText color in HEX format
--text-size, -ts20Text size in pixels (8-100)
--text-position, -tpbottomText position (top, bottom, center)
--emojis, -enoneComma-separated list of emojis
--emoji-size, -es40Emoji size in pixels (16-120)
--emoji-position, -eptopEmoji position (top, bottom, corners)
--output, -oavatar.pngOutput file path
--url, -uhttps://github-avatar-frame-api.onrender.comAPI base URL

๐Ÿ“‹ Other Commands

# List available themes
github-avatar-frame themes

# Show API information
github-avatar-frame info

# Show help
github-avatar-frame --help

๐Ÿค– AI-Powered Frame Suggestions

The CLI also supports AI-powered frame suggestions that analyze your GitHub profile and recommend the perfect theme:

# Get AI-powered frame suggestion
github-avatar-frame suggest <username>

# Example
github-avatar-frame suggest octocat
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
textstringoptionalCustom text to display on avatarHello World
textColorstring#ffffffColor of text in HEX format#ff0000
textSizeinteger20Size of text in pixels (8-100)24
textPositionstringbottomPosition of text: top / bottom / centertop
emojisstringoptionalComma-separated list of emojis๐Ÿš€,๐Ÿ’ป,๐Ÿ”ฅ
emojiSizeinteger40Size of emojis in pixels (16-120)30
emojiPositionstringtopPosition of emojis: top / bottom / cornerscorners

๐Ÿ“Œ Example with text and emojis:

https://github-avatar-frame-api.onrender.com/api/framed-avatar/octocat?theme=base&text=GitHub%20User&textColor=%23ffffff&textSize=20&textPosition=bottom&emojis=%F0%9F%9A%80%2C%F0%9F%92%BB%2C%F0%9F%94%A5&emojiSize=30&emojiPosition=top
Canvas Shape Radius Example URL Preview
light circle - URL
dark circle - URL
light rounded 20 URL
dark rounded 50 URL

๐Ÿ“ฅ 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)

๐Ÿ”ง Development Issues: ๐Ÿงฐ Installation problems

npm cache clean --force rm -rf node_modules package-lock.json npm install

๐Ÿ”Œ Port conflicts ๐Ÿ”Ž Check if port 3000 is in use netstat -ano | findstr :3000 Kill process or change port in server config

About

Design ๐Ÿฆ‘your avatar for readme with out API & CLI ๐Ÿ’ป !

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 28