https://github.com/duyet/pageview
Pageview
https://github.com/duyet/pageview
Last synced: 12 months ago
JSON representation
Pageview
- Host: GitHub
- URL: https://github.com/duyet/pageview
- Owner: duyet
- License: mit
- Created: 2023-03-12T07:56:04.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-07-01T21:25:45.000Z (12 months ago)
- Last Synced: 2025-07-01T22:27:02.131Z (12 months ago)
- Language: TypeScript
- Homepage: https://pageview.duyet.net/
- Size: 503 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `pageview`



Add this snippet to your website:
```html
!(function (e, n, t) {
e.onload = function () {
let e = n.createElement('script')
;((e.src = t), n.body.appendChild(e))
}
})(window, document, 'https://pageview.duyet.net/pageview.js')
```
Checkout result at: https://pageview.duyet.net
## Development
To run the development server, execute the following command:
```bash
npm run dev
# or
yarn dev
# or
pnpm dev
```
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
## Contribute and deployment
To contribute to the project, push any changes to the `dev` branch and create a PR to merge the changes into the `main` branch.
Preview deployment can be seen on the `dev` branch.
For deployment on Vercel, follow these links for instructions:
- https://www.prisma.io/docs/guides/database/using-prisma-with-planetscale
- [Next.js deployment documentation](https://nextjs.org/docs/deployment).
## Project note
Disclaimer: This project is not intended for scale and is for personal usage only.
I may consider scaling it later on.
The main purpose of this project is to demonstrate how to use Next.js,
PlanetScale, TurboRepo, Vercel and some modern React components.
## License
MIT.