Vibecode Plausible

track this build7 phases, 21 steps, beginner friendly
YES · one-shottable
price $9/moyou'd save $108/yrbuild time weekendcategory 📊 analyticsreplaced by 0 people

Basic pageview/event analytics are easy, and Plausible's own code is open source; the paid value is hosted reliability, maintenance, and support.

the project pack5 files · written for this build, step by step
README.md
# Plausible · indie build

Privacy-first analytics for your own sites: a tracker under 2 KB with no cookies, an ingest endpoint that never stores a raw IP, a daily-rotating visitor hash exactly as Plausible defines it, sessions and bounce rate computed at write time, and a fast dashboard. Honest at personal-site scale, and you can state the ceiling.

Estimated effort: **weekend**. Work `BUILD_PLAN.md` top to bottom · every phase ends in a check that has to pass before the next one starts.

## Stack

| Part | Choice | Why |
| --- | --- | --- |
| Runtime | Node 22, node:http and node:sqlite | an event is one INSERT; the dashboard is a handful of indexed GROUP BYs |
| Database | SQLite in WAL mode | fine to a few million events; say the ceiling out loud |
| Tracker | Hand-written vanilla JS under 2 KB | if it needs a bundler it is too big |
| Geo | MaxMind GeoLite2 country database, read locally | country from IP without sending the IP anywhere |
| Hosting | A small VPS behind Caddy | the ingest endpoint must be public and on HTTPS |

## Before you start

Have every one of these ready. The plan assumes them from step one.

- [ ] **Node.js 22 or newer** · free
  - Why: Everything in this build runs on it: the server, the scripts, the tests.
  - Get it: Download the LTS installer from nodejs.org, or install with your package manager (brew install node, or nvm install 22). Restart the terminal afterwards.
  - Verify: node --version prints v22 or higher
- [ ] **A terminal and a code editor** · free
  - Why: Every step below is a command you type or a file you edit.
  - Get it: VS Code (code.visualstudio.com), Cursor or Zed. Open a folder for the project and use the editor's built-in terminal.
  - Verify: You can open a folder and run a command in its terminal
- [ ] **Git** · free
  - Why: History for your code, and the way most hosts deploy.
  - Get it: Install from git-scm.com or with your package manager, then run git init in the project folder once it exists.
  - Verify: git --version prints a version
- [ ] **The site (or sites) you want to measure** · free
  - Why: The tracker is a script tag you add to each site; you need somewhere to add it.
  - Get it: Write down each site's domain. Each becomes a site_id in SITES.
- [ ] **A MaxMind account and licence key for GeoLite2** · free
  - Why: Country breakdowns need an IP-to-country database. GeoLite2 is free but requires an account to download and to receive updates.
  - Get it: Sign up at maxmind.com/en/geolite2/signup, then Account > Manage License Keys > Generate new license key. Download GeoLite2-Country.mmdb (or use geoipupdate). Put the file path in .env.
  - Verify: The .mmdb file exists at GEOIP_DB_PATH
- [ ] **Understand the daily-salt rule** · free
  - Why: The privacy claim rests on one rule: the salt rotates daily and the old one is deleted. If you keep old salts, this is a tracker with extra steps.
  - Get it: Read Plausible's data policy page once before Phase 1 so the design is yours, not a guess.
- [ ] **A small always-on server (VPS)** (optional) · about $5 a month
  - Why: This needs one process running all the time with a public address. Sites post to it from the visitor's browser, so it must be public.
  - Get it: Hetzner Cloud (from about 4 EUR), DigitalOcean or Fly.io. Ubuntu 24.04, the smallest size. You need SSH access and a public IP. Only needed for the deploy phase; develop locally first.
- [ ] **A domain or subdomain** (optional) · roughly $10 a year, or free on an existing domain
  - Why: The collector needs an HTTPS address, e.g. stats.yourdomain.com.
  - Get it: Register at Cloudflare Registrar, Porkbun or Namecheap, or use a subdomain of one you already own. You add one DNS record in the deploy phase.
- [ ] **Caddy on the server** (optional) · free
  - Why: Automatic HTTPS in front of the Node process. Without TLS the browser features this relies on (and your visitors' trust) do not work.
  - Get it: On the VPS: follow the install steps at caddyserver.com/docs/install for Ubuntu. One Caddyfile with your domain and a reverse_proxy line is the whole config.
  - Verify: caddy version prints a version on the server

## Quick start

```sh
mkdir analytics && cd analytics && git init && npm init -y && npm pkg set type=module
mkdir data public && cp .env.example .env
```

Then copy `.env.example` to `.env` and fill in the values it documents.

## Honest limits

This build deliberately does not replace:

- Funnels, goals, revenue attribution and scheduled email reports.
- Bot filtering tuned on adversarial traffic. Yours is a list.
- Millions of pageviews. SQLite on one box is honest for personal sites; above that, self-host Plausible.
- battle-tested bot filtering
- fast queries at millions of pageviews
- email reports, funnels, goal tracking
- GDPR homework done for you

If one of those is essential to you, that is the reason to keep paying for Plausible, and the README should say so rather than pretend.

$ choose a build depth, inspect the files, then open the complete pack in your agent

why people still pay

They pay because analytics must be boring, fast, and legally safer without ops.

what you lose

xbattle-tested bot filtering

xfast queries at millions of pageviews

xemail reports, funnels, goal tracking

xGDPR homework done for you

share on X ↗"I just replaced Plausible ($9/mo) with one prompt"
the escape hatch

Don't feel like building it? These folks already made it free.

UmamiThe closest broad substitute: simple traffic analytics, events and goals with your data attached.38kaug 2026open sourcePlausible Community EditionPlausible without the hosted bill; you keep the core dashboard and inherit the Compose stack.28kaug 2026open sourceRybbitPlausible's core plus replay and funnels, in exchange for a busier dashboard.13kaug 2026open source

all 4 free alternatives to Plausible →· no votes, no pay-to-list · just what's real

the numbers

Plausible pricing

planmonthlyannual (per mo)what you get
community edition (self-hosted)$0/workspace$0/workspaceFree software with no vendor-set site or traffic cap; hosting/database/operations are user-supplied.
starter (up to 10k monthly pageviews/events)$9/workspace$7.50/workspace1 website, 3 years of data retention and up to 10,000 combined pageviews/custom events per month.
growth (up to 10k monthly pageviews/events)$14/workspace$11.67/workspace3 websites, 3 team members, 3 years of retention and up to 10,000 combined pageviews/custom events per month.
business (up to 10k monthly pageviews/events)$19/workspace$15.83/workspace10 websites, 10 team members, 5 years of retention, 600 Stats API requests/hour and up to 10,000 combined pageviews/custom events per month.
enterprisecustomCustom traffic; 10+ sites, 10+ team members, 600+ API requests/hour and 5+ years retention.

free tierno free hosted plan; 30-day no-card trial; Community Edition is free to self-host

billingmonthly + annual (2 months free); hosted price scales by combined pageviews and custom events across all sites

hidden costsTraffic brackets jump from 10,000 to 100,000 monthly events/pageviews. Separate Plausible teams are billed separately. After 2 consecutive over-limit months, Plausible asks for an upgrade and can lock dashboard access after a further week while collection continues; it does not publish an immediate per-event overage fee.

verified 2026-08-11 · source ↗

questions
Is Plausible free?

No free plan, just a 30-day trial; the open source version is free to self-host. Paid is Starter at $9/mo (checked 2026-08-07).

Vibecode Plausible

Yes. A competent AI coding agent (Claude Code, Codex, Cursor) can build a usable personal Plausible replacement in one session with the prompt on this page. It runs on your own machine or server with no subscription.

How much does Plausible cost?

Plausible costs about $9/month (Starter, checked 2026-08-07), which is $108 per year. That's what you save by replacing it with one prompt.

What do I lose by replacing Plausible?

Honestly: battle-tested bot filtering; fast queries at millions of pageviews; email reports, funnels, goal tracking; GDPR homework done for you. If any of those are load-bearing for you, keep paying.

Is there an open-source alternative to Plausible?

Yes: Umami (The closest broad substitute: simple traffic analytics, events and goals with your data attached.) Plausible Community Edition (Plausible without the hosted bill; you keep the core dashboard and inherit the Compose stack.) Rybbit (Plausible's core plus replay and funnels, in exchange for a busier dashboard.) All 4 curated free alternatives are at vibecodeit.com/plausible/alternatives. The prompt is for when you want it exactly your way.