{"id":30584027,"url":"https://github.com/betterlytics/betterlytics","last_synced_at":"2025-08-29T09:02:57.022Z","repository":{"id":297271137,"uuid":"972714811","full_name":"betterlytics/betterlytics","owner":"betterlytics","description":"Privacy-first analytics built with Rust, ClickHouse \u0026 Next.js","archived":false,"fork":false,"pushed_at":"2025-08-23T18:59:43.000Z","size":11310,"stargazers_count":35,"open_issues_count":54,"forks_count":5,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-08-24T05:14:19.285Z","etag":null,"topics":["analytics","clickhouse","cookieless","gdpr","nextjs","privacy","react","rust","web-analytics"],"latest_commit_sha":null,"homepage":"https://betterlytics.io/","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/betterlytics.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"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}},"created_at":"2025-04-25T14:35:23.000Z","updated_at":"2025-08-23T18:59:46.000Z","dependencies_parsed_at":"2025-06-04T22:56:16.918Z","dependency_job_id":"56d75864-aa64-4704-8b29-743cc1971def","html_url":"https://github.com/betterlytics/betterlytics","commit_stats":null,"previous_names":["betterlytics/betterlytics"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/betterlytics/betterlytics","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betterlytics%2Fbetterlytics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betterlytics%2Fbetterlytics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betterlytics%2Fbetterlytics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betterlytics%2Fbetterlytics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/betterlytics","download_url":"https://codeload.github.com/betterlytics/betterlytics/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betterlytics%2Fbetterlytics/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272658777,"owners_count":24971604,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-29T02:00:10.610Z","response_time":87,"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":["analytics","clickhouse","cookieless","gdpr","nextjs","privacy","react","rust","web-analytics"],"created_at":"2025-08-29T09:02:54.591Z","updated_at":"2025-08-29T09:02:57.006Z","avatar_url":"https://github.com/betterlytics.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# Betterlytics\n\n\u003cdiv align=\"center\"\u003e\n\n\u003cimg src=\".github/assets/logo-dark-raw.png\" alt=\"Betterlytics Logo\" width=\"120\"\u003e\n\n**A modern, Cookieless \u0026 privacy-focused analytics platform built for the future**\n\n[![License: AGPL v3](https://img.shields.io/badge/License-AGPL%20v3-blue.svg)](https://www.gnu.org/licenses/agpl-3.0)\n\n[![Rust](https://img.shields.io/badge/rust-%23000000.svg?style=flat\u0026logo=rust\u0026logoColor=white)](https://www.rust-lang.org/) [![Next.js](https://img.shields.io/badge/Next.js-000000?style=flat\u0026logo=next.js\u0026logoColor=white)](https://nextjs.org/) [![React](https://img.shields.io/badge/react-%2320232a.svg?style=flat\u0026logo=react\u0026logoColor=%2361DAFB)](https://reactjs.org/) [![TypeScript](https://img.shields.io/badge/typescript-%23007ACC.svg?style=flat\u0026logo=typescript\u0026logoColor=white)](https://www.typescriptlang.org/)\n\n[![ClickHouse](https://img.shields.io/badge/ClickHouse-FFCC01?style=flat\u0026logo=clickhouse\u0026logoColor=black)](https://clickhouse.com/) [![PostgreSQL](https://img.shields.io/badge/postgresql-%23316192.svg?style=flat\u0026logo=postgresql\u0026logoColor=white)](https://www.postgresql.org/) [![Docker](https://img.shields.io/badge/docker-%230db7ed.svg?style=flat\u0026logo=docker\u0026logoColor=white)](https://www.docker.com/)\n\n[Getting Started](#-getting-started) • [Dashboard](#-dashboard-preview) • [Benchmarks](#-performance-benchmarks) • [Roadmap](#️-roadmap) • [Community](#-community)\n\n\u003c/div\u003e\n\n---\n\n## Why Betterlytics?\n\nBetterlytics is a **high-performance, privacy-first** analytics platform that puts you in control of your data. Built with modern technologies like Rust and ClickHouse, it delivers lightning-fast insights while respecting user privacy.\n\n**Our core principles:**\n\n- **Privacy-First**: GDPR, CCPA, and PECR compliant with no third-party tracking\n- **Cookieless**: No cookies required, respects user privacy\n- **Lightning Fast**: Built on Rust and ClickHouse for maximum performance\n- **Lightweight Tracking**: Minimal impact on your website's performance\n- **Self-Hosted**: Complete control over your data and infrastructure\n- **Modern UI**: Beautiful, responsive dashboard built with Next.js 15 and React 19\n- **Scalable**: Handles millions of events with ease\n- **Developer Friendly**: Easy to deploy, customize, and extend\n\n### Complete Feature Set\n\n#### Core Analytics\n\n| Feature                        | Description                                               |\n| ------------------------------ | --------------------------------------------------------- |\n| **Page Analytics**             | Detailed page views, bounce rates, and engagement metrics |\n| **Referrer Tracking**          | Complete referral source analysis and traffic attribution |\n| **Geographic Insights**        | Global visitor mapping with MaxMind GeoIP integration     |\n| **Device \u0026 Browser Detection** | Comprehensive device, OS, and browser analytics           |\n| **Campaign Tracking**          | UTM parameter tracking and marketing campaign analysis    |\n| **Advanced Filtering**         | Filter data across numerous dimensions and time ranges    |\n| **User Journey Mapping**       | Visualize complete user paths through your site           |\n| **Conversion Funnels**         | Track multi-step conversion processes and drop-off points |\n| **Custom Events**              | Track any custom interactions and business metrics        |\n\n#### Platform \u0026 Integration\n\n| Feature                   | Description                                                           |\n| ------------------------- | --------------------------------------------------------------------- |\n| **Modern UI**             | Beautiful dashboard built with Next.js 15, React 19, and Tailwind CSS |\n| **Lightweight Script**    | Minimal tracking script with zero performance impact                  |\n| **SPA Support**           | Full support for Single Page Applications and client-side routing     |\n| **Easy Integration**      | Simple one-line script installation                                   |\n| **Performance Optimized** | Built on ClickHouse for sub-second query responses                    |\n\n## Getting Started\n\nChoose the option that works best for you:\n\n\u003ctable\u003e\n\u003ctr\u003e\n\u003ctd width=\"50%\" valign=\"top\"\u003e\n\n### Cloud Hosting (Recommended)\n\nGet started instantly with our free managed cloud service:\n\n**[Start Free →](https://betterlytics.io/register)**\n\n- ✅ **Free forever plan** - No trial, genuinely free for small sites\n- ✅ **No setup required** - Ready in 30 seconds\n- ✅ **EU infrastructure** - All data processed on EU-owned cloud infrastructure\n- ✅ **Automatic updates** - Always latest features\n- ✅ **Managed infrastructure** - We handle scaling and maintenance\n- ✅ **99.9% uptime** - Enterprise-grade reliability\n- ✅ **Premium support** - Get help from our expert team\n- ✅ **Automatic backups** - Your data is safe and recoverable\n- ✅ **Paid plans available** - Scale up when you need more\n\n\u003c/td\u003e\n\u003ctd width=\"50%\" valign=\"top\"\u003e\n\n### Self-Hosting\n\nRun Betterlytics on your own infrastructure for complete control and privacy.\n\n**[Quick Setup Guide →](SETUP.md#quick-setup)**\n\n- ✅ **Complete privacy** - Your data never leaves your servers\n- ✅ **Full control** - Customize everything to your needs\n- ✅ **No fees to us** - Your money goes to infrastructure providers\n- ⚠️ **You manage everything** - Installation, maintenance, upgrades, security\n- ⚠️ **Your responsibility** - Server capacity, uptime, backups, loading times\n- ⚠️ **Infrastructure costs** - Server, CDN, backups, and associated costs\n\n**[Setup Guide](SETUP.md#quick-setup)** | **[Docker Setup](SETUP.md#docker-setup)** | **[Development](CONTRIBUTING.md)**\n\n\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/table\u003e\n\n---\n\n## Dashboard Preview\n\n\u003cdiv align=\"center\"\u003e\n\n### Overview\n\n![Dashboard Overview](.github/assets/betterlytics-showcase-overview.png)\n\n### Geography Insights\n\n![Real-time Analytics](.github/assets/betterlytics-showcase-geography.png)\n\n### User Journey Diagram\n\n![Detailed Reports](.github/assets/betterlytics-showcase-journey.png)\n\n### Events and Live Event Insights\n\n![Events Analytics](.github/assets/betterlytics-showcase-events.png)\n\n### Devices Breakdown\n\n![Detailed Reports](.github/assets/betterlytics-showcase-devices.png)\n\n### Pages Breakdown\n\n![Detailed Reports](.github/assets/betterlytics-showcase-pages.png)\n\n... and much more\n\n\u003c/div\u003e\n\n## Performance Benchmarks\n\nBetterlytics is built for speed. Here's how it performs:\n\n### Request Handling\n\n| Metric              | Value   | Notes                              |\n| ------------------- | ------- | ---------------------------------- |\n| **Requests/Second** | 25,000+ | Single instance                    |\n| **Response Time**   | \u003c5ms    | P95 for tracking requests          |\n| **Memory Usage**    | x       | Rust backend during stress testing |\n| **CPU Usage**       | x       | During stress testing              |\n\n### Query Performance\n\n| Query Type          | Response Time | Dataset Size   |\n| ------------------- | ------------- | -------------- |\n| **Overview Page**   | x             | 1M+ events     |\n| **Page Analytics**  | x             | 10M+ events    |\n| **User-Journey**    | x             | 100M+ events   |\n| **Geographic Data** | x             | Global dataset |\n\n### Scalability\n\n- **Events/Day**: Tested up to xM+ events\n- **Concurrent Users**: 1,000+ dashboard users\n- **Data Retention**: Unlimited (depends on storage)\n- **Geographic Distribution**: Multi-region support\n\n\u003e **Benchmarks performed on**: 1-core CPU, 4GB RAM, SSD storage\n\u003e **Last updated**: 06-07-2025\n\n## Roadmap\n\nWe're constantly working to improve Betterlytics. Here's what's coming next:\n\n\u003ctable\u003e\n\u003ctr\u003e\n\u003ctd width=\"50%\" valign=\"top\"\u003e\n\n### In Development\n\n| Feature               | Description                                             |\n| --------------------- | ------------------------------------------------------- |\n| **Docker Deployment** | One-command deployment with Docker Compose              |\n| **REST API**          | Full API access for custom integrations and data export |\n| **Cloud Hosting**     | Managed hosting option for easy deployment              |\n\n\u003c/td\u003e\n\u003ctd width=\"50%\" valign=\"top\"\u003e\n\n### Planned Features\n\n| Feature                    | Description                                           |\n| -------------------------- | ----------------------------------------------------- |\n| **Alerts \u0026 Notifications** | Custom alerts for traffic spikes and anomalies        |\n| **Advanced Reporting**     | Scheduled reports and custom dashboards               |\n| **Integrations**           | Connect with popular tools (Slack, Discord, Webhooks) |\n| **A/B Testing**            | Built-in experimentation platform                     |\n| **AI Insights**            | Automated insights and recommendations                |\n\n\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/table\u003e\n\n## Ideas \u0026 Suggestions\n\nHave an idea for Betterlytics? We'd love to hear it!\n\n- Open an [issue](https://github.com/betterlytics/betterlytics/issues) to suggest new features\n- Join our discussions to share your thoughts\n- Contribute code to help us build these features faster\n\n---\n\n## License \u0026 Attribution\n\nThis project is licensed under the [AGPL-3.0 License](LICENSE).\n\n### Third-Party Components\n\nBetterlytics includes components from other open source projects. See [THIRD-PARTY-LICENSES.md](THIRD-PARTY-LICENSES.md) for detailed attribution and license information.\n\n---\n\n## Community\n\nJoin our small community of developers and privacy advocates:\n\n- **[Discord](https://discord.gg/vwqSvPn6sP)** - Get help, share ideas, and connect with other users and developers\n- **[Bluesky](https://bsky.app/profile/betterlytics.bsky.social)** - Follow us for updates and announcements\n- **[GitHub Issues](https://github.com/betterlytics/betterlytics/issues)** - Report bugs and request features\n- **[GitHub Discussions](https://github.com/betterlytics/betterlytics/discussions)** - Ask questions and share feedback\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbetterlytics%2Fbetterlytics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbetterlytics%2Fbetterlytics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbetterlytics%2Fbetterlytics/lists"}