posthog-reference-architecture

Featured

Production PostHog architecture: event taxonomy, SDK layering, feature flag strategy, analytics module layout, and data pipeline integration patterns. Trigger: "posthog architecture", "posthog best practices", "posthog project structure", "how to organize posthog", "posthog design".

AI & Automation 2,940 stars 439 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# PostHog Reference Architecture ## Overview Production-grade architecture for PostHog analytics in a web application. Covers file structure, event taxonomy design, SDK initialization layers, feature flag management, group analytics for B2B, and data pipeline integration. ## Prerequisites - PostHog Cloud or self-hosted instance - `posthog-js` and `posthog-node` SDKs - Next.js or React application (patterns adapt to other frameworks) ## Architecture ``` ┌─────────────────────────────────────────────────────┐ │ Browser (posthog-js) │ │ $pageview, $autocapture, custom events, identify │ │ Feature flag evaluation, session recordings │ └────────────┬────────────────────────────────────────┘ │ HTTPS (direct or reverse proxy) ▼ ┌─────────────────────────────────────────────────────┐ │ PostHog Cloud (us.i.posthog.com) │ │ ┌──────────┐ ┌──────────┐ ┌───────────────────┐ │ │ │ Events │ │ Feature │ │ Session Replay │ │ │ │ Pipeline │ │ Flags │ │ & Recordings │ │ │ └────┬─────┘ └────┬─────┘ └───────────────────┘ │ │ │ │ │ │ ┌────┴──────────────┴────────────────────────────┐ │ │ │ Analytics: Trends, Funnels, Retention, Paths │ │ │ │ HogQL (SQL), Dashboards, Cohorts │ │ │ └────────────────────────────────────────────────┘ │ │ ┌────────────────────────────────────────────────┐ │ │ │ CDP: De...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category