PostHog
Product analytics, session recording, feature flagging and a/b testing that you can self-host (alternative to Mixpanel, Amplitude, Heap, HotJar, Optimizely).
- Analytics
- Python
- MIT
- Actively maintained
GitHub stats
- GitHub stars
- 40,156
- Forks
- 3,477
- Open issues
- 3,747
- Commits, last 12 months
- 35,167
- Last commit
- Oct 6, 2026
- Latest release
- desktop-v0.61.621Oct 1, 2026
- Created
- Jan 23, 2020
Data from the GitHub API, refreshed daily.
About PostHog
Product analytics, session recording, feature flagging and a/b testing that you can self-host (alternative to Mixpanel, Amplitude, Heap, HotJar, Optimizely). PostHog is open source under the MIT license and written mainly in Python, so you can read the code, run it on your own hardware and keep full control of your data.
The project has 40,156 stars and 3,477 forks on GitHub, with 35,167 commits over the last year. It installs natively rather than through an official Docker image, so plan for a short manual setup.
Topics
- analytics
- python
- react
- javascript
- typescript
- ab-testing
- experiments
- feature-flags
- session-replay
- ai-analytics
Open-source alternative to
PostHog can replace these commercial products. Compare every option on each page.
Repository preview
Similar apps
More apps like PostHog
Other projects in Analytics, ranked by GitHub stars.
Superset
apache/superset
Modern data exploration and visualization platform.
AnalyticsPythonMetabase
metabase/metabase
Easy way for everyone in your company to ask questions and learn from data.
AnalyticsClojureDockerUmami
umami-software/umami
Simple, fast, privacy-focused alternative to Google Analytics.
AnalyticsTypeScriptDockerPostiz
gitroomhq/postiz-app
Schedule posts, track the performance of your content, and manage all your social media accounts in one place (Alternative to Buffer, Hootsuite, Sprout Social).
AnalyticsTypeScriptDockerNetron
lutzroeder/netron
Visualizer for neural network and machine learning models.
AnalyticsJavaScriptPlausible Analytics
plausible/analytics
Simple, lightweight (< 1 KB) and privacy-friendly web analytics.
AnalyticsElixir
What is PostHog?
PostHog is a free, open-source app you can host on your own server, listed in our Analytics category. Product analytics, session recording, feature flagging and a/b testing that you can self-host (alternative to Mixpanel, Amplitude, Heap, HotJar, Optimizely). The source code lives at github.com/PostHog/posthog, where it has 40,156 stars.
Is PostHog free and open source?
Yes. PostHog is open-source software released under the MIT license, so you can self-host it at no cost. You only pay for the server it runs on, and some projects also offer an optional paid cloud plan.
Can I run PostHog with Docker?
PostHog does not list an official Docker image. It installs natively (Python), so follow the install steps in its README or look for a community-maintained container.
What are the best alternatives to PostHog?
Popular open-source alternatives to PostHog include Superset, Metabase and Umami. PostHog itself is a self-hosted alternative to Google Analytics and Metabase Cloud.
Is PostHog actively maintained?
The most recent commit to PostHog was on Oct 6, 2026 with 35,167 commits in the past twelve months. The latest release is desktop-v0.61.621, published Oct 1, 2026. Check the open issues on GitHub to gauge how quickly maintainers respond.