📊 Embed your GitHub calendar everywhere.
JavaScript HTML CSS
Latest commit 6141942 Dec 13, 2016 @IonicaBizau committed on GitHub Merge pull request #39 from govorov/gh-pages
erratum fix
Failed to load latest commit information.
dist Little fixes Sep 16, 2016
example erratum fix Dec 13, 2016
lib Fix cal query selector Sep 15, 2016
.gitignore Updated docs Apr 26, 2016
CONTRIBUTING.md Updated docs Apr 26, 2016
DOCUMENTATION.md Updated docs Jun 3, 2016
LICENSE 📝 Jan 6, 2016
README.md erratum fix Dec 13, 2016
package.json erratum fix Dec 13, 2016



Patreon PayPal AMA Version Downloads Get help on Codementor

Embed your GitHub contributions calendar anywhere.

Everybodywell, haters gonna hate loves GitHub and everybody loves stats. So, why not making the GitHub contributions calendar available for being embeded in your web pages? Now you can. 🎉

☁️ Installation

Check out the dist directory to download the needed files and include them on your page.

If you're using this module in a CommonJS environment, you can install it from npm and require it:

$ npm i --save github-calendar
<!-- Include the library. -->

<!-- Optionally, include the theme (if you don't want to struggle to write the CSS) -->

<!-- Prepare a container for your calendar. -->
<div class="calendar">
    <!-- Loading stuff -->
    Loading the data just for you.

    GitHubCalendar(".calendar", "your-username");

Here you can see this example in action.

📝 Documentation

GitHubCalendar(container, username, options)

Brings the contributions calendar from GitHub (provided username) into your page.


  • String|HTMLElement container: The calendar container (query selector or the element itself).
  • String username: The GitHub username.
  • Object options: An object containing the following fields:
    • summary_text (String): The text that appears under the calendar (defaults to: "Summary of pull requests, issues opened, and commits made by <username>").
    • proxy (Function): A function that receives as argument an url (string) and should return the proxied url. The default is using @izuzak's urlreq.
    • global_stats (Boolean): If false, the global stats (total, longest and current streaks) will not be calculated and displayed. By default this is enabled.


  • Promise A promise returned by the fetch() call.

😋 How to contribute

Have an idea? Found a bug? See how to contribute.

💰 Donations

Another way to support the development of my open-source modules is to set up a recurring donation, via Patreon. 🚀

PayPal donations are appreciated too! Each dollar helps.

Thanks! ❤️

🍰 Thanks

  • Big thanks to @izuzak for creating the urlreq project–the default proxy used by this library. 🍰
  • Part of the CSS code was taken from the GitHub profile page to offer the same experience. 🎨


  • github-profile-languages—Create a nice pie chart with the user's programming languages from their GitHub profile.
  • github-org-members.js—A JavaScript library for fetching and rendering in HTML the members of a GitHub organization.
  • gh-contributions—A tool that generates a repository which being pushed into your GitHub account creates a nice contributions calendar.
  • github-emojify—Emojify your GitHub repository descriptions.
  • github-stats—Visualize stats about GitHub users and projects in your terminal.
  • github-labeller—Automagically create issue labels in your GitHub projects.
  • cli-gh-cal—GitHub like calendar graphs in command line.
  • gh-destroy—Delete multiple GitHub repositories.
  • ship-release—Publish new versions on GitHub and npm with ease.
  • github-calendar-legend—The GitHub contributions calendar colors.
  • github-pr-branch-links—Open in a new tab the clicked branch on a pull request page.
  • github-emoji-form-submit—Autocomplete selected Emoji when submitting forms on GitHub.com.
  • gh-repeat—Repetitive actions on multiple GitHub repositories.
  • gh-repos—Get one or all the owner repositories from GitHub.
  • github-old-header—Brings the old header links back.
  • gh.js—Tiny GitHub API wrapper for server and client.
  • ghcal—See the GitHub contributions calendar of a user in the command line.
  • sort-github-user-repos—Sort GitHub repositories by stars for user.
  • github-calendar-parser—Parses the GitHub contributions calendar SVG code into JSON.
  • gh-notifier—Receive desktop notifications from your GitHub dashboard.
  • octimatch—A matching game with GitHub's Octicons.
  • github-portfolio—A tool to generate a portfolio using data from your Github projects.
  • gh-polyglot—Get language stats about GitHub users and repositories.
  • cli-github—A fancy GitHub client for command line.
  • github-calendar—Embed your GitHub contributions calendar anywhere.
  • git-stats—Local git statistics including GitHub-like contributions calendars.
  • repository-downloader—Download all the repositories from BitBucket and GitHub, including your account, teams and where you created pull requests.
  • github-colors—GitHub colors and file extensions mapping

📜 License

MIT © Ionică Bizău