Skip to content

mrf345/gh-used-by

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gh-used-by

Simple serverless wrapper to fetch a GitHub project dependents (Used-by) count, and generate shields.io badge. Do check the live demo!

Examples

React Badge Angular Badge Svelte Badge

<a href="https://github.com/facebook/react/network/dependents" target="_blank">
    <img src="https://used-by-cc7fc.web.app/badge?account=facebook&project=react&label=React&color=blue&logo=github" alt="React Badge" />
</a>
<a href="https://github.com/angular/angular/network/dependents" target="_blank">
    <img src="https://used-by-cc7fc.web.app/badge?account=angular&project=angular&label=Angular&color=red&logo=github" alt="Angular Badge" />
</a>
<a href="https://github.com/sveltejs/svelte/network/dependents" target="_blank">
    <img src="https://used-by-cc7fc.web.app/badge?account=sveltejs&project=svelte&label=Svelte&color=orange&logo=github" alt="Svelte Badge" />
</a>

Self-hosting

This project's based on Firebase cloud functions and cloud hosting, to self-host it you'll need to create a Blaze account here, then do the following:

  1. create a new project and copy the project id (secondary header under the project name i.e used-by-cc7fc)
  2. replace used-by-cc7fc in .firebaserc with your project id
  3. install firebase-cli instructions
  4. run firebase serve, checkout http://localhost:5000/, and make sure everything works locally
  5. finally deploy the project with firebase deploy

About

Generate GitHub dependents (Used-by) shields.io badge.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published