Fork of Moe Counter for fast global access powered by Cloudflare Workers.
Original Project | Cloudflare Workers | Cloudflare Workers KV
More Themes and Customizations
A-SOUL (with theme=asoul&length=10
)
Moebooru (with theme=moebooru&length=auto
)
Rule 34 (with theme=rule34&render=pixelated
)
Public Counter
https://count.dsrkafuu.net/{id}
https://count.dsrkafuu.net/{id}?theme={asoul,gelbooru,moebooru,rule34}&render={auto,pixelated}&length={1-10,auto}&add={0,1}
{id}
: Any custom string between 1-256 chars (a-zA-Z0-9:.@_-
allowed){&theme}
:asoul
,gelbooru
,moebooru
,rule34
and two other themes (default:gelbooru
){&length}
: Number between1-10
(default:7
) or stringauto
{&render}
:auto
orpixelated
(default:auto
){&add}
: Controls whether make the counter count or not (default:1
)
You can custmize the default bahaviors by self-hosting the counter.
Make a pull request to add your id in settings.json
to use the free public counter. Recommend to use user:usage
like string as ID for better management and potential issue tracking.
API Endpoints
GET https://count.dsrkafuu.net/api/{id}
DELETE https://count.dsrkafuu.net/api/{id}
DELETE is not enabled in public counter.
HTML and Markdown
<img src="https://count.dsrkafuu.net/{id}" alt="{id}" />
![{id}](https://count.dsrkafuu.net/{id})
[![{id}](https://count.dsrkafuu.net/{id})](https://count.dsrkafuu.net/{id})
- Create a Cloudflare Workers worker
- Create a Cloudflare Workers KV store
- Create your own
wrangler.toml
based on thewrangler.example.toml
- Modify
settings.json
in your preferred way - Build the worker and publish it using
wrangler publish
This project and all contributors shall not be responsible for any dispute or loss caused by using this project.
This project is released under the MIT
License, for more information read the License.
Copyright (c) 2020 journey-ad, 2022 DSRKafuU