The views
is a page view statistics tool without the server. I created it to improve the developer experience,
and help wirters focus on the content itself. You don't need any settings or downloads to use it for free,
I hope you will like it and help it do better.
Svg
First, you need to submit your domain to the project for permission, Later, you can add this code to your post or anywhere:
<img src="https://views.unix.bio/svg?key=my_first_post" />
The key
here can be the title or id of articles, you can use any character you want, just remember that key
is the only one.
views.show use key
to distinguish views of each page.
It's so easy and cool, right?
Each person can use up to 100
keys for each domain name, please use them properly.
Hooks
If you're using React, try using Hooks
directly within the app to get the current page views.
This can be useful if you need to customize the lookups style or more customization.
- Install:
yarn add @unix/views
- Improt:
import useViews from '@unix/views'
const [views] = useViews('/posts/001')
return <div>views: {views}</div>
Next step
You want to customize more styles? Please refer to All customization options.
You think this project is good, and you want to support the development of the project? Just press the donation button to participate in the contribution.
Final, The repository is hosted in GitHub, licensed under the MIT license.