Highly flexible github info card for every github lover. And it's open source. Please feel free to fork and build your own Octocard.
Easy way? Copy the following html code to your website.
<script
data-name="zmmbreeze"
<!--
Add or remove module which you want to show on your card.
data-modules="base,details,stats,repos,contributions,orgs"
-->
src="http://nodejs.in/octocard/bin/octocard.js"></script>
Advanced way:
<div id="octocard"></div>
<script>
OCTOCARD = {
// [required][string] Username.
name: 'zmmbreeze',
// [optional][string|Element]
// element or elementId, `octocard` as default.
element: 'octocard',
// [optional][string]
// Used module names, default is:
// `base,details,stats,repos,contributions,orgs`.
// You can change the order or remove module if you don't want.
// modules: 'base,details,stats,repos,orgs,eventsStatis',
// [optional][number] Number of repos to be shown.
// `3` as default
// reposNum: 4,
// [optional][number] Number of organizations to be shown.
// `-1` as default, represent showing all organizations.
// orgsNum: -1,
// [optional][string]url of jsonp api
// `http://octocard.info/api` as default.
// If your use your own octocard-server, change it.
// api: 'http://your-octocard-server.com/api',
// [optional][boolean]show footer or not
// 'false' as default
// noFooter: false
};
</script>
<script src="http://nodejs.in/octocard/bin/octocard.js"></script>
git clone https://github.com/zmmbreeze/octocard.git
cd octocard/themes
cp default.css mytheme.css
- Change the css style as you wish.
cd ../
npm install
grunt --theme=mytheme
- Then your will get
bin/octocard.mytheme.js
.
Octocard works on node server. You can use octocard.info. It's free. But if you want to build your own server, checkout server part.