Analytics Platform · Self-initiated · Ryvo Labs
Native PostHog dashboard at /admin — branded, fast, password-gated
Real-time visitor + funnel analytics inside the site, not outside it
<0s
Cold dashboard load over 19 parallel PostHog queries
0
Third-party chart libraries pulled into the bundle
0s
Auto-refresh interval for the real-time strip
Why we built it
The problem we wanted to solve.
We wanted analytics for the marketing site without sending the admin to a third-party UI to read them. PostHog's own dashboards work but break the brand. We wanted KPI cards, a real-time pulse, a time-series chart, devices and OS breakdowns and a recent-event feed — all in Ryvo green, all behind a login, with no chart library in the bundle.
How we built it
The approach, step by step.
- Web-Crypto HMAC-signed session cookie + Edge middleware gating /admin/* and /api/admin/*
- 19 HogQL queries fanning out in parallel per dashboard refresh
- A custom SVG area chart with hover crosshair (no chart library, zero new deps)
- Auto-refresh every 60s for the real-time visitor strip
- A first-run setup checklist UI when env vars are missing — turns "it errored" into "do these three things"
Embedding a vendor iframe felt like cheating. Querying their API and rendering the dashboard ourselves was four hours more work and a much cleaner result.
— Build notes
More builds