back to home

Swetrix / swetrix

📈 Swetrix is a cookie-less, open source, privacy-first web analytics, website speed monitoring and error tracking service that you can host yourself or use in the cloud. Get started for free!

View on GitHub
936 stars
52 forks
19 issues

AI Architecture Analysis

This repository is indexed by RepoMind. By analyzing Swetrix/swetrix in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.

Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context on-demand, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.

Source files are only loaded when you start an analysis to optimize performance.

Embed this Badge

Showcase RepoMind's analysis directly in your repository's README.

[![Analyzed by RepoMind](https://img.shields.io/badge/Analyzed%20by-RepoMind-4F46E5?style=for-the-badge)](https://repomind.in/repo/Swetrix/swetrix)
Preview:Analyzed by RepoMind

Repository Overview (README excerpt)

Crawler view

Swetrix Open source, cookieless web analytics. Learn more » Website · Docs · Issues · Discord · Twitter · Author ℹ️ About the Project Swetrix is an open source, privacy-focused and cookie-less alternative to Google Analytics. Swetrix is designed to be easy to use while providing all the features you need to understand your website users. With Swetrix you can track your site's traffic, monitor your site's speed, analyse user sessions and page flows, see user flows and much more! Swetrix is made in the 🇬🇧 United Kingdom, and is hosted on Hetzner in 🇩🇪 Germany. Here's our live demo with our own website statistics. We are a bootstrapped company that is passionate about privacy and open source, funded solely by our subscribers. ✨ Why Swetrix? We've been building Swetrix since 2021 with a goal to make web analytics simple and respectful of your users' privacy. • **Privacy‑first and cookieless**: GDPR‑compliant by design. We don't use cookies, cross-device tracking, all the data is stored anonymised. Read more in our Data Policy page. • **Lightweight and fast**: a small tracking script and a snappy, real‑time dashboard. • **Core insights that matter**: top pages, geolocation, map visualisation, devices, traffic sources and UTM campaigns. • **Custom events and properties**: track conversions, sales, or key user actions with your own semantics. • **Session analytics and user flows**: understand journeys and behaviour across your site. • **Funnels**: visualise drop‑offs and improve conversion rates. • **Performance monitoring**: real‑user metrics (e.g. TTFB, DNS, TLS, render) to keep sites fast. • **Error tracking**: capture client‑side errors with details and aggregated views. • **Shareable analytics**: public or password‑protected dashboards; invite teammates with roles, or manage access with organisations. • **Data portability**: export to CSV and access data via our developer API. • **Alerts & notifications (Cloud)**: get notified on thresholds via Slack, Telegram or Discord. • **Feature flags**: manage feature rollouts and conduct safe releases. • **Experiments (Cloud)**: run A/B tests and experiments to optimize your site. • **Revenue analytics (Cloud)**: track MRR, churn and other financial metrics. • **Ask AI (Cloud)**: chat with your data to uncover insights. • **Goals**: track specific conversion goals and objectives. • **DAU/MAU tracking**: keep an eye on your daily and monthly active users. • Open source and self‑hostable, with a fully managed EU‑hosted Cloud option. 🚀 Getting Started The easiest way to get started with Swetrix is by using our cloud service. We do all the work for you: hosting, maintenance, backups, worldwide CDN, etc. Using Cloud you still own the data, you can export it or delete it at any time you want. It's GDPR‑compliant, hosted in the EU (Germany), with a free trial available. We're an independent and bootstrapped company, your subscription to Swetrix Cloud directly supports maintenance and development of the project, which eventually makes it better. • Start using Cloud: https://swetrix.com (starts at $19/mo with a free trial available) • Explore docs: https://docs.swetrix.com Selfhosting Prefer to run it yourself? Swetrix Community Edition (CE) ships the same core analytics: privacy‑friendly traffic stats, custom events, sessions, funnels, performance and error tracking. Use Docker to deploy the API and UI, connect MySQL/ClickHouse/Redis, and you're ready to go. • Self‑hosting guide: https://docs.swetrix.com/selfhosting/how-to Cloud vs Community Edition | | Swetrix Cloud | Swetrix Community Edition | | ---------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | | **Infrastructure management** | ✅ It's easy to get started with Swetrix Cloud - you can set up tracking in a matter of minutes. We manage server maintenance, upgrades, security for you. | ⚠️ You are responsible for managing servers, installs, upgrades, scaling and backups. | | **Core analytics (traffic, events, sessions, funnels, performance, errors)** | ✅ Included | ✅ Included | | **Advanced features (Revenue, Experiments, AI)** | ✅ Included | ⚠️ Not included | | **Teams & sharing** | ✅ Organisations to manage multiple projects and users with permissions setup; invite people to your projects directly, or share a public or password protected link with people. | ⚠️ Only direct project invites, password protected links and public projects are supported. | | **Alerts & notifications** | ✅ Yes (Slack/Telegram/Discord) | ⚠️ Not included | | **Email reports** | ✅ Yes (weekly/monthly/quarterly) | ⚠️ Not included | | **Geo analytics** | ✅ Swetrix Cloud uses premium GeoIP database to provide consistent and accurate country and city level geolocation data. | ⚠️ Less accurate, DB-IP City Lite Database; you need to pay for the full database if you want better accuracy. | | **Release schedule** | ✅ Continuously developed with updates deployed as soon as they are ready | ℹ️ Periodic open‑source releases, latest features are not available immediately. | | **Support** | ✅ Premium support from the people who build and maintain Swetrix | ⚠️ Official support is not included. Community‑driven support on Discord or other forums only. | | **Costs** | ✅ We're an independent and bootstrapped business, your money directly supports Swetrix development. | ⚠️ You pay for the server costs and maintenance, backups, domains and other selfhosting costs, with money going to 3rd party services with no connection to us. | Tech Stack Backend / API is built as a standard Nest.js application. We use MySQL with TypeORM for general data (accounts, proj…