Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/changkun/urlstat
📈 URL access statistic service
https://github.com/changkun/urlstat
go golang pv-systems url-stats
Last synced: about 2 months ago
JSON representation
📈 URL access statistic service
- Host: GitHub
- URL: https://github.com/changkun/urlstat
- Owner: changkun
- License: mit
- Created: 2021-02-04T07:08:28.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-11-21T08:39:21.000Z (10 months ago)
- Last Synced: 2024-06-21T14:09:40.206Z (3 months ago)
- Topics: go, golang, pv-systems, url-stats
- Language: Go
- Homepage: https://changkun.de/s/urlstat
- Size: 1.8 MB
- Stars: 19
- Watchers: 3
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - changkun/urlstat - 📈 URL access statistic service (Go)
README
# urlstat
`urlstat` provides basic facility for pv/uv statistic cross websites.
It is designed for [blog.changkun.de](https://blog.changkun.de),
[golang.design/research](https://golang.design/research) and etc.## Usage
### Plain Mode
Add the following script to a page:
```html
```
The script will look for elements with ID `urlstat-site-pv`, `urlstat-site-uv`, `urlstat-page-pv`, and `urlstat-page-uv` and manipulate the information
if the retrieve succeed. For instance:```html
```An example, see https://golang.design/research/zero-alloc-call-sched/
![image](https://user-images.githubusercontent.com/5498964/107117728-9cc01700-687c-11eb-92a3-495a4672717a.png)
### GitHub Mode
Use query parameter: `mode=github` and `repo=username/reponame`. For instance:
```
![](https://changkun.de/urlstat?mode=github&repo=changkun/urlstat)
```![](https://changkun.de/urlstat?mode=github&repo=changkun/urlstat)
## License
MIT © 2021 [Changkun Ou](https://changkun.de)