[verdict][prompt curatoriat][sursă: posthog.com][traducere: la coadă]
Pot să vibecodez PostHog?
// valoarea stă în rețea, în date sau în infrastructură
First-party collection and a dashboard that answers your top five questions is one sitting of work, and PostHog's free tier covers a million events a month before you pay anything. What the bill buys past that is the rest of the platform: session replay, feature flags, SQL over years of events, and ingestion that stays correct while your event schema drifts underneath it.
încredere: ridicată
ce e: Product analytics with session replay, feature flags, and a data warehouse
Indice de constructibilitate · joc editorial
- Preț la consum greutate: zero
- Timp build de consolare: o sesiune greutate: minus 1
- Categorie analytics nu cântărește
- Moat scara infrastructurii · costuri de migrare greutate: minus 3
- Încredere ridicată greutate: plus 1
- Ce pierzi 5 elemente greutate: minus 2
- Site posthog.com (si apre in una nuova scheda) nu cântărește
Nu e meci. Promptul de mai jos reconstruiește o bucată, nu produsul.
Gioco editoriale: il verdetto dice se un agente può, l’indice se conviene.
Ce construiești
Collect first-party pageviews and custom events from your own sites, keep the raw rows yourself, and answer a handful of product questions from a local dashboard.
ce îți trebuie
- Node 22
- a small always-on VPS
- a domain you control, for first-party collection
The charts are the easy part. A pipeline that never quietly stops collecting is the product, and that is the part you inherit when you self-host.
Promptul
Verdictul e NU CHIAR, iar promptul rămâne oricum: nu înlocuiește aplicația, reconstruiește partea care chiar e cod. Restul e moat-ul.
Build me a self-hosted web analytics box to replace PostHog. Requirements:
- One Node 22 + Express process with better-sqlite3, serving the collector and the
dashboard on port 8787. No frontend framework, no build step, no Docker.
- A tracker.js I paste on my sites: pageviews on load and history change, plus
window.track('signup', { plan: 'pro' }), POSTed to /e on my own domain so
collection stays first-party.
- One SQLite events table: site, event, path, referrer, UTM fields, country from the
proxy header, device class, and a JSON properties blob.
- Count visitors by a daily-rotating salted hash of IP plus user agent, salt in .env.
No cookie, never the raw IP. That is the whole privacy design, keep it.
- Dashboard at / with a date range picker: visitors and pageviews by day, top pages,
referrers, countries, any event split by one property, and a three-step funnel.
- Nightly rollup into a daily-summary table, raw events pruned past the retention
window in .env, /export.csv for the raw rows.
- Basic auth on the dashboard, collector open. No accounts, no telemetry, my box
holds the only copy.
- Out of scope: session replay, feature flags, and stitching one person across
devices. Do not build a plugin system or a warehouse connector.
- README: the snippet to paste, where the SQLite file lives, and how to back it up. Prompt curatoriat: scris și revizuit manual pentru această aplicație. În engleză intenționat — e limba în care agenții de coding se descurcă cel mai bine.
Ce pierzi
- session replay
- feature flags and experiments
- identity stitching across devices
- SQL over years of events
- ingestion that stays up without you watching it
De ce se plătește în continuare
Teams pay because analytics has to keep collecting and stay trustworthy while the product changes underneath it. The bill buys bot filtering, identity resolution, late-arriving data, retention, query cost, and someone else getting paged when ingestion stops. The charts are the cheap part.
moat: Scara infrastructurii Costuri de migrare ce e un moat
data pipeline reliability and analytical depth
Cine l-a construit deja
Să pornești de aici e tot vibecoding: promptul e pentru când o vrei exact în felul tău.
- Umami (se deschide într-o filă nouă) — Popular open-source privacy-focused web analytics platform.
Ești de acord?
Balanța voturilor
Ancora nessun voto: il tuo è il primo.
Nessun voto ancora — il primo pesa.