Analytics
remy-admin analyticsEvery Remy app records its own traffic with no setup: pageviews on each navigation, plus the sources, geography, devices, and referrers behind them. This surface reads that data back using the CLI or the typed client, the same numbers the built-in dashboard shows, so an app can build its own analytics view on top of them. query is the general read: metrics (pageviews, visitors, visits, events) crossed with one dimension or a time series, narrowed by filters, over a window. Summary KPIs, time series, top-N breakdowns, and custom-event stats are all shapes of that one call; batch runs up to ten in a single round trip.
The rest are focused reads: sources ranks traffic by its first touch, and map returns city points for a globe. live gives a one-shot count of who is on the app right now, ai-sources breaks out referrals from AI assistants, and crawlers shows what bots are ingesting. Recent, single-dimension reads come from a rollup kept for the full history; cross-dimension and text-filtered reads scan a 90-day event table, and the response says which it used.