explaingit

openpanel-dev/openpanel

5,742TypeScriptAudience · pm founderComplexity · 4/5LicenseSetup · hard

TLDR

OpenPanel is an open-source, self-hostable analytics platform for websites and apps that tracks user behavior with funnels, session replay, and cohort analysis, a privacy-friendly alternative to Mixpanel.

Mindmap

mindmap
  root((openpanel))
    What it does
      Track user events
      Session replay
      Funnel analysis
      Cohort tracking
    Tech stack
      Next.js dashboard
      Fastify API
      ClickHouse events
      PostgreSQL storage
    Audience
      Product teams
      SaaS founders
    Deployment
      Cloud hosted
      Self-hosted Docker
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Things people build with this

USE CASE 1

Track how users navigate your web or mobile app using events, funnels, session replays, and real-time dashboards.

USE CASE 2

Replace Mixpanel with a self-hosted analytics stack that keeps all user data on your own servers.

USE CASE 3

Run A/B tests on page variants and measure conversion differences without sending data to a third party.

USE CASE 4

Set up alerts when specific events or funnel drop-off conditions are triggered in your product.

Tech stack

TypeScriptNext.jsFastifyPostgreSQLClickHouseRedisDocker

Getting it running

Difficulty · hard Time to first run · 1h+

Requires Docker Compose running ClickHouse, PostgreSQL, and Redis together.

Open-source, self-host freely with full data ownership, no data leaves your servers.

In plain English

OpenPanel is an open-source analytics platform for websites and software products. It lets you track how people use your site or app, then view the results in a dashboard. The project positions itself as an alternative to Mixpanel, a popular commercial analytics service, with the added option of running everything on your own servers so you keep full control of the data. The feature set covers most things a product team would want to know about user behavior. You can build funnels (tracking whether users complete a series of steps), group users into cohorts to see how behavior changes over time, view individual user profiles and their full activity history, and record and replay actual sessions to watch what visitors did on screen. There are also real-time dashboards, A/B testing to compare two versions of a page or feature, and alert notifications when specific events or funnel conditions are triggered. Privacy is treated as a built-in concern rather than an afterthought. The platform works without cookies by default and is designed to meet GDPR requirements. This matters especially for teams serving European users, since some other analytics tools have faced regulatory problems in EU countries. On the technical side the project uses a combination of tools: Next.js for the dashboard interface, Fastify for the event-collection API, PostgreSQL for general data storage, ClickHouse (a database optimized for large volumes of time-series data) for storing events, and Redis for caching and queues. SDKs are available for web, iOS, Android, and React Native, so the same platform can track behavior across multiple products at once. You can use the hosted cloud version at openpanel.dev or self-host the whole stack using Docker and Docker Compose. The repository includes setup instructions and a local development workflow that starts all the required services together.

Copy-paste prompts

Prompt 1
Set up OpenPanel event tracking on my Next.js app using the JavaScript SDK, show me installation steps and how to fire a custom event on button click.
Prompt 2
Help me build a 3-step signup funnel in OpenPanel tracking landing page visit, form submission, and account confirmed.
Prompt 3
Write a docker-compose.yml to self-host OpenPanel with PostgreSQL, ClickHouse, and Redis on a Linux VPS.
Prompt 4
How do I add session replay to my React app with OpenPanel, and what settings should I enable for GDPR compliance?
Prompt 5
Set up A/B test tracking in OpenPanel to compare two checkout page variants and measure their conversion rates.
Open on GitHub → Explain another repo

← openpanel-dev on gitmyhub — every repo by this author, as a profile.

Verify against the repo before relying on details.