⛵ Sinbad

This page counts its own visits and waves with DAP. Your browser splits each count into two encrypted shares, one for sinbad-leader.thibmeu.com and one for sinbad-helper.thibmeu.com. Neither server can read a share alone; together they only release totals of at least ten reports.

Totals

Visits
–
Waves
–

Every five minutes a collector asks for everything counted since its last result. A total appears once it covers at least ten reports, so the tenth wave publishes the last few.

How this page reports

import { Sinbad } from "sinbad";

Sinbad.init({
  siteId: "sinbad",
  endpoint: "https://sinbad-leader.thibmeu.com/",
});

Sinbad.page();
wave.onclick = () => Sinbad.track("wave");

The site's manifest maps / and wave to DAP tasks. Sinbad.track("purchase", { value: 49 }) adds to a sum in the same way.

Both servers run on one Cloudflare account, so this is a demonstration: DAP's privacy needs them run by independent operators. The Leader still sees your IP address when you report.