Simple serverless wrapper to fetch a GitHub project dependents (Used-by) count, and generate shields.io badge. Do check the live demo!
<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>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:
- create a new project and copy the project id (secondary header under the project name i.e
used-by-cc7fc) - replace
used-by-cc7fcin.firebasercwith your project id - install
firebase-cliinstructions - run
firebase serve, checkout http://localhost:5000/, and make sure everything works locally - finally deploy the project with
firebase deploy