Help Center / Getting started
01 · Getting started
Measr is a self-hosted analytics toolkit. You run it on your own Supabase project and your own domain. This page explains the three pieces, what you need before installing, and which setup path to pick.
Measr ships as a repository, not a service. Everything you deploy comes from three folders:
| Piece | Where it lives | What it does |
|---|---|---|
| Tracking SDK | sdk/measr.js | One ES module, about 10 KB minified. Nine tracking modules, no cookies. You add it to your site with a short init snippet. |
| Database | database/migrations/ | Numbered SQL files you run on a free Supabase project. They create the tables, indexes, security policies, and the server-side functions the dashboard calls. |
| Dashboard | dashboard/ | A React app that builds to a static dist/ folder. Deploy it to any static host, sign in, and read your data across eight sections. |
The data flows in one direction:
Your site ──→ sdk/measr.js ──→ measr-ingest ──→ Your Supabase ──→ dashboard/
(sends event (edge function: (Postgres + (auth-gated
batches) validates, rate- RLS + RPCs) reads)
limits, writes)
As of v1.3.0 the tracking script sends every event to the measr-ingest edge function in your own Supabase project, which validates and rate-limits each request and writes with server-side credentials — the current SDK uses only that endpoint. The public key itself also retains the legacy write-only grants so pre-v1.3.0 SDK copies keep working — either way it can never read, change, or delete analytics. The dashboard reads as an authenticated user. That split is the whole security model.
node --version to check)Browser support: all modern evergreen browsers. The SDK generates no IDs in the browser and needs only fetch and standard DOM APIs.
Both paths produce the same install. The difference is who does the typing.
The repo ships a built-in setup skill for Claude Code, plus a ready-made prompt for Cursor, Windsurf, and other assistants. The assistant checks your prerequisites, walks you through Supabase, scans your site, shows you exactly what will be tracked before writing any code, and verifies each event type at the end.
Continue with the guided setup →
Seven steps you run yourself: create the Supabase project, run the migrations, add the tracking snippet, create a dashboard user, configure and build the dashboard, deploy, verify. Nothing in it requires prior Supabase experience.
Continue with the manual setup →
The live demo at demo.measr.app is a real Measr dashboard reading real data. The sign-in form is pre-filled: just click Sign In and click around the eight sections.