A responsive and customizable Github heatmap calendar for Vue.js
npm install vue-github-calendar
import { GithubCalendar } from "vue-github-calendar";
<GithubCalendar
:user="username"
:months="months"
:rangeColors=['#ebedf0', '#dae2ef', '#c0ddf9', '#73b3f3', '#3886e1', '#17459e']/>
type: String The Github username you want to show latest activity.
type: Number The number of months from now you want to display. By default, you'll have the 12 past months.
type: Array The colors used to display the amount of activity on a given day. Use this to accord the calendar with your website visual identity. By default, the original colors from githug will be used
You'll need to set an environment variable named VUE_APP_GH_TOKEN
to be able to retrieve the data.
Use a .env.local
file to store it or add it directly in your system's environment variables.
Follow (this)[https://developer.github.com/v4/guides/forming-calls/#authenticating-with-graphql] to get your token.
- Color range legend
- Display the week days on the left
- Display the months above the calendar
- Add tooltips (X contributions on DD-MM-YYYY)
- Allow to get a specific period (from, to)