All 36 Dependencies
Every package Trench depends on, ranked by repo health score.
Trench is an open-source analytics infrastructure designed for teams that need scalable, real-time event tracking without the complexity of wiring together Kafka and ClickHouse independently. Built by the Frigade team to solve their own production scaling bottlenecks, it replaces slow Postgres-based event tables with a high-throughput pipeline capable of ingesting thousands of events per second on a single node and querying them in real time.
The system packages Apache Kafka for event ingestion, ClickHouse for fast columnar SQL queries, and a NestJS API layer into a single production-ready Docker image. It supports self-hosting on any cloud provider with full data control, or a managed Trench Cloud option with serverless autoscaling and 99.99% SLAs. The platform is GDPR and PECR compliant by design — no cookies, with built-in user data access, rectification, and deletion controls.
Trench implements the Segment Track, Identify, and Group API schema natively, enabling drop-in replacement for tools like PostHog or Mixpanel without changing client-side instrumentation code. Events can be forwarded in real time to external systems via configurable webhook subscriptions, and raw SQL queries against ClickHouse are exposed through a REST API for ad-hoc analysis and dashboard integrations.
Multi-workspace support provides tenant-level isolation using per-workspace Kafka topics and ClickHouse databases, making Trench suitable for SaaS platforms that need to provide analytics as a product feature without mixing customer data in shared tables.