API that generates GitHub-themed SVGs that show the percentage of a language in public repositories
Inspired by GitHub Readme Stats and Shields.io
Language Bar:
Language Button (default, high contrast, dimmed):
Language Bar:
Language Button (default, high contrast):
-
Generate a GitHub personal access token with
public_repo
permission
- Go to Vercel and
Continue with GitHub
- Click
Add New...
>Project
- Find your repository and click
Import
- Click
Environment Variables
and addGPL_TOKEN
andGPL_USERNAME
- (Optional) Add languages that you want to ignore as comma-separated values (no spaces)
-
Click
Deploy
-
Click
Continue to Dashboard
-
Check your domains under
DOMAINS
Copy and paste the following Markdown and change DOMAIN
, WIDTH
, and THEME
[![GitHub Profile Language Bar](DOMAIN/api/bar?width=WIDTH&theme=THEME)](https://github.com/yehwankim23/github-profile-languages)
Example:
DOMAIN
→https://github-profile-languages.vercel.app
WIDTH
→830
THEME
→dark
[![GitHub Profile Language Bar](https://github-profile-languages.vercel.app/api/bar?width=830&theme=dark)](https://github.com/yehwankim23/github-profile-languages)
Result:
Copy and paste the following Markdown and change DOMAIN
, LANGUAGE
, and THEME
[![GitHub Profile Language Button](DOMAIN/api/button?language=LANGUAGE&theme=THEME)](https://github.com/yehwankim23/github-profile-languages)
Example:
DOMAIN
→https://github-profile-languages.vercel.app
LANGUAGE
→C%2b%2b
(Percent-encoded "C++")THEME
→dark
[![GitHub Profile Language Button](https://github-profile-languages.vercel.app/api/button?language=C%2b%2b&theme=dark)](https://github.com/yehwankim23/github-profile-languages)
Result:
Visit DOMAIN/api/stats
for raw language statistics
Example:
DOMAIN
→https://github-profile-languages.vercel.app
https://github-profile-languages.vercel.app/api/stats
Result:
Or use the username
parameter to specify a user
Example:
DOMAIN
→https://github-profile-languages.vercel.app
USERNAME
→yehwankim23
https://github-profile-languages.vercel.app/api/stats?username=yehwankim23
ASCII | 2x | ASCII | 3x | ASCII | 4x | ASCII | 5x | ASCII | 6x | ASCII | 7x |
---|---|---|---|---|---|---|---|---|---|---|---|
space | %20 | : | %3a | @ | %40 | [ | %5b | ` | %60 | { | %7b |
! | %21 | ; | %3b | \ | %5c | | | %7c | ||||
" | %22 | < | %3c | ] | %5d | } | %7d | ||||
# | %23 | = | %3d | ^ | %5e | ~ | %7e | ||||
$ | %24 | > | %3e | _ | %5f | ||||||
% | %25 | ? | %3f | ||||||||
& | %26 | ||||||||||
' | %27 | ||||||||||
( | %28 | ||||||||||
) | %29 | ||||||||||
* | %2a | ||||||||||
+ | %2b | ||||||||||
, | %2c | ||||||||||
- | %2d | ||||||||||
. | %2e | ||||||||||
/ | %2f |