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.
A public REST API for querying analytics data is planned. Currently, analytics data is queried internally by the dashboard via server components that directly query ClickHouse.
Current architecture
The dashboard uses Next.js server components to query ClickHouse directly. Each dashboard page constructs SQL queries with time-range filters and breakdowns.Planned public API
The following endpoints are planned for the public API:| Endpoint | Description |
|---|---|
GET /api/v1/stats | Summary stats (visitors, pageviews, bounce rate) |
GET /api/v1/timeseries | Time series data for charts |
GET /api/v1/pages | Top pages breakdown |
GET /api/v1/referrers | Traffic sources |
GET /api/v1/countries | Geographic breakdown |
GET /api/v1/devices | Browser, OS, device breakdown |
GET /api/v1/events | Custom events breakdown |
GET /api/v1/vitals | Web Vitals data |
Query parameters (planned)
| Parameter | Type | Description |
|---|---|---|
site_id | string | Site to query |
period | string | today, 7d, 30d, custom |
from | string | Start date (ISO 8601) |
to | string | End date (ISO 8601) |
filters | string | Filter expression |