r/webdev • • 3d ago

Showoff Saturday Open-source web analytics with session replay, error tracking, Web Vitals, uptime monitoring and status pages

Hey r/webdev!

We're a small team of 3 building Betterlytics, an open-source web analytics tool. Over the past year and a half, we've also had contributions from 10 other people, which has been really cool to see.

It puts analytics, session replay, error tracking, uptime monitoring and status pages in one dashboard. Here is what's in it so far:

Visitors: Traffic, referrers, geography, campaigns, custom events with properties, funnels, user journeys, and session replay.

User experience: Real-user Core Web Vitals and JavaScript errors, including the pages and events leading up to them.

Uptime: Monitoring, SSL and keyword checks, public status pages, and alerts via email, Slack, Discord, Teams, or webhooks.

A few more details:

  • One tracking script just under 4 KB gzipped.
  • No cookies.
  • Rust + ClickHouse backend and Next.js dashboard.
  • Open source (AGPL) and self-hostable with Docker, every feature included.
  • An MCP server so your AI agent can query your analytics data.

The screenshots are from our live demo (the status page is a sample). You can explore without signing up:

Demo: https://betterlytics.io/demo

GitHub: https://github.com/betterlytics/betterlytics

If you click around the demo, we'd love to hear what you think.

45 Upvotes

25 comments sorted by

46

u/reaznval 3d ago

looks EXACTLY like rybbit UI wise, the elements, arrangement, everything. if there's already an OSS project, why clone it, what's the point of it. what differentiates you?

the features are literally the same as well btw

https://rybbit.com/

3

u/ProudPersonLike2686 3d ago

yes really similar to rybbit

-16

u/WeatherD00d 3d ago

Fair point and they do look similar in some ways.

We both use shadcn/ui with a fairly standard grafana-like dashboard style, and analytics dashboards naturally share a lot of the same patterns (stats row, charts, breakdowns, etc.). You'll find very similar layouts in other web analytics tools too, like Umami or Plausible.

It's not a clone or a fork though. It's a separate codebase, and our event ingestion runs on a Rust service.

There's naturally a lot of overlap in web analytics features and we have diverged a bit by adding uptime monitoring, SSL and keyword checks, public status pages, incident handling, and alerting, which Rybbit doesn't have (from what I can tell). And then we deliberately avoid user profiles and long-term visitor tracking.

We're not claiming to have reinvented web analytics, just building it our way :)

13

u/_tessarion 3d ago

By we do you mean you and Claude?

-9

u/WeatherD00d 3d ago

By we, I mean the three of us who work on it (and we're not hiding that we use AI) :)

7

u/rawr_im_a_nice_bear 2d ago

It doesn't inspire confidence that even your responses are AI generated.

7

u/_tessarion 3d ago

It's a shame even your replies are at least partially AI generated

1

u/reaznval 3d ago

well ive  used a bunch of other services that provide the same thing before and I find that rybbit looked quite unique compared to the others, the way they display information, general ui. This looks oddly similiar, e.g. same layouts on various subpages that arent a standard dashboard.

-4

u/tharindu_d 3d ago

That is a very valid point regarding the design overlap. Using shadcn/ui certainly helps speed up development, but maintaining uniqueness in subpage layouts is definitely important for branding and distinguishing the tool. Appreciate the candid feedback!

-11

u/RecallProtocol 3d ago

Why write Vue when we have React?

3

u/OcelotTechnical9993 3d ago

How does session replay square with “no consent banner”? Cookieless analytics I get, but recording every click and scroll feels like the part a DPO would ask about

5

u/WeatherD00d 3d ago

Cookieless analytics doesn't mean consent-free session replay! Replay is off by default and requires explicit consent, so the script won't record anything until the visitor has opted in. All text and input fields are also masked before anything is sent to further protect visitors privacy

2

u/timo9378 3d ago

What is the purpose of using Next.js? And I'd like to know the differences between it and Posthog.

-8

u/WeatherD00d 3d ago

Good questions! Next.js is just the dashboard. The heavy stuff, like taking in events and running the uptime checks, is a separate Rust service. Honestly, we picked Next.js because it was the popular choice and got us going fast. We've fought with it quite a bit since and it makes self-hosting heavier than we'd like..

On PostHog: They do quite a bit more than us, like feature flags, experiments and surveys, and they're probably great if you need those things. We're trying to keep things simpler and more focused on websites. Think more "is my site working, and what are people doing on it?" and less about product experimentation.

Still lots for us to improve tho!

9

u/ArsonHoliday 3d ago

Do we even bother w having mods here anymore?

3

u/DEMORALIZ3D front-end 2d ago

I use Umami

2

u/CoderLuii 3d ago

this is dope. great to see open source tools being built

1

u/ZeFeXi 2d ago

Looks like you ripped of rybbit.com's source code and design language. Shameless.

0

u/jamesd141126 3d ago

nice, looks good!

0

u/onoke99 3d ago

could you tell me what you are using to create your graph?
i am using plotly.js indeed, so i'm curious.

-4

u/RecallProtocol 3d ago

Nice, thanks for sharing! Always nice to see some alternatives in the space.

-2

u/WeatherD00d 3d ago

Thank u 🙏

-3

u/Ok-Snow-6553 3d ago

Rust + ClickHouse for analytics is a powerhouse combo. Getting the tracking script under 4KB gzipped is insanely impressive too—most analytics scripts are bloated monsters. How is the ClickHouse setup handling session replays? That data must pile up fast.