{"id":23084295,"url":"https://github.com/swetrix/swetrix","last_synced_at":"2026-10-19T14:39:35.117Z","repository":{"id":37022912,"uuid":"349227174","full_name":"Swetrix/swetrix","owner":"Swetrix","description":"📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!","archived":false,"fork":false,"pushed_at":"2026-10-11T20:00:39.000Z","size":95424,"stargazers_count":1206,"open_issues_count":20,"forks_count":78,"subscribers_count":6,"default_branch":"main","last_synced_at":"2026-10-15T03:16:41.295Z","etag":null,"topics":["charts","clickhouse","docker","gdpr","google-analytics","metrics","monitoring","mysql","nestjs","privacy","redis","self-hosted","selfhosted","statistics","tailwindcss","web-analytics","webanalytics","website"],"latest_commit_sha":null,"homepage":"https://swetrix.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Swetrix.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.MD","funding":".github/funding.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"swetrix"}},"created_at":"2021-03-18T21:55:22.000Z","updated_at":"2026-10-14T13:06:35.000Z","dependencies_parsed_at":"2025-12-19T09:13:31.800Z","dependency_job_id":"b7672361-aa34-4266-b432-17f3f7af417c","html_url":"https://github.com/Swetrix/swetrix","commit_stats":{"total_commits":4099,"total_committers":17,"mean_commits":"241.11764705882354","dds":0.3108075140278117,"last_synced_commit":"a4056472aef5aa40f5bbb8addc8c539e8ca7d6ea"},"previous_names":["swetrix/swetrix"],"tags_count":42,"template":false,"template_full_name":null,"purl":"pkg:github/Swetrix/swetrix","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Swetrix%2Fswetrix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Swetrix%2Fswetrix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Swetrix%2Fswetrix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Swetrix%2Fswetrix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Swetrix","download_url":"https://codeload.github.com/Swetrix/swetrix/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Swetrix%2Fswetrix/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":344872684,"owners_count":38358163,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-10-03T21:59:58.778Z","status":"online","status_checked_at":"2026-10-19T02:00:06.414Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["charts","clickhouse","docker","gdpr","google-analytics","metrics","monitoring","mysql","nestjs","privacy","redis","self-hosted","selfhosted","statistics","tailwindcss","web-analytics","webanalytics","website"],"created_at":"2024-12-16T15:50:49.901Z","updated_at":"2026-10-19T14:39:35.111Z","avatar_url":"https://github.com/Swetrix.png","language":"TypeScript","funding_links":["https://github.com/sponsors/swetrix"],"categories":[],"sub_categories":[],"readme":"\u003ca name=\"top\"\u003e\u003c/a\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/Swetrix/swetrix\"\u003e\n   \u003cimg src=\"https://swetrix.com/assets/readme-image.png?v=3\" alt=\"Swetrix\"\u003e\n  \u003c/a\u003e\n\n  \u003ch3 align=\"center\"\u003eSwetrix\u003c/h3\u003e\n\n  \u003cp align=\"center\"\u003e\n    Privacy-first, open-source web analytics — with error tracking, session replays and performance monitoring built in.\n    \u003cbr /\u003e\n    \u003ca href=\"https://swetrix.com/demo\"\u003e\u003cstrong\u003eSee the live demo »\u003c/strong\u003e\u003c/a\u003e\n    \u003cbr /\u003e\n    \u003cbr /\u003e\n    \u003ca href=\"https://swetrix.com\"\u003eWebsite\u003c/a\u003e\n    ·\n    \u003ca href=\"https://swetrix.com/docs\"\u003eDocs\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/Swetrix/swetrix/issues\"\u003eIssues\u003c/a\u003e\n    ·\n    \u003ca href=\"https://swetrix.com/discord\"\u003eDiscord\u003c/a\u003e\n    ·\n    \u003ca href=\"https://x.com/swetrix\"\u003eTwitter\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://swetrix.com\"\u003e\u003cimg src=\"https://img.shields.io/badge/Try%20Swetrix%20Cloud-free%20trial-1d4ed8\" alt=\"Try Swetrix Cloud\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://swetrix.com/docs/selfhosting/how-to\"\u003e\u003cimg src=\"https://img.shields.io/badge/Self--host-with%20Docker-555\" alt=\"Self-host with Docker\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/Swetrix/swetrix/stargazers\"\u003e\u003cimg src=\"https://img.shields.io/github/stars/Swetrix/swetrix?style=flat\u0026label=Stars\" alt=\"GitHub stars\"\u003e\u003c/a\u003e\n  \u003ca href=\"./LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-AGPLv3-green\" alt=\"License\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cpicture\u003e\n  \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://swetrix.com/assets/screenshot_dark.png?v=1\"\u003e\n  \u003cimg alt=\"Swetrix dashboard\" src=\"https://swetrix.com/assets/screenshot_light.png?v=1\"\u003e\n\u003c/picture\u003e\n\n## ℹ️ What is Swetrix?\n\n[Swetrix](https://swetrix.com) is a cookieless, GDPR-compliant analytics platform — a privacy-respecting alternative to Google Analytics. No cookies, no consent banner, no cross-device tracking, all data anonymised. It's the only thing on the page and the dashboard is fast and real-time.\n\nIt goes beyond pageviews: alongside traffic stats you get **error tracking**, **performance monitoring**, **session replays**, **funnels** and **custom events** — so you can replace several tools with one.\n\nOpen source since 2021, bootstrapped, and funded entirely by our subscribers. Made in the 🇬🇧 UK, hosted on Hetzner in 🇩🇪 Germany.\n\n👉 **[Try it free on Swetrix Cloud](https://swetrix.com)** or **[self-host with Docker](https://swetrix.com/docs/selfhosting/how-to)**.\n\n## ✨ Features\n\n- **Cookieless \u0026 privacy-first** — GDPR-compliant by design, no cookies, anonymised data. ([Data Policy](https://swetrix.com/data-policy))\n- **Lightweight script** — a small tracking snippet and a snappy real-time dashboard.\n- **The metrics that matter** — top pages, geolocation with map view, devices, traffic sources and UTM campaigns.\n- **Network intelligence** *(Cloud)* — break traffic down by ISP, organisation, usage type (residential / business / hosting / cellular) and connection type to spot bot and datacenter traffic.\n- **Custom events \u0026 properties** — track conversions, sales or any key action with your own semantics.\n- **Sessions \u0026 user flows** — understand journeys and behaviour across your site.\n- **Funnels** — visualise drop-offs and improve conversion rates.\n- **Performance monitoring** — real-user metrics (TTFB, DNS, TLS, render) to keep pages fast.\n- **Error tracking** — capture client-side errors with details and aggregated views.\n- **Session replays** *(Cloud)* — replay sessions to see exactly where visitors get stuck.\n- **Sharing \u0026 teams** — public or password-protected dashboards; invite teammates with roles, or manage access with organisations.\n- **Data portability** — export to CSV and access everything via the [developer API](https://swetrix.com/docs/statistics-api).\n- **More** — alerts \u0026 notifications, feature flags, A/B experiments, revenue analytics and Ask AI *(Cloud)*.\n\n## Swetrix vs Google Analytics vs Plausible\n\nSwetrix and Plausible are both privacy-first and open source; the main difference is scope — Swetrix bundles error tracking, performance monitoring and session replays into the same product.\n\n|                                  | **Swetrix**            | Google Analytics 4      | Plausible            |\n| -------------------------------- | ---------------------- | ----------------------- | -------------------- |\n| Cookieless, no consent banner    | ✅                     | ❌ cookies + consent    | ✅                   |\n| GDPR-compliant, EU-hosted        | ✅                     | ⚠️ data sent to US      | ✅                   |\n| Open source (AGPLv3)             | ✅                     | ❌                      | ✅                   |\n| Self-hostable                    | ✅                     | ❌                      | ✅                   |\n| No data sampling                 | ✅                     | ❌ samples at scale     | ✅                   |\n| Real-time dashboard              | ✅                     | ⚠️ limited              | ✅                   |\n| Funnels                          | ✅                     | ✅                      | ✅ (paid plans)      |\n| Custom events                    | ✅                     | ✅                      | ✅                   |\n| Performance monitoring           | ✅                     | ❌                      | ❌                   |\n| Error tracking                   | ✅                     | ❌                      | ❌                   |\n| User profiles / identified users | ✅                     | ❌                      | ❌                   |\n| Feature flags \u0026 A/B experiments  | ✅                     | ❌                      | ❌                   |\n| Session replays                  | ✅                     | ❌                      | ❌                   |\n| Revenue / MRR analytics          | ✅ Cloud               | ⚠️ ecommerce setup      | ❌                   |\n| Ask AI / chat with your data     | ✅ Cloud               | ❌                      | ❌                   |\n\n## 🚀 Get started\n\n### Swetrix Cloud (recommended)\n\nWe handle hosting, maintenance, backups and a worldwide CDN — you keep full ownership of your data and can export or delete it anytime. GDPR-compliant and hosted in the EU.\n\n- **[Start free →](https://swetrix.com)** — free trial, then from $19/mo\n- **[Live demo →](https://swetrix.com/demo)**\n- **[Docs →](https://swetrix.com/docs)**\n\nYour subscription directly funds maintenance and development of the open-source project.\n\n### Self-hosting\n\nPrefer to run it yourself? Swetrix Community Edition (CE) ships the same core analytics: privacy-friendly traffic stats, custom events, sessions, session replays, funnels, performance and error tracking. Deploy the API and UI with Docker, connect ClickHouse / Redis, and configure a private S3-compatible bucket for replay recordings.\n\n- **[Self-hosting guide →](https://swetrix.com/docs/selfhosting/how-to)**\n- **[Session replay storage setup →](https://swetrix.com/docs/selfhosting/session-replays)**\n\n#### Cloud vs Community Edition\n\n|                                                                              | Swetrix Cloud                                                                                                                                                                     | Swetrix Community Edition                                                                                                                                       |\n| ---------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| **Infrastructure management**                                                | ✅ Set up tracking in minutes. We manage server maintenance, upgrades and security for you.                                                                                       | ⚠️ You manage servers, installs, upgrades, scaling and backups.                                                                                                |\n| **Core analytics (traffic, events, sessions, funnels, performance, errors)** | ✅ Included                                                                                                                                                                       | ✅ Included                                                                                                                                                     |\n| **Session replays**                                                          | ✅ Included                                                                                                                                                                       | ✅ Included; requires S3-compatible storage                                                                                                                                                   |\n| **Advanced features (Revenue, Experiments, AI)**                             | ✅ Included                                                                                                                                                                       | ⚠️ Cloud only                                                                                                                                                   |\n| **Teams \u0026 sharing**                                                          | ✅ Organisations, role-based access, direct invites, public and password-protected links.                                                                                        | ⚠️ Direct project invites, password-protected links and public projects only.                                                                                  |\n| **Alerts \u0026 notifications**                                                   | ✅ Email, Slack, Telegram, Discord, webhook, web push                                                                                                                             | ⚠️ Not included                                                                                                                                                 |\n| **Email reports**                                                            | ✅ Weekly / monthly / quarterly                                                                                                                                                   | ⚠️ Not included                                                                                                                                                 |\n| **Geo \u0026 network analytics**                                                  | ✅ Premium GeoIP for accurate country / region / city, plus ISP, organisation, usage type and connection type.                                                                    | ⚠️ DB-IP City Lite (country / region / city only); a paid MaxMind or DB-IP database is needed for network breakdowns.                                            |\n| **Release schedule**                                                         | ✅ Continuous updates, deployed as soon as ready                                                                                                                                  | ℹ️ Periodic open-source releases; newest features arrive later.                                                                                                 |\n| **Support**                                                                  | ✅ Premium support from the team building Swetrix                                                                                                                                 | ⚠️ Community support on Discord and forums.                                                                                                                      |\n| **Costs**                                                                    | ✅ Bootstrapped business — your money directly funds Swetrix development.                                                                                                          | ⚠️ You pay for servers, maintenance, backups and domains.                                                                                                       |\n\n## 🛠️ Tech stack\n\n- **Backend / API** — Nest.js, MySQL + TypeORM (accounts, projects), ClickHouse (analytics), Redis (caching).\n- **Frontend** — React Router, Tailwind CSS, billboard.js for charts.\n- **Tracking script** — [`packages/tracker-js`](./packages/tracker-js), the `swetrix` npm client, TypeScript bundled with rollup.\n\n## 🤝 Contributing\n\nWe welcome contributions! See the [contributing guide](./CONTRIBUTING.MD) and browse [open issues](https://github.com/Swetrix/swetrix/issues) to pick something up.\n\n## ⭐️ Star History\n\nIf Swetrix is useful to you, **star the repo** — it genuinely helps a bootstrapped team and motivates us a lot 😊\n\n\u003ca href=\"https://star-history.dera.page/#swetrix/swetrix\u0026type=date\u0026legend=top-left\"\u003e\n \u003cpicture\u003e\n   \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://star-history.dera.page/svg?repos=swetrix/swetrix\u0026type=date\u0026theme=dark\u0026legend=top-left\" /\u003e\n   \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://star-history.dera.page/svg?repos=swetrix/swetrix\u0026type=date\u0026legend=top-left\" /\u003e\n   \u003cimg alt=\"Star History Chart\" src=\"https://star-history.dera.page/svg?repos=swetrix/swetrix\u0026type=date\u0026legend=top-left\" /\u003e\n \u003c/picture\u003e\n\u003c/a\u003e\n\n## 💬 Contact\n\n- **Email:** contact@swetrix.com\n- **Book a call:** [swetrix.com/book-a-call](https://swetrix.com/book-a-call)\n- **Discord:** [join the community](https://swetrix.com/discord)\n- **Twitter:** [@swetrix](https://x.com/swetrix)\n- **Author:** I post about Swetrix and solopreneurship at [@andrii_rom](https://x.com/andrii_rom)\n\n## 📃 License\n\nSwetrix Community Edition is open source under the GNU Affero General Public License v3 (AGPLv3). See the [LICENSE](./LICENSE) file. Source code contributions are subject to the [Contributor License Agreement](https://gist.github.com/Blaumaus/cb232e7c2506b9feec188194a77cb9f9).\n\n© 2021 - present, Swetrix Ltd.\n\n[Back to top](#top)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswetrix%2Fswetrix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswetrix%2Fswetrix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswetrix%2Fswetrix/lists"}