OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.
{
"slug": "developers",
"audience": "developers",
"seo": {
"title": "Analytics for Developers, Open Source, API-First, Self-Hostable",
"description": "OpenPanel is the open-source analytics platform built for developers. SDKs for the web, Node, React, Next.js, React Native, iOS, Android, Python and more, a REST API, Docker self-hosting, TypeScript. Track events, funnels and users without cookies.",
"noindex": false
},
"hero": {
"heading": "Analytics for developers",
"subheading": "An open-source analytics platform that respects your stack and your users' privacy. SDKs for the web, Node, React, Next.js, Vue, React Native, iOS, Android, Python and more, a REST API, Docker Compose self-hosting, and a 3 KB script. No cookies, no consent banners, no lock-in.",
"badges": [
"Open source (AGPL-3.0)",
"SDKs for every stack",
"Self-host with Docker",
"3 KB script"
]
},
"problem": {
"title": "Why developers hate their analytics setup",
"intro": "Most analytics tools are built for marketers. They feel wrong when you're a developer who cares about performance, privacy, and owning your infrastructure.",
"items": [
{
"title": "Google Analytics is a black box",
"description": "Proprietary code you can't inspect, heavy scripts that slow your site, sampled data you can't trust, and a UI designed for marketers who think in 'dimensions' and 'metrics'."
},
{
"title": "No self-hosting option",
"description": "Most analytics tools are cloud-only. Your data lives on someone else's servers. No way to run it in your own VPC, no access to raw data, no control over retention or processing."
},
{
"title": "Heavy SDKs and slow scripts",
"description": "The average analytics script is 30 to 80 KB. That is real performance impact on every page load, plus the third-party requests and cookie overhead."
},
{
"title": "Cookie consent ruins your UX",
"description": "Cookie-based analytics means consent banners on every page. 30-40% of users reject cookies, giving you incomplete data and a worse user experience."
}
]
},
"features": {
"title": "Built the way developers expect",
"intro": "OpenPanel is TypeScript-first, API-driven, and designed to fit into modern development workflows.",
"items": [
{
"title": "SDKs for every stack",
"description": "Web, Node, React, Next.js, Vue, Nuxt, Astro, Remix, Express, React Native, Swift, Kotlin, Java, Python, Ruby and Rust, plus community Flutter and PHP packages, a script tag and a REST API."
},
{
"title": "3 KB tracking script",
"description": "The web tracker is about 3 KB gzipped and loads async. Session replay is a separate module that only loads when you turn it on. No Lighthouse penalty."
},
{
"title": "REST API for everything",
"description": "Track events, query data, manage projects and export events through the REST API. There is also an MCP server with 48 tools, so Claude, Cursor or your own agent can query your data."
},
{
"title": "Docker Compose self-hosting",
"description": "One install script brings up ClickHouse, Postgres, Redis and the workers. Guides for Docker Compose, Kubernetes, Coolify and Dokploy. Self-hosted releases follow Cloud by a month or two."
},
{
"title": "Cookieless by default",
"description": "A visitor is a daily-rotating salted hash of user agent, IP and site. No cookies, no localStorage, so no consent banner for analytics and nothing for a cookie blocker to strip."
},
{
"title": "Open source (AGPL-3.0)",
"description": "The platform is AGPL-3.0, the SDKs are MIT. Read the code, report bugs, send PRs. Self-hosting is the full product with no feature limits."
},
{
"title": "Event-based data model",
"description": "Track any event with any properties, nested objects included. Custom events in settings group several event names into one that every report can use."
},
{
"title": "Real-time event stream",
"description": "The Events page listens live; new events appear with a click. Open one to see its properties, user, session and device, and filter by any value from the drawer."
},
{
"title": "Declarative tracking with data attributes",
"description": "Add data-track attributes to HTML elements and the web SDK turns clicks into events with the other data-* attributes as properties. No JavaScript for static or server-rendered pages."
}
]
},
"benefits": {
"title": "Why developers choose OpenPanel",
"intro": "Analytics that fits your workflow instead of fighting against it.",
"items": [
{
"title": "Own your data completely",
"description": "Self-host on your infrastructure and query ClickHouse directly. On Cloud, export events through the API or to S3 and GCS. No lock-in."
},
{
"title": "Ship tracking in minutes, not days",
"description": "npm install, add your client id, and screen views start tracking. Custom events are one call."
},
{
"title": "No impact on site performance",
"description": "The 3 KB async script loads without blocking rendering, and without cookies there is no extra request overhead."
},
{
"title": "Works with your deployment pipeline",
"description": "Docker Compose for local dev, Kubernetes for production, or Coolify/Dokploy for managed self-hosting. Fits however you deploy."
},
{
"title": "Product analytics included",
"description": "Funnels, retention, cohorts, user profiles, session replay and AI observability next to web analytics. No separate Mixpanel or Amplitude subscription."
},
{
"title": "Transparent and auditable",
"description": "Every line of code is on GitHub. No tracking pixels you can't inspect, no data processing you can't verify."
}
]
},
"faqs": {
"title": "Frequently asked questions",
"intro": "Technical questions from developers evaluating OpenPanel.",
"items": [
{
"question": "How does self-hosting work?",
"answer": "Run the install script on any Linux box with Docker. It asks a few questions and brings up Docker Compose with Postgres (config), ClickHouse (events), Redis (cache and queues), Redpanda (ingest queue), the API and the worker. A 4 vCPU / 8 GB VPS handles most workloads. There are guides for Docker Compose, Kubernetes, Coolify and Dokploy."
},
{
"question": "What's the data architecture?",
"answer": "Postgres holds relational data (users, projects, dashboards), ClickHouse holds events, sessions and profiles, Redis handles caching, locks and queues. Events arrive at the API, go through a Kafka-compatible queue, and workers write them to ClickHouse in batches."
},
{
"question": "Can I access raw event data?",
"answer": "Yes. Self-hosted, query ClickHouse directly with SQL. On Cloud, export events through the REST API or set up an S3 or GCS export that writes every event as JSONL. There is no sampling."
},
{
"question": "How does cookieless tracking work?",
"answer": "A visitor id is a hash of user agent, IP and site with a salt that rotates every day. No cookies, no localStorage, and the raw IP is not stored on events. Sessions end after 30 minutes of inactivity. Call identify() when you know who the user is."
},
{
"question": "Is there a TypeScript SDK?",
"answer": "Yes. The JavaScript SDKs (web, Node, React, Next.js, Vue, Nuxt, Astro, Remix, Express) are written in TypeScript with full type definitions for every method."
},
{
"question": "Can I track server-side events?",
"answer": "Yes. Use the Node SDK (or Express, Python, Ruby, Rust, Java) with a client secret, or call the REST API from any language. Server-side tracking is the place for payments, API usage and background jobs. Revenue events need the secret unless you enable client-side revenue in project settings."
},
{
"question": "How does OpenPanel compare to PostHog for developers?",
"answer": "PostHog offers more tools (feature flags, experiments, error tracking) and needs more infrastructure to self-host. OpenPanel focuses on analytics: events, funnels, retention, profiles, replay and AI observability, with a lighter stack and a one-script install. Choose PostHog for an all-in-one platform; choose OpenPanel for analytics that is easy to run."
},
{
"question": "What's the tracking script size?",
"answer": "About 3 KB gzipped for the web tracker. Session replay is a separate module of about 59 KB that only loads when replay is enabled. Both load async and never block rendering."
}
]
},
"related_links": {
"guides": [
{
"title": "Next.js analytics setup",
"url": "/guides/nextjs-analytics"
},
{
"title": "React analytics setup",
"url": "/guides/react-analytics"
},
{
"title": "Node.js analytics setup",
"url": "/guides/nodejs-analytics"
},
{
"title": "Python analytics setup",
"url": "/guides/python-analytics"
}
],
"articles": [
{
"title": "How to self-host OpenPanel",
"url": "/articles/how-to-self-host-openpanel"
},
{
"title": "Best open source analytics tools",
"url": "/articles/self-hosted-web-analytics"
},
{
"title": "Cookieless analytics explained",
"url": "/articles/cookieless-analytics"
}
],
"comparisons": [
{
"title": "OpenPanel vs PostHog",
"url": "/compare/posthog-alternative"
},
{
"title": "OpenPanel vs Plausible",
"url": "/compare/plausible-alternative"
},
{
"title": "OpenPanel vs Umami",
"url": "/compare/umami-alternative"
}
]
},
"ctas": {
"primary": {
"label": "Try OpenPanel Free",
"href": "https://dashboard.openpanel.dev/onboarding"
},
"secondary": {
"label": "View Source on GitHub",
"href": "https://github.com/Openpanel-dev/openpanel"
}
}
}