Focused Tool · Apache 2.0 · Single Binary · Operations

Self-hosted user analytics

Track signups, logins, active users, and funnels. No cookie banners, no GDPR nightmares — your data stays on your server. Mixpanel for teams who can't send user behavior to a SaaS.

Install Headcount Free Complete — all 150 tools $29/mo
What Headcount replaces

Teams outgrow spreadsheet-based events tracking around the same time they realize SaaS alternatives want $15 to $50 per seat per month. Headcount is a single binary that handles the same job without the recurring bill or the vendor dependency.

Architecture

On first launch, Headcount initializes a WAL-mode SQLite database and starts an HTTP server. The web dashboard and API share the same port. Track page views with a lightweight script tag or send custom events via the API. The dashboard shows visitors, page views, referrers, funnels, and retention cohorts. No cookies required, no GDPR banner needed.

Add the tracking snippet to your site. Headcount captures page views, unique visitors, and referral sources without sending any data to third parties. Build funnels to see where users drop off. Track retention to see who comes back. Export CSV reports when you need numbers for a board deck or investor update.

Endpoints

Mixpanel at $20/mo.

Self-hosted user analytics. Self-hosted on your infrastructure. Your data never leaves your server.

Quickstart

Running in under a minute.

Download
curl -fsSL https://stockyard.dev/install.sh | sh -s -- --tool headcount
Run
PORT=8690 ./headcount
Open
http://localhost:8690

Single binary. Embedded SQLite. No Docker. No database. No dependencies.

Pricing

Free to start. Pro when you need it.

Free
$0
forever
  • 10,000 events/mo
  • Single binary, embedded SQLite
  • Apache 2.0 — modify freely
Pro
$1.99
per month
  • Unlimited events, funnels, retention, cohort analysis, CSV export
  • License key, no cloud dependency
  • Email support

License key by email. One env var.

Your license key arrives by email within 5 minutes of checkout. Set it as an environment variable and restart the binary.

export HEADCOUNT_LICENSE_KEY=stockyard_xxxxxxxxxxxxxxxxxxxx
./headcount

No cloud connectivity required. The binary validates the key offline with Ed25519 signatures.

Part of the Stockyard family — 150 focused self-hosted tools · Complete bundle $29/mo · stockyard.dev