An open API service indexing awesome lists of open source software.

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.

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`. |