Documentation Index
Fetch the complete documentation index at: https://revlytics.co/docs/llms.txt
Use this file to discover all available pages before exploring further.
Architecture overview
Revlytics is built on a modern, high-performance stack designed to handle millions of events with minimal latency.Tech stack
| Component | Technology | Purpose |
|---|---|---|
| Frontend | Next.js 16, React 19, Tailwind CSS | Dashboard UI |
| Analytics DB | ClickHouse | High-speed event storage and aggregation |
| Auth & Config | Supabase (PostgreSQL) | User auth, site config, integrations |
| Tracking | Vanilla JS | Lightweight client-side tracking script |
| Session Replay | rrweb | DOM recording and playback |
| Maps | Mapbox GL | Real-time visitor globe |
| Charts | Recharts | Interactive data visualizations |
Data flow
Script loads
The tracking script (
script.js) loads asynchronously on your site. It’s under 10KB gzipped and doesn’t block rendering.Events are captured
The script captures pageviews, clicks, errors, and other interactions. Events are sent via
POST requests with navigator.sendBeacon for reliability.Server processes events
The
/api/event endpoint validates the event, extracts geolocation from the IP address, parses the user agent, and enriches the data.Data is stored
Events are inserted into ClickHouse for fast analytical queries. ClickHouse’s columnar storage makes aggregations over millions of rows instant.
Privacy by design
- No third-party cookies — Visitor identification uses first-party cookies only
- IP anonymization — IP addresses are used for geolocation only and can be configured to not be stored
- Minimal data — Only essential analytics data is collected
- Self-hostable — Run on your own infrastructure for full data ownership
- Opt-out support — Users can opt out via
localStorageor your consent manager