← Special pages

Architecture

analytics.svrbc.org is a static page on GitLab Pages that draws its own charts. Its numbers come from PostHog, where every SVRBC site sends its visits and clicks without cookies. They aren’t part of the site: every hour a Lambda function asks PostHog for them and writes data.json, which CloudFront serves and the page reads. The page never talks to PostHog itself.

A reader loads the page from GitLab Pages and its data.json from CloudFront. A release's pipeline publishes the page and deploys the Lambda function, which every hour asks PostHog for the numbers and writes data.json. SVRBC's sites send their events to PostHog. Reader anyone; no sign-in GitLab Pages the page CloudFront + S3 data.json svrbc/analytics.svrbc.org site/, scripts/ GitLab CI a release tag Lambda, every hour fetch_data.py; key in SSM SVRBC’s sites posthog-js, cookieless PostHog project sites query API, read-only key CNAME data.json release publishes deploys writes HogQL events

Dashed arrows: what a release does. Colored outlines: what serves this site.