Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.
/ github-anywhere Public archive

An experimental JavaScript platform for adding follow, watch, and fork widgets to any site with a simple HTML snippet.

License

Notifications You must be signed in to change notification settings

abraham/github-anywhere

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

GitHub Anywhere

An experimental JavaScript platform for adding GitHub follow, watch, and fork widgets to any site with a simple HTML snippet. You can try out a demo on http://abraham.github.com/github-anywhere.

Warning

GHA is alpha quality. It may break things and could have security vulnerabilities. Use at your own risk.

Using GHA

To add GHA to your site add the following snippet inside of the <head> section of your page.

<script src='https://githubanywhere.appspot.com/github-anywhere.js'></script>
<script>
  GitHubAnywhere(function(G) {
   G.buttons();
  });
</script>

Adding the following links to your page will create a user follow button and a watch repo button. Be sure to replace :user with the GitHub username and :repo with the repository name.

<a href='http://github.com/:name' class='github-anywhere' data-user=':name'>Follow :name on GitHub</a>
<a href='http://github.com/:name/:repo' class='github-anywhere github-anywhere-watch' data-user=':name' data-repo=':repo'>Watch :name/:repo on GitHub</a>

For example a follow button for abraham would look like this:

<a href='http://github.com/abraham' class='github-anywhere' data-user='abraham'>Follow abraham on GitHub</a>

Support

If you find bugs or have any feature requests please let us know.

Browser support

While GHA is primarily tested in Google Chrome it should work in any modern browser with localStorage support.

Hacking

Interested in hosting your own version or participating in the development? The code is hosted on GitHub under an MIT license. Feel free to fork, hack, and generally tear apart the code. Be sure to jump into the Google Group and say hi!

Credits

The proxy for the GitHub API is hosted on Google App Engine. The platform uses easyXDM, jQuery and David Walsh's GitHub buttons.

Authors

GHA is maintained by:

Abraham Williams - @abraham - the@abrha.am - http://abrah.am

Ryan LeFevre - @meltingice - meltingice8917@gmail.com - http://meltingice.net

About

An experimental JavaScript platform for adding follow, watch, and fork widgets to any site with a simple HTML snippet.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published