English | 简体中文
Sinsuan is an open source static site statistics tool that supports self-built services or online services.
It is recommended to use your own service, as it will allow you to better back up your site usage and manage your site statistics.
- Install dependencies
npm install sinsuan
- Use for your project
- Start statistics
import { bootstrap } from 'sinsuan'
// start statistics
bootstrap();
- Show statistics data
page PV: <span data-sinsuan-pv></span>
page UV: <span data-sinsuan-uv></span>
site PV: <span data-sinsuan-site-pv></span>
site UV: <span data-sinsuan-site-uv></span>
- Download the latest release
- Run the server
./sinsuan
- Use for your project
import { bootstrap } from 'sinsuan'
// 启动统计
bootstrap({
serverUrl: 'https://your.host/path/to/count'
});
- email: [email protected]
- wechat: iamyunsin
If you find this project helpful, you can support the author in the following ways: