The open-source alternative to Google Analytics you can self-host
GitHub RepoImpressions1.8k

The open-source alternative to Google Analytics you can self-host

@githubprojectsPost Author

Project Description

View on GitHub

An Open-Source, Self-Hosted Alternative to Google Analytics

If you've ever needed to add analytics to a side project, a client's website, or even a company internal tool, you've probably felt the pinch of using a service like Google Analytics. The privacy concerns, the data ownership questions, the sheer complexity for simple needs—it can feel like overkill. What if you could just run your own?

That's the idea behind Rybbit. It's an open-source analytics platform you can self-host, giving you full control over your data and a much simpler, developer-focused experience.

What It Does

In a nutshell, Rybbit is a web analytics tool. You add a small snippet of JavaScript to your site, and it starts tracking page views. The data is sent to your own self-hosted Rybbit server (not to a third-party corporation), and you get a clean, straightforward dashboard to see your traffic.

It focuses on the essentials: page views, unique visitors, referral sources, and basic geographic data. It's not trying to be a monstrous all-in-one marketing suite. It's a tool for developers who want to know how their site is being used, without the noise.

Why It's Cool

The appeal here is in the philosophy, not just a checklist of features.

Privacy and Data Ownership: This is the big one. When you self-host Rybbit, the analytics data never leaves your infrastructure. You're not handing visitor information over to an ad-tech giant. This is crucial for privacy-focused projects, internal tools, or companies in regulated industries.

It's Actually Simple: The dashboard is clean and easy to parse. You won't spend 20 minutes hunting for the "page views" metric. The setup is a well-documented, standard Docker Compose process. It respects your time.

Lightweight and Performant: The tracking script is tiny, and the backend is built with Go, which means it's fast and has a small resource footprint. You can run it on a modest VPS without breaking a sweat.

Open Source Means Trust and Flexibility: You can read the entire codebase on GitHub. There are no hidden trackers or opaque data processes. If you need to tweak something or add a specific metric for your use case, you can fork it and customize it.

How to Try It

The quickest way to get Rybbit running is with Docker. If you have Docker and Docker Compose installed, you're basically a few commands away.

  1. Clone the repository:

    git clone https://github.com/rybbit-io/rybbit.git
    cd rybbit
    
  2. Copy the example environment file and configure it (at minimum, set a SECRET_KEY):

    cp .env.example .env
    # Edit .env with your favorite text editor
    
  3. Start it up:

    docker-compose up -d
    

Your Rybbit instance should now be running. Head to http://localhost:3000 (or your server's IP) to create an admin account and your first website. It will provide you with a tracking snippet to add to your site's HTML, just like any other analytics tool.

For full details, check out the Rybbit GitHub repository for comprehensive setup and configuration guides.

Final Thoughts

Rybbit isn't for everyone. If you need deep user journey tracking, complex conversion funnels, and tight integration with massive ad platforms, you'll still need the big commercial tools.

But for a huge number of use cases—your personal blog, a startup's landing page, an open-source project's docs, or a company dashboard—it's more than enough. It gives you the key metrics you actually need while putting privacy and simplicity first. In a world of overly complex SaaS, a tool that does one job well and gets out of your way is incredibly refreshing. It's worth a look for any developer who wants to own their stack, from code to data.


Follow us for more cool projects: @githubprojects

Back to Projects
Project ID: f86234bb-8a5a-4b32-b0ee-4ccf537e04aeLast updated: January 19, 2026 at 05:16 AM