Github Readme Activity Graph
Supported by JetBrains
A dynamically generated activity graph to show your GitHub activities of last 31 days.Table of contents
- Table of contents
- How to Use
- Use themes
- Available Themes
- Customization
- Deploy on your own Aws instance
- Deploy on your own Replit instance
- Contributing
How to Use
Just paste the following URL in your profile readme and you are good to go.
Pass your username
in the URL
[![soburjon's github activity graph](https://master.d1wlzgoxcnlxwr.amplifyapp.com/graph?username=Soburjon19)](https://github.com/Soburjon19/github)
Attention ⚠
Use themes
username=Soburjon19&theme=theme_name
[![Soburjon's github activity graph](https://master.d1wlzgoxcnlxwr.amplifyapp.com/graph?username=Soburjon19&theme=dracula)](https://github.com/Soburjon19/github)
Manual Customization is also available
Available Themes
Name | Preview |
---|---|
Default (cotton candy) | |
react | |
react-dark | |
github | |
xcode | |
rogue | |
merko | |
vue | |
tokyo-night | |
high-contrast |
For more themes click here
Customization
Customize the appearance of your Activity Graph however you want with URL params.
Common Options
Arguments | Description | Type of Value |
---|---|---|
bg_color |
card's background color | hex code (without # ) |
color |
graph card's text color | hex code (without # ) |
title_color |
graph card's title color | hex code (without # ) |
line |
graph's line color | hex code (without # ) |
point |
color of points on line graph | hex code (without # ) |
area_color |
color of the area under the graph | hex code (without # ) |
area |
shows area under the graph | boolean (default: false ) |
hide_border |
makes the border of the graph transparent | boolean (default: false ) |
hide_title |
sets the title to an empty string | boolean (default: false ) |
custom_title |
set the title to any string | string |
theme |
name of available themes | string |
radius |
border radius of graph | number (0-16 inclusive) |
custom_title
please make sure that you are using %20 for spaces
Example:
custom_title=This%20is%20a%20title
[![Soburjon's github activity graph](https://master.d1wlzgoxcnlxwr.amplifyapp.com/graph?username=Soburjon19&custom_title=This%20is%20a%20title&hide_border=true)](https://github.com/Soburjon19/github)
Example:
[![Soburjon's github activity graph](https://master.d1wlzgoxcnlxwr.amplifyapp.com/graph?username=Soburjon19&bg_color=fffff0&color=708090&line=24292e&point=24292e&area=true&hide_border=true)](https://github.com/Soburjon19/github)
Deploy on your own Heroku instance
The GitHub API only allows limited requests per hour, my https://master.d1wlzgoxcnlxwr.amplifyapp.com/graph could possibly hit the rate limiter. If you host it on your own Heroku server, then you don't have to worry about anything.
You may use the server used by this project at https://master.d1wlzgoxcnlxwr.amplifyapp.com/ and pass in your username to access your graph.
E.g. https://master.d1wlzgoxcnlxwr.amplifyapp.com/graph?username=<your_username>
However, if there are a large number of requests or if the Aws Amplify account being used for the project runs out of dyno hours your graph will not load.
Step-by-step instructions for deploying to Aws Amplify (from UI)
- Sign in to Heroku or create a new account at https://aws.amazon.com/
- Click the Deploy button below
- On the page that comes up, click "Deploy App" at the end of the form
- Once the app is deployed, click "Manage App" to go to the dashboard
- Visit the "Settings" tab and click "Reveal Config Vars"
- Visit this link to create a new Personal Access Token
- Scroll to the bottom and click "Generate token"
- Add the token as a Config Var with the key
TOKEN
- Scroll down to the Domains section to find the URL you will use in place of
https://master.d1wlzgoxcnlxwr.amplifyapp.com/
Step-by-step instructions for deploying to AWS Amplify (from CLI)
- Make a AWS Amplify account.
- Install the AWS Amplify CLI
- Mac: Find the Mac installer here
- Ubuntu:
sudo snap install aws --classic
- Windows: Find the Windows installer here
- Clone the repository:
git clone https://github.com/Soburjon19/github.git
- Navigate in to the directory:
cd github
- Login to Aws:
AWS Amplify login
- Create Aws app:
AWS Amplify create
and copy the URL you are given as output. - Deploy app to AWS:
git push AWS Amplify master
- Generate personal access token. Copy your token.
- Set token as heroku config var:
AWS Amplify config:set TOKEN=<your token goes here>
Now just add the following to your profile readme and you're good to go.
![Github Activity Graph](<url from step 6>/graph?username=<username>)
Deploy on your own Replit instance
Step-by-step instructions for deploying to Replit (from UI)
- Sign in to Replit or create a new account at https://replit.com
- Click the Deploy button below
- On the page that comes up, choose language as
Node.js
and then clickImport from GitHub
Button
- Visit the "Settings" tab and click "Reveal Config Vars"
- Visit this link to create a new Personal Access Token
- Scroll to the bottom and click "Generate token"
- Wait clone done and add
Secrets
with yourGithub token
- Click the green
RUN
button on top, the console will run and at last the url will shows on the right - Now just add the following to your profile readme and you're good to go
![Github Activity Graph](<url from step 5>/graph?username=<username>)
Contributing
Please read through our contributing guidelines. Directions are included for opening issues, coding standards, and notes on development.