alemoraru/github-flex
Flex your GitHub stats with customizable SVG badges for your profile. Because your GitHub profile deserves to look as good as your code...right?!
GitHub Flex
Flex your GitHub stats with customizable SVG badges for your profile. Because your GitHub profile deserves to look as
good as your code...right?!
๐ Quick Start
Use the following Markdown snippets to add your GitHub stats, languages, or specific repo info to your profile README:


For a detailed example, check the paramters section below. Alternatively, you can also check the
website to see the available themes and options: https://github-flex.vercel.app
๐ Available Endpoints
/api/stats
Display your GitHub statistics including stars, commits, PRs, issues, and contributed repositories.
Parameters:
username(required) - Your GitHub usernametheme(optional) -default,dark,radical,merko,gruvbox,tokyonight,bubblegum,ocean(default:
default)hide_border(optional) -trueorfalse(default:false)hide_title(optional) -trueorfalse(default:false)
Examples:
/api/languages
Show your most used programming languages across all repositories.
Parameters:
username(required) - Your GitHub usernametheme(optional) -default,dark,radical,merko,gruvbox,tokyonight,bubblegum,ocean(default:
default)langs_count(optional) - Number of languages to display (default:5)exclude(optional) - Comma-separated list of languages to exclude (e.g.,HTML,CSS)hide_border(optional) -trueorfalse(default:false)hide_title(optional) -trueorfalse(default:false)
Examples:
/api/repo
Display statistics for a specific repository including stars, forks, language, and open issues.
Parameters:
username(required) - Repository owner's usernamerepo(required) - Repository nametheme(optional) -default,dark,radical,merko,gruvbox,tokyonight,bubblegum,ocean(default:
default)hide_border(optional) -trueorfalse(default:false)
Examples:
๐ป Local Development
# Install
pnpm install
# or: npm install
# Build
pnpm build
# or: npm run build
# Test without Vercel CLI
node sandbox/test-stats.js torvalds
node sandbox/test-languages.js torvalds 8
node sandbox/test-repo.js torvalds linux
node sandbox/test-svg.js torvalds dark
node sandbox/test-languages-svg.js torvalds dark 8
node sandbox/test-repo-svg.js torvalds linux darkโ๏ธ Deploy to Vercel
- Fork this repo
- Connect to Vercel
- (Optional) Add
GITHUB_TOKENenv variable for higher rate limits
๐ฌ Feedback & Contributions
Got suggestions, issues, or ideas for improvement? Feel free to open an issue or submit a pull request.
Contributions are always welcome!
๐ Code Quality & Guidelines
In order to maintain a high-quality codebase, please adhere to the following guidelines when contributing:
- Follow the existing code style and conventions used in the project:
- Adhere to
prettierformatting rules for consistent code style. You can runpnpm run format:checkto check for
formatting issues andpnpm run format:fixto automatically fix them. - Follow
eslintrules to ensure code quality and catch potential issues. You can runpnpm run lint:checkto
check for linting issues andpnpm run lint:fixto automatically fix them.
- Adhere to
- Write clear and concise commit messages that describe the changes made.
- Fill in the PR template with the actual changes and relevant information when submitting a pull request.
๐ License
This project is licensed under the MIT License.