Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

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)