https://github.com/gera2ld/cnt
https://github.com/gera2ld/cnt
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/gera2ld/cnt
- Owner: gera2ld
- Created: 2023-10-06T13:22:48.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-15T03:20:19.000Z (about 2 years ago)
- Last Synced: 2025-02-01T22:17:20.148Z (over 1 year ago)
- Language: HTML
- Homepage: https://cnt.deno.dev
- Size: 4.88 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Counter
Super light counter API powered by Hono and Deno.
- Data is stored in Deno KV.
- Easy setup with Deno Deploy or self-hosted.
## Usage
Get count with keys:
```bash
$ curl https://cnt.deno.dev/get/key1,key2
# -> {"data":{"key1":1024,"key2":0}}
```
Increment count with a `key`:
```bash
$ curl https://cnt.deno.dev/hit/key
# -> {}
```