Track and query large volumes of events in real time using Apache Kafka and ClickHouse.

Trench is an open-source, self-hosted web app and server that provides an event tracking system for real-time analytics. It is designed to handle large event volumes and is deployed as a server application, typically via Docker and Docker Compose. The system serves as a backend infrastructure for capturing user interactions and streaming them into a queryable database.
The software functions as a specialized pipeline for capturing and querying user events. It is built to be no-cookie and compliant with GDPR and PECR, ensuring that users maintain full control over the access, rectification, and deletion of their data. It is intended for organizations that need to scale their event tracking without relying on third-party proprietary platforms.
Trench uses a backend architecture based on Apache Kafka for event streaming and ClickHouse for high-speed storage and analysis. It provides a set of API endpoints for sending events and querying results, allowing developers to interact with the data programmatically. The system can be integrated with external visualization tools like Grafana to build custom analytics dashboards. The infrastructure supports complex Kafka configurations, including SSL/TLS certificates and various SASL mechanisms such as SCRAM-SHA-256 and SCRAM-SHA-512.
It is positioned as a high-performance analytics infrastructure for teams requiring full ownership of their event data and the ability to perform raw SQL analysis on their event streams.
Track user behavior and analyze product data through event tracking, session replays, and feature flags.
A self-hosted session replay and product analytics suite for troubleshooting web application issues and monitoring performance.
Join our newsletter to get shiny new open source software delivered to your inbox. Unsubscribe anytime.