Git Product home page Git Product logo

moe-counter-cf's Introduction

Moe Counter CF

English | 中文

Fork of Moe Counter for fast global access powered by Cloudflare Workers.

Original Project | Cloudflare Workers | Cloudflare Workers KV

Demo

Gelbooru

More Themes and Customizations

A-SOUL (with theme=asoul&length=10)

A-SOUL

Moebooru (with theme=moebooru&length=auto)

Moebooru

Rule 34 (with theme=rule34&render=pixelated)

Rule 34

Usage

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}
  1. {id}: Any custom string between 1-256 chars (a-zA-Z0-9:.@_- allowed)
  2. {&theme}: asoul, gelbooru, moebooru, rule34 and two other themes (default: gelbooru)
  3. {&length}: Number between 1-10 (default: 7) or string auto
  4. {&render}: auto or pixelated (default: auto)
  5. {&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})

Self-hosting

  1. Create a Cloudflare Workers worker
  2. Create a Cloudflare Workers KV store
  3. Create your own wrangler.toml based on the wrangler.example.toml
  4. Modify settings.json in your preferred way
  5. Build the worker and publish it using wrangler publish

Credits

License

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

moe-counter-cf's People

Contributors

dsrkafuu avatar journey-ad avatar yude avatar d1y avatar imgbotapp avatar kusaremkn avatar dependabot[bot] avatar fossabot avatar nyanhello-saiong avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.