Alexander Beletsky's development blog

My profession is engineering

Github commits activity widget

The most important factor about each open source project is how much community is active around this project. It is good to understand the factor. One of the indicators of activity is of cause commits to repository. You probably want to demonstrate how much active your project is by placing some information on a web site.

Having this idea on my mind I created github.commits.widget, small javascript that could be easily integrated to your website and show something like this:

Note, it is not just html pasted.. but widget added to this blog post.

The code is really simple for that:

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js"></script>
<script src="github.commits.widget-min.js"></script>
<script>
    $(function () {
        $('#github-commits').githubInfoWidget(
      { user: 'alexbeletsky', repo: 'github.commits.widget', branch: 'master', last: 5 });
    });
</script>

To configure all you need to do: specify your github account, repository and branch to watch. For more documenation, please visit project page. If you like it and want to use it on your website, you are very welcome to do it! Please just give a little feedback to either by github, twitter or mail.