Note
This repository has been archived as it has been merged with our backend repository to create a monorepo. The frontend source code can be found here.
Swetrix is a privacy-oriented, simple and fully cookie-less web analytics service.
It provides lots of metrics like unique visitors, live visitors monitoring, custom events, pageviews and many more.
The service also supports many other features, like dashboard metrics & GDPR exports, email reports and more.
The project's purpose is to fight web analytics giants like Google Analytics while providing better quality and experience of using service.
Swetrix is released under the AGPL v3.0 licence, see LICENSE.
See the API installation process at https://github.com/Swetrix/swetrix-api#readme.
To selfhost the frontend part of Swetrix, you simply need to set up .env
variables, install the dependencies (npm i
), build the code (npm run build
) and host it as a regular React application (how to host react apps).
On production, swetrix.com uses Cloudflare Pages to host the frontend part of the application.
The minimum supported NodeJS version is v14.
Swetrix provides a Docker Image based on Alpine, Nginx and Node.
To use it you just just pull swetrix/swetrixfe
from dockerhub.
The following environment variables are available, alongside their default values.
API_URL
= https://example.com/
| The URL of the Swetrix API
TZ
= Etc/UTC
| Sets the Timezone of the Container
Swetrix is open to pull-requests. Feel free to propose new features or submit bug requests via pull reuqests.
For severe security issues, please contact us at [email protected]
Contributions are welcome! You can find and pick any task on our public roadmap page.
Feel free to also offer any feature or improvement proposal, all of it is highly appreciated!
You can also contribute translations on your Crowdin page.
You can contact us via email at [email protected]
You can support the project by donating us at https://ko-fi.com/andriir
We can only run our services by once again asking for your financial support!