The simplest way to track the number of people viewing your GitHub projects!
You can view info on a specific project ("path") by going to hitcount.dev/p/GITHUB_NAME/REPO_NAME. Example:
https://hitcount.dev/p/lukeeey/hitcount
Go to the path info URL from above and append .json to the end. Example:
https://hitcount.dev/p/lukeeey/hitcount.json
For even more customization of your badge, you can use the shields.io API.
- Take the path info URL from above and append
.shields.json. Example:https://hitcount.dev/p/lukeeey/hitcount.shields.json - Go to the shields.io endpoint badge page and input the Shields JSON url above
- Customize styles, etc.
- You should end up with a URL somewhat similar to
https://img.shields.io/endpoint?url=https%3A%2F%2Fhitcount.dev%2Fp%2Flukeeey%2Fhitcount.shields.json&style=for-the-badge&labelColor=red
To use this shields.io URL in your README, insert it like this (ensuring to replace the placeholders):
[](YOUR_SHIELDS_IO_URL)