Fork of Moe Counter for fast global access powered by Cloudflare Workers.
Original Project | Cloudflare Workers | Cloudflare Workers KV
Upstream themes: journey-ad/Moe-Counter
More Themes and Customizations
A-SOUL (with theme=asoul&length=10)
Moebooru (with theme=moebooru&length=auto)
Rule 34 (with theme=rule34&render=auto)
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}:gelbooru,moebooru,rule34and other themes (default:gelbooru){&length}: Number between1-10(default:7) or stringauto{&render}:autoorpixelated(default:pixelated){&darkmode}: Dark mode support,light,darkorauto(default:auto)- (Uncommon)
{&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}
PUT https://count.dsrkafuu.net/api/{id}
DELETE https://count.dsrkafuu.net/api/{id}
PUT/DELETE is not enabled in public counter.
All endpoints need Authorization: {secret} in header configured in settings.json.
HTML and Markdown
<img src="https://count.dsrkafuu.net/{id}" alt="{id}" />

[](https://count.dsrkafuu.net/{id})
- Create a Cloudflare Workers worker
- Create a Cloudflare Workers KV store
- Create your own
wrangler.jsonbased on thewrangler.example.json - Modify
settings.jsonin your preferred way - Build the worker and publish it using
npm run build && npx wrangler login && npx wrangler deploy
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