opensourcestartups

> /v1/alternatives/segment

Open source alternatives to Segment[009]

Segment collects customer events once and fans them out to analytics, marketing and warehouse destinations with identity resolution. Below are 9 self-hostable open source alternatives, ranked by GitHub popularity.

// ANALYTICS№ 001
PostHog

PostHog

PYTHON

Open-source product analytics, session recording, feature flagging and A/B testing

★ STARS

34.4k

⑂ FORKS

2.7k

OPEN PROJECT→
// AI & ML№ 002
Cube

Cube

RUST

Cube Core is open-source semantic layer for AI, BI and embedded analytics

★ STARS

19.9k

⑂ FORKS

2.0k

OPEN PROJECT→
// ANALYTICS№ 003
Rybbit

Rybbit

TYPESCRIPT

Open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.

★ STARS

12.1k

⑂ FORKS

653

OPEN PROJECT→
// AI & ML№ 004
CocoIndex

CocoIndex

PYTHON

Incremental engine for long horizon agents Star if you like it!

★ STARS

9.1k

⑂ FORKS

671

OPEN PROJECT→
// DATABASE№ 005
Mage

Mage

PYTHON

Build, run, and manage data pipelines for integrating and transforming data.

★ STARS

8.7k

⑂ FORKS

963

OPEN PROJECT→
// DATABASE№ 006
CloudQuery

CloudQuery

GO

Data pipelines for cloud config and security data. Build cloud asset inventory, CSPM, FinOps, and vulnerability management solutions. Extract from AWS, Azure, GCP, and 70+ cloud and SaaS sources.

★ STARS

6.4k

⑂ FORKS

544

OPEN PROJECT→
// OTHER№ 007
Jitsu

Jitsu

TYPESCRIPT

Capture Event Data into Your Stack

★ STARS

4.8k

⑂ FORKS

350

OPEN PROJECT→
// AI & ML№ 008
Litlyx

Litlyx

TYPESCRIPT

Powerful Analytics Solution. Setup in 30 seconds. Display all your data on a Simple, AI-powered dashboard. Fully self-hostable and GDPR compliant. Alternative to Google Analytics, MixPanel, Plausible, Umami & Matomo.

★ STARS

1.7k

⑂ FORKS

112

OPEN PROJECT→
// AI & ML№ 009
Trench

Trench

TYPESCRIPT

Open-Source Analytics Infrastructure. A single production-ready Docker image built on ClickHouse, Kafka, and Node.js for tracking events. Easily build product analytics dashboards, LLM RAGs, observability platforms, or any other analytics…

★ STARS

1.6k

⑂ FORKS

62

OPEN PROJECT→

// EDITOR'S TAKE

Jitsu is the closest fit, since it is built specifically to capture events at the edge and stream them into your warehouse and downstream tools, which is Segment's core job. PostHog captures the same events but keeps them inside its own analytics product rather than acting as a neutral pipe, and Trench is the option if your volume is high enough that a ClickHouse and Kafka backend is the point.

// FREQUENTLY ASKED

What is the best open source Segment alternative?

PostHog is the most popular open source Segment alternative by GitHub stars (34,351 stars). The other 8 options are ranked above.

Are these Segment alternatives self-hostable?

Yes — every project listed here is open source and runs on your own infrastructure. Click into a project to see its license, stars, language, and current health status.

Are they free?

All projects shown are free and open source. Check each project's license page for the terms — most are MIT, Apache 2.0, or AGPL.

// PART OF THESE COLLECTIONS

Best Open Source Segment Alternatives (9+ projects) | Open Source Startups