Openpanel
An open-source alternative to Mixpanel
Website
ยท
Docs
ยท
Sign in
ยท
Discord
ยท
X/Twitter
ยท
Creator
ยท
Openpanel is an open-source web and product analytics platform that combines the power of Mixpanel with the ease of Plausible and one of the best Google Analytics replacements.
โจ Features
- ๐ Advanced Analytics: Funnels, cohorts, user profiles, and session history
- ๐ฌ Session Replay: Record and replay user sessions with privacy controls built in
- ๐ Real-time Dashboards: Live data updates and interactive charts
- ๐ฏ A/B Testing: Built-in variant testing with detailed breakdowns
- ๐ Smart Notifications: Event and funnel-based alerts
- ๐ Privacy-First: Cookieless tracking and GDPR compliance
- ๐ Developer-Friendly: Comprehensive SDKs and API access
- ๐ฆ Self-Hosted: Full control over your data and infrastructure
- ๐ธ Transparent Pricing: No hidden costs or usage limits
- ๐ ๏ธ Custom Dashboards: Flexible chart creation and data visualization
- ๐ฑ Multi-Platform: Web, mobile (iOS/Android), and server-side tracking
- ๐ค MCP Server: Ask Claude, Cursor, or any MCP client about your users โ 38 tools, hosted, no install
- ๐ฐ Revenue Tracking: Monitor purchases, subscriptions, and LTV alongside product events
- ๐ Integrations: Connect Google Search Console, and more to enrich your data
๐ Analytics Platform Comparison
| Feature | OpenPanel | Mixpanel | GA4 | Plausible |
|---|---|---|---|---|
| โ Open-source | โ | โ | โ | โ |
| ๐งฉ Self-hosting supported | โ | โ | โ | โ |
| ๐ Cookieless by default | โ | โ | โ | โ |
| ๐ Real-time dashboards | โ | โ | โ | โ |
| ๐ Funnels & cohort analysis | โ | โ | โ * | โ *** |
| ๐ค User profiles & session history | โ | โ | โ | โ |
| ๐ฌ Session replay | โ | โ **** | โ | โ |
| ๐ Custom dashboards & charts | โ | โ | โ | โ |
| ๐ฌ Event & funnel notifications | โ | โ | โ | โ |
| ๐ GDPR-compliant tracking | โ | โ | โ** | โ |
| ๐ฆ SDKs (Web, Swift, Kotlin, ReactNative) | โ | โ | โ | โ |
| ๐ธ Transparent pricing | โ | โ | โ * | โ |
| ๐ Built for developers | โ | โ | โ | โ |
| ๐ง A/B testing & variant breakdowns | โ | โ | โ | โ |
โ * GA4 has a free tier but often requires BigQuery (paid) for raw data access. โ** GA4 has faced GDPR bans in several EU countries due to data transfers to US-based servers. โ *** Plausible has simple goals โ **** Mixpanel session replay is limited to 5k sessions/month on free and 20k on paid. OpenPanel has no limit.
Stack
- Nextjs - the dashboard
- Fastify - event api
- Postgres - storing basic information
- Clickhouse - storing events
- Redis - cache layer, pub/sub and queue
- BullMQ - queue
- GroupMQ - for grouped queue
- Resend - email
- Arctic - oauth
- Oslo - auth
- tRPC - api
- Tailwind - styling
- Shadcn - ui
Self-hosting
OpenPanel can be self-hosted and we have tried to make it as simple as possible.
You can find the how to here
Give us a star if you like it!
Development
Prerequisites
- Docker
- Docker Compose
- Node
- pnpm
Start
pnpm install
cp .env.example .env
echo "API_URL=http://localhost:3333" > apps/start/.env
pnpm dock:up
pnpm codegen
pnpm migrate:deploy # once to setup the db
pnpm devYou can now access the following:
- Dashboard: https://localhost:3000
- API: https://api.localhost:3333
- Bullboard (queue): http://localhost:9999
pnpm dock:chto access clickhouse terminalpnpm dock:redisto access redis terminal
