Repo.js Fork / Download

Repo.js is a light-weight jQuery Plugin that lets you easily embed a Github repo onto your site. As a plugin or library author this is a great way to showcase the contents of a repo on a project page.

Brought to you by Darcy Clarke

Repo.js uses Markus Ekwall's jQuery Vangogh plugin for styling of file contents. Vangogh, subsequently, utilizes highlight.js, written by Ivan Sagalaev for syntax highlighting. Great work by two awesome folks. Respect.


Basic Embed:

$('#repo').repo({ user: 'darcyclarke', name: 'Repo.js' });

Basic Embed (with a hawt repo):

$('#repo2').repo({ user: 'h5bp', name: 'html5-boilerplate' });

Branch Specific Embed:

$('#repo3').repo({ user: 'h5bp', name: 'html5-boilerplate', branch: 'stripped' });

Github: Repo.js
Suggestions, problems, feedback?
Check Out the Repo