About this project
Gnat is distributed as a single Go binary that bundles its own dashboard assets, requiring no external dependencies or Docker containers. It supports SQLite as the default zero‑setup store, with optional Postgres or MySQL backends. Events are ingested via a simple HTTP POST to /api/event, protected by an API key, and the same key is used by the tracker script added to the tracked site. The dashboard, accessed at /dashboard, is protected by a separate password and provides real‑time pageviews, custom events, funnels, cohorts, retention curves, and automatically discovered navigation paths. Data can be exported as CSV, JSON, or raw SQL. An embedded MCP server lets AI agents query the analytics directly using its own token, independent of dashboard authentication. Configuration is done entirely through environment variables such as GNAT_DB_DRIVER, GNAT_API_KEY, GNAT_DASHBOARD_PASSWORD, GNAT_SITES, and GNAT_PUBLIC_URL. The project follows an AGPLv3 license and is intended for single‑site instances, with multi‑site management, SSO, audit logs, and managed hosting planned for future releases.
Comments
0 Rating appears after 10 ratings
Sign in to join the discussion.