# Trench

> Trench is a self-hosted, open-source analytics infrastructure built on ClickHouse and Kafka for tracking events at scale, compliant with Segment API and GDPR/PECR.

- **Category:** Analytics
- **Licence:** MIT
- **Latest version:** trench-js@0.0.17
- **Open source:** oss
- **Languages:** Typescript
- **Platforms:** Docker Compose
- **Tags:** Analytics, Dashboard, Real Time, Tracking, Clickhouse, Gdpr, Webhooks, Product Analytics, SQL, LLM, Rag, Kafka, Event Tracking, Node.js, Open Source, Self Hosted, Dashboards, Matomo, Posthog, Plausible Analytics, Segment API, Clickhouse Database, Clickhouse Server, Tracking Events, Kafka Engine, Event Replay, Matomo Analytics

## Description

This analytics platform runs on Kafka and ClickHouse to ingest and query high-volume event streams in real time. It implements the Segment tracking API, respects GDPR and PECR rules without cookies, and lets users export data through webhooks. A single Docker Compose file spins up the API, Kafka, and ClickHouse together, while a managed cloud tier adds autoscaling and SLA guarantees.

## Links

- [Homepage](https://github.com/frigadehq/trench)
- [Website](https://trench.dev)
- [Demo](https://demo.trench.dev)
- [Documentation](https://docs.trench.dev)
- [Slack Community](https://join.slack.com/t/trench-community/shared_invite/zt-2sjet5kh2-v31As3yC_zRIadk_AGn~3A)
- [GitHub Repository](https://github.com/frigadehq/trench)

---
Source: https://selfhost.directory/project/trench