qmetrics.net

Trench

Open-source event tracking infrastructure on Kafka and ClickHouse

Trench screenshot

Trench ingests and stores product events for real-time analytics. It ships as a single Docker image combining Kafka, ClickHouse, and a Node.js tracking layer.

Overview

Trench is an event tracking system built on Apache Kafka and ClickHouse. It accepts high volumes of events and supports querying and analytics in real time. The project targets product analytics dashboards, observability-style pipelines, and other event-driven use cases described in its documentation.

The stack is packaged as one production-ready Docker image so operators do not need to assemble Kafka, ClickHouse, and application services separately. Ingestion aligns with the Segment-style Track, Group, and Identify APIs, which lets existing Segment-oriented clients send data without bespoke adapters.

Operators can query events through HTTP endpoints and run raw SQL via a dedicated queries API. Webhooks can forward data to downstream systems. Kafka connections support SASL and SSL configuration for both the Node.js client and ClickHouse.

Trench is offered as self-hosted open source that you deploy on your own infrastructure, and as a managed cloud option for teams that prefer not to run the stack themselves. The product emphasizes no-cookie tracking and states GDPR and PECR compliance, with user controls to access, rectify, or delete data.

Key features

  • Segment-compatible Track, Group, Identify APIs
  • Single production-ready Docker image
  • Real-time event querying
  • Raw SQL analysis endpoint
  • Webhook destinations
  • Kafka SASL and SSL support
  • No-cookie GDPR and PECR positioning
  • Thousands of events per second on one node

Use cases

  • Product analytics dashboards
  • LLM RAG event pipelines
  • Observability platforms
  • Google Analytics-style setups with Grafana

Tags

Similar software

ClickHouse

Column-oriented real-time analytics database management system

ClickHouse is a column-oriented database for generating analytical reports in real time using SQL on large datasets.

★ 51.2k⟳ todayApache-2.0
Open Source Alternative to:Amazon Redshift

pandas

Python data structures for labeled analysis

pandas is a Python package for working with labeled, tabular, and time-series data. It provides Series and DataFrame objects with alignment, grouping, and rich import and export options.

★ 50.7k⟳ yesterdayBSD-3-Clause

DuckDB

In-process analytical SQL database engine

DuckDB embeds in applications and the CLI to run fast OLAP SQL locally. It reads Parquet, CSV, JSON, remote object storage, and lakehouse formats without a separate database server.

★ 43.4k⟳ todayMIT

PostHog

Open-source product analytics and context layer for apps

PostHog ingests analytics, session replays, errors, logs, and related product data so teams and agents can query and act on it. It ships feature flags, experiments, surveys, and warehouse tooling in one platform.

★ 41.2k⟳ todayMIT · open core
Open Source Alternative to:AmplitudeFathom Analytics+8

Polars

Rust analytical query engine for DataFrames

Polars is a DataFrame and SQL query engine written in Rust, exposed to Python, R, Node.js, and Rust. It emphasizes parallel, vectorized execution with lazy optimization and out-of-core streaming.

★ 40.5k⟳ todayMIT

Umami

Privacy-first open-source web and product analytics platform

Umami tracks acquisition, behavior, conversion, retention, and revenue in one dashboard without cookies. You can self-host it or use Umami Cloud.

★ 40.4k⟳ 4 days agoMIT
Open Source Alternative to:AmplitudeFathom Analytics+6