PostHog

PostHog/posthog

Python No license Dev Tools License not recognized by GitHub

🦔 PostHog is an all-in-one developer platform for building successful products. We offer product analytics, web analytics, session replay, error tracking, feature flags, experimentation, surveys, data warehouse, a CDP, and an AI product assistant to help debug your code, ship features faster, and keep all your usage and customer data in one stack.

35.4k stars
2.9k forks
active
GitHub +119 / week

35.4k

Stars

2.9k

Forks

4.6k

Open issues

30

Contributors

AI Analysis

PostHog is a comprehensive, open-source product analytics and operations platform that integrates analytics, session replay, feature flags, experiments, surveys, error tracking, and data warehouse capabilities in a single stack. It serves product teams, developers, and data analysts who want to understand user behavior and ship features faster without vendor lock-in. Best suited for mid-to-large companies and technical teams; not for organizations seeking simple, lightweight analytics-only so...

Dev Tools Application Discovery value: 3/10
Documentation 8/10
Activity 10/10
Community 9/10
Code quality 5/10

Inferred from signals mentioned in the README (tests, CI, type safety) — not a review of the actual code.

Overall score 8/10

AI's overall editorial judgment — not an average of the bars above, can weigh other factors too.

product-analytics session-replay feature-flags ai-observability data-warehouse
Actively maintained Well documented Popular Community favorite Beginner friendly Production ready
Deep Analysis · Based on README and public signals
2w ago

PostHog: open-source all-in-one product analytics and tooling platform for developers

PostHog bundles product analytics, session replay, feature flags, A/B testing, error tracking, surveys, a data warehouse, and a CDP into a single self-hostable or cloud-hosted platform. It targets software product teams — especially startups and developer-led companies — that want to avoid stitching together Mixpanel, LaunchDarkly, FullStory, and Segment. Its core appeal is data ownership, a generous free tier, and a developer-first design philosophy. With 35k+ stars, active enterprise adoption, and a venture-backed commercial entity behind it, it sits among the most credible open-source product tools.

Origin

Founded in January 2020 and backed by Y Combinator (S20), PostHog pivoted early from a narrow analytics tool to a broader product platform. It has expanded its feature surface aggressively since 2021, adding session replay, experimentation, and most recently a data warehouse and AI observability.

Growth

Growth was initially driven by developer community word-of-mouth and the open-source self-hosting angle in a market dominated by locked-down SaaS tools. The generous free cloud tier accelerated adoption among startups. Feature breadth expansion (each new product attracting a different buyer) and the data privacy narrative (EU Cloud, self-host) have sustained steady interest. 79 stars in 7 days suggests stable but not explosive current momentum — consistent with a maturing, commercially-backed project rather than a viral spike.

In production

PostHog publishes a public customer list including names like Airbus, Hasura, and thousands of startups. Docker Hub pull count badge is present in the README, suggesting significant self-hosted deployments. The company discloses that it is profitable and has thousands of paying customers on its cloud offering. Adoption is verifiable and appears to be at meaningful scale, though exact MAU or event volume figures are not publicly audited.

Code analysis
Architecture

Likely a monorepo combining a Python/Django backend, a React frontend, and ClickHouse as the primary analytics datastore, with Kafka for event ingestion pipelines. The self-host hobby deploy uses Docker Compose; production-grade deployments appear to target Kubernetes. The multi-product architecture likely involves separate Django apps or services per product area. AI assistant and data warehouse features suggest additional integrations with LLM APIs and object storage.

Tests

Not documented in README

Maintenance

Last push was 2026-06-24 (same day as evaluation), indicating active daily development. The repository shows high contributor count and a public changelog and roadmap. Closed issue count badge is present, suggesting structured issue triage. All signals indicate a well-maintained, commercially-supported project with no observable stagnation.

Honest verdict

ADOPT IF: you are a startup or mid-size product team that wants analytics, session replay, feature flags, and experimentation in one platform without managing multiple vendor contracts, and you value self-hosting or EU data residency options. AVOID IF: you need enterprise-grade depth in any single category (e.g., Amplitude-level behavioral modeling, LaunchDarkly's flag governance, or Segment's full connector catalog) — PostHog's breadth trades against depth in specialized areas. MONITOR IF: you are a larger enterprise evaluating a data-ownership-first stack; PostHog's data warehouse and CDP features are still maturing and may reach sufficient depth within 12–18 months.

Independent dimensions

Mainstream potential

7/10

Technical importance

8/10

Adoption evidence

8/10

Risks
  • Self-hosted deployments are explicitly unsupported for production by PostHog; the hobby deploy caps at ~100k events/month, meaning most users are pushed toward the commercial cloud, which may conflict with the open-source positioning for some teams.
  • Feature breadth creates product quality risk: shipping 10+ tools within one codebase means some modules may lag behind specialized competitors in depth or reliability at any given time.
  • Dual-license model (open-source core vs. paid features) means certain capabilities are not available without a paid plan, which can surprise teams that adopted PostHog expecting full open-source parity.
  • Dependency on ClickHouse for analytics at scale creates operational complexity for self-hosting teams; migrating away from PostHog's data model is non-trivial once deeply adopted.
  • Commercial concentration risk: PostHog is venture-backed; if the company's business trajectory changes, the open-source community would need to maintain an architecturally complex platform independently.
Prediction

PostHog is likely to continue expanding its platform surface (AI tooling, warehouse, workflows) and consolidate its position as the default product stack for developer-first startups. Enterprise market penetration will likely increase but remain below established SaaS incumbents in any single category.

0 found this helpful

Newsletter

Get analyses like this every Monday

Free weekly digest of the most interesting open-source discoveries.

Languages

Python
54.5%
TypeScript
35.2%
Rust
7.5%
HCL
1.1%
JavaScript
0.4%
Go
0.3%
SCSS
0.2%
HTML
0.2%

Information

Language
Python
License
NOASSERTION
Last updated
11h ago
Created
79mo ago
Analyzed with
anthropic/claude-haiku-4-5

Stars over time

Loading…

Contributors over time

Top 100 contributors only — repos with more will plateau at 100.

Loading…

Similar repos

PostHog

PostHog/posthog.com

PostHog.com is the official website, documentation, and handbook repository for...

1.1k TypeScript Web Dev
pgsty

pgsty/pigsty

Pigsty is an enterprise-grade PostgreSQL distribution that bundles HA...

5.2k Shell DevOps
hoppscotch

hoppscotch/hoppscotch

Hoppscotch is an open-source API development ecosystem for testing and...

79.8k TypeScript Dev Tools
Postcatlab

Postcatlab/postcat

Postcat is an extensible, open-source API development and testing tool...

5.5k JavaScript Dev Tools
openreplay

openreplay/openreplay

OpenReplay is a self-hosted, open-source session replay platform that captures...

12.2k TypeScript Dev Tools
vs. alternatives
Mixpanel

Mixpanel is a mature, SaaS-only product analytics tool with stronger enterprise analytics depth. PostHog offers self-hosting, open source code, and feature flags/experiments that Mixpanel lacks natively. Mixpanel has a larger enterprise footprint but PostHog is increasingly competitive for developer-led companies.

Amplitude

Amplitude targets larger enterprises with advanced behavioral analytics. PostHog lacks some of Amplitude's chart sophistication but compensates with a broader toolset (session replay, feature flags, surveys) at lower cost and with self-hosting option.

LaunchDarkly

LaunchDarkly is the category leader for feature flags. PostHog's feature flags are capable but secondary to its analytics focus; LaunchDarkly offers more advanced flag targeting and audit tooling. Teams needing flags as a primary product should evaluate both carefully.

Segment (Twilio)

Segment is the established CDP. PostHog's data pipelines and CDP features overlap but are positioned as complementary to its analytics core rather than a standalone CDП. Segment has a larger connector ecosystem; PostHog offers tighter analytics integration.

HyperDX

HyperDX focuses on developer observability (logs, traces, errors). PostHog's error tracking and AI observability features overlap partially, but the tools serve different primary personas — PostHog is product-team facing, HyperDX is ops/SRE facing.