/tools/peepless/Folio 1 of 7HomeDaybook of peepless 1.0.0-rc.2Days kept in UTC
1.1

Analytics that doesn't peep.

Peepless keeps a daybook for your app: one line per counter per day, a number on each line, and nothing else. No cookie, no visitor ID, no IP address. There's nothing about anyone to leak, so there's no cookie banner to show.

npm i peepless
  • Dependencies 0
  • Browser client, gzipped about 1.4 KB
  • Works under a strict CSP script-src 'self'
  • License MIT
Totals onlyNo names

Today's page of peepless.counts

project peepless-site
Incoming slip (one beacon)
daycountercount

A slip arrives with every page view. Watch it get posted.

peepless's real handler, running in your browser. Nothing is sent.
1.2

What the slip is, and why it gets shredded

One slip per page

On each page view the browser posts a beacon: the project, the event and, on the first page of a visit, the referrer's hostname and the route pattern the path matched. Under 300 bytes, sent as text/plain.

Posted as +1s

Your server turns the slip into a few counter names (pageview, visit, from:hn, country:de, page:/setup/) and adds one to each for today, in one table.

Then forgotten

The request, the address, the User-Agent and the referrer's hostname are not written anywhere. What's left is a day, a name and a number. Nobody can leak what was never entered.

1.3

Why keep the books this way

  • No cookie banner. It sets no cookie and stores nothing about a person, so there's nothing to ask consent for.
  • Real people, not bots. Automated browsers send nothing, crawlers and link previewers are dropped on the server, and human counts only visits with a real tap, key press or 10 seconds on screen.
  • Your database, your numbers. One web-standard handler on Next.js, Vercel, Netlify, Cloudflare, Deno or a Supabase Edge Function, writing to one table you own.
  • Fits a strict CSP. Serve peepless.js from your own site and script-src 'self' is enough.

Never entered in these books

  • Unique visitors, sessions, funnels, retention. They all need something that identifies a person. That's the one thing peepless doesn't have.
  • Full URLs, search terms, free-text event properties. A counter name comes from a list the server holds, never from the browser.
  • Browser, device or screen breakdowns. They'd mean keeping something derived from the user agent.
  • Real-time views. The unit is a day.
  • A hosted service. Your database, your numbers.
1.4

This site will keep its own daybook

Once the read API lands, these pages count themselves with peepless and publish the numbers. Every folio you open will be a slip, and Folio 07 the ledger they become, built on readCounts and summarize. Until then it shows sample data, and nothing here is counted.

Margin note: it's best effort. An ad blocker can stop the beacon, and someone faking the Origin header from a script can add counts, up to the rate limit. It's for "is anyone using this?", not for billing.