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.
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.
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.
GET /api/events — List all events. Supports ?q=keyword for search and ?status=value for filteringPOST /api/events — Create a new event. Send JSON with at least nameGET /api/events/{id} — Fetch one event by IDPUT /api/events/{id} — Update fields on an existing eventDELETE /api/events/{id} — Remove a eventGET /api/stats — Returns total count and breakdown by statusGET /api/health — Returns {"status":"ok"} for uptime monitoringSelf-hosted user analytics. Self-hosted on your infrastructure. Your data never leaves your server.
curl -fsSL https://stockyard.dev/install.sh | sh -s -- --tool headcount
PORT=8690 ./headcount
http://localhost:8690
Single binary. Embedded SQLite. No Docker. No database. No dependencies.
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.