https://github.com/hellolingc/moon-counter
A fast, simple & powerful website visitor counter written with Golang
https://github.com/hellolingc/moon-counter
counter golang visitor-count
Last synced: 6 months ago
JSON representation
A fast, simple & powerful website visitor counter written with Golang
- Host: GitHub
- URL: https://github.com/hellolingc/moon-counter
- Owner: HelloLingC
- License: mit
- Created: 2023-12-23T03:29:17.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-26T10:05:23.000Z (over 2 years ago)
- Last Synced: 2025-09-29T14:48:24.226Z (10 months ago)
- Topics: counter, golang, visitor-count
- Language: Go
- Homepage: https://mini.moonlab.top/post/20231224-14/
- Size: 120 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Moon-Counter
English | [δΈζ](readme_cn.md)
A fast, simple & easy-to-use webpage visitor counter, but not only limited to websites.

[> Preview <](https://mini.moonlab.top/post/20231224-14/)
#### π Fast and Simple
#### π Easy Deployment
Run counter server with only one binary file, zero dependency. No annoying complex installation
#### π Secure [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) Support
Make it hard for strangers to use your counter service without permisson to tally for them
#### π SQLite Database.
Reeeallly easy to control and move
# Public Counter
You can use my public MoonCounter instance. But I don't have responsibility for its stablility. In fact, no one does. But as long as my blog website continues, the counter service is always public.
But i still recommand you self-host your owned service.
**Ofc, the use of my service is prohibited for illegal websites.**
## Image Counter
**Replace the UniqueID parameter with the webpage's url. At least it must be unique to identify your page.**
```

```
If you don't wanna handle UniqueID by yourself, you can use this. It will automatically handle the id param. You can just directly put it on your webpage to count.
```
```
## Text Counter
And this will only output plain count text. You also don't need to handle the uniqueid parameter by yourself.
```
```
# Self Host
Download the compressed file in [Release Page](/releases).
1.Decompress
```bash
$ tar -xf moon-counter.tar.gz
```
2.Adjust the config.yaml
```bash
$ nano config.yaml
```
3.Run
```bash
$ ./moon-counter
```
For more details and configuration help, Please visit [my blog](https://mini.moonlab.top/post/20231224-14/)
# Credits
visit https://mini.moonlab.top/post/20231224-14/
# License
MIT