Work / Analytics / Data infrastructure
Vectr4
A self-hosted product analytics platform designed around data ownership, performance, and infrastructure independence.

Project overview
Vectr4 is a product analytics platform I designed and built to run on the operator's own server. The point is to answer product questions — what happened, when, and for how many users — without sending every event to a third-party analytics vendor.
It is an independent product, separate from client work. The public site is vectr4.com.
Business problem
Small software teams need to know how a product is used. Website analytics answers traffic questions. Large product-analytics platforms answer deeper questions and often assume a vendor, a usage bill, and a data-processing agreement the team did not particularly want.
Vectr4 is the middle path I wanted for my own products and for technical teams with the same constraint: events and product behaviour, on hardware they control.
Responsibilities and scope
- Architecture, backend, dashboard, and deployment model.
- JavaScript and PHP SDKs for sending events.
- Documentation for running the stack with Docker Compose.
Engineering solution
A small script or SDK sends events to a Rust API built with Axum. The API validates and buffers them. Analytical data is stored in ClickHouse. Accounts, projects, and API keys live in PostgreSQL. Redis covers rate limiting and short-lived query cache. A Next.js dashboard reads from that API. Caddy terminates TLS and routes traffic.
The deployment target is a single server with Docker Compose, sized so a small team can run it without a dedicated platform group.
Key functionality
- Event collection and counts.
- Timeseries, unique users, and top events.
- Property breakdowns and filters.
- Funnels and session views in the dashboard.
- Project and API-key management.
- Self-hosted deployment with Docker Compose.
Technical architecture
- Rust API (Axum) for ingestion and queries.
- ClickHouse for analytical events.
- PostgreSQL for users, organisations, projects, and API keys.
- Redis for rate limits, API-key cache, and query cache.
- Next.js dashboard.
- Caddy for TLS and routing.
Deliverables
- A self-hosted analytics product with a public site, documentation, and a Docker Compose deployment path.
- SDKs for sending events from JavaScript and PHP.
- This website does not publish customer revenue, event volume, or other business results for Vectr4. Figures shown in marketing imagery are examples, not reported outcomes.
Revenue analytics is not listed because it is not a verified part of the product.
Discuss a similar problem.
If this is close to what your team needs, send a short note. I will reply by email.
Bepitic