Skip to content

iamyunsin/sinsuan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

English | 简体中文

Sinsuan

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.

Getting Started

  1. Install dependencies
npm install sinsuan
  1. 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>

Self-hosted

  1. Download the latest release

Download

  1. Run the server
./sinsuan
  1. Use for your project
import { bootstrap } from 'sinsuan'

// 启动统计
bootstrap({
  serverUrl: 'https://your.host/path/to/count'
});

Contact me

Encourage me

If you find this project helpful, you can support the author in the following ways: