Wakapi is a self-hosted backend for coding statistics that provides a WakaTime-compatible alternative.
The tool solves the problem of tracking coding activity without relying on a third-party service by offering a self-hosted option that collects statistics on projects, languages, editors, hosts, and operating systems. It works by accepting data from client-side tooling and exposing that information through a REST API, while maintaining partial compatibility with the WakaTime protocol so existing clients can be redirected to a self-hosted instance.
Wakapi suits developers who want to own their coding statistics data and prefer not to depend on external services. It works well for individuals or teams running their own infrastructure, particularly those already comfortable with Docker or Kubernetes deployment. The tool can be deployed as a standalone binary, via Docker, Docker Compose, or Kubernetes using the community Helm chart. It supports multiple database backends including SQLite, MySQL, and Postgres. The project includes features like weekly email reports, Prometheus metric exports, and badge generation. For those wanting a hosted option without self-hosting, a free cloud service is available at wakapi.dev.
The maintainers have temporarily paused accepting pull requests due to limited available time. The codebase is written in Go and emphasizes performance and minimalism in its design.