https://github.com/oolunar/cloudflareroutetracker
Keeps track of how many times a specific HTTP Route has been requested. Explicit support for GitHub Profiles and Repositories.
https://github.com/oolunar/cloudflareroutetracker
Last synced: 3 months ago
JSON representation
Keeps track of how many times a specific HTTP Route has been requested. Explicit support for GitHub Profiles and Repositories.
- Host: GitHub
- URL: https://github.com/oolunar/cloudflareroutetracker
- Owner: OoLunar
- License: mit
- Created: 2025-04-01T23:59:56.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2025-05-15T07:26:13.000Z (5 months ago)
- Last Synced: 2025-07-19T08:53:49.052Z (3 months ago)
- Language: TypeScript
- Homepage:
- Size: 153 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cloudflare Route Tracker
This repository is a CloudFlare worker that tracks how many times a route has been accessed. It uses CloudFlare's Workers KV to store the data and returns the number of times a route has been accessed as a Shield.io badge. All routes are case-insensitive. To use this worker, embed the below URL in your markdown or HTML as an image:
```
https://cloudflare-route-tracker.oolunar.workers.dev/
```| Query Parameter | Description |
| ---------------------- | ------------------------------------------------------------------------------------------------------ |
| `add=` | Locally appends the number to the route. Will not modify the actual route hit count. |
| `color=` | The color of the left side of the shield. |
| `label=` | The label to display on the shield. |
| `labelColor=` | The color of the label. |
| `links=[, ]` | A Javascript array supporting up to two links. |
| `logo=` | Can either be a base64 encoded image or a [simple-icons](https://simpleicons.org/) slug. |
| `logoColor=` | The color of the logo. Either a hex color or a CSS color. |
| `logoEmbed` | Embeds the logo into the response instead of having it as a link. Useful for |
| `noIncrement` | If set, the route will not be incremented. Good for testing. |
| `style=` | The style of the shield. Can be either `flat`, `flat-square`, `for-the-badge`, `social`, or `plastic`. |