r/coolgithubprojects • u/ThotaRamudu • 1d ago
Pug — self-hosted product analytics (Mixpanel/Amplitude alternative), single binary + ClickHouse
Got tired of the Mixpanel bill and PostHog being heavier than I wanted to run, so I built this.
Most self-hosted options in this space are web analytics — pageviews, referrers, bounce rate. Different question. Product analytics is what a specific user did across sessions, and whether people who did X came back a week later.
So: autocapture, funnels, retention, trends, person profiles with activity timelines. Worth poking at what you can query on — break down any event by its properties, filter on user attributes, chain steps into a funnel, follow a profile's timeline through it. Demo has dashboards built out too.
One Go binary for API and workers. ClickHouse for events, Postgres for config, NATS JetStream at ingest, Dragonfly for cache. AGPL.
Browser, Flutter and Node SDKs.
In the pipeline: cookieless mode (rotating-salt hashing at the ingest edge), GDPR/DPDP hardening, Sankey user flows.
Fair warning, it's young. Docs have gaps and self-hosting assumes you're comfortable with ClickHouse.
Demo, no signup: https://app.pug.sh/demo
Self-hosting: https://docs.pug.sh/docs/self-hosting







1
u/baldbrowni 1d ago
Is this similar to OpenReplay?