
Wakapi
Minimalist, self-hosted WakaTime-compatible backend that tracks coding time by project, language, editor and OS.
Open source alternative to:
Wakapi is a minimalist backend for coding statistics, written in Go and distributed as a single binary or a Docker image. It reimplements the parts of WakaTime most developers actually use: heartbeat collection from your editor, per-project and per-language summaries, editor and operating-system breakdowns, weekly e-mail reports, badges and a public leaderboard. Because it speaks the WakaTime API (under /api/compat/wakatime/v1), it works with the existing WakaTime plugins for VS Code, JetBrains IDEs, Vim, Emacs and dozens of other editors instead of requiring new tooling.
Self-hosting is the point. Everything runs against SQLite by default, with MySQL, MariaDB and Postgres supported through GORM, and a docker run with a password salt is enough to get started on port 3000. Authentication covers local accounts, API keys, optional WebAuthn security keys, OpenID Connect single sign-on and trusted reverse-proxy headers, so a small team can share one instance. Multi-user support, invite codes and a configurable leaderboard make it usable for a whole team rather than just a personal server.
Wakapi is WakaTime-compatible rather than a clone. It can import historic data from WakaTime or from another Wakapi instance, and it can relay incoming heartbeats to WakaTime so both services stay in sync. It also exposes a REST API with Swagger documentation, Prometheus metrics at /api/metrics, integrations with GitHub Readme Stats and lowlighter/metrics, and a script for exporting raw heartbeats as CSV. The trade-off is deliberate: Wakapi lacks WakaTime's embeddable charts, personal goals and organisation features, in exchange for a small footprint and full data ownership.
Categories:
Frequently Asked Questions
Which editors and IDEs does Wakapi work with?
Wakapi does not ship its own editor plugins. It implements the WakaTime API under /api/compat/wakatime/v1, so you point the official WakaTime plugin for your editor at your Wakapi server by setting api_url and api_key in ~/.wakatime.cfg. Any editor with a WakaTime plugin works, including VS Code, JetBrains IDEs, Vim, Emacs and Sublime Text. The WakaTime browser extension can also be pointed at a Wakapi instance to track browsing as files.
Can I import my existing WakaTime history into Wakapi?
Yes. Wakapi can import historic data from WakaTime or from another Wakapi instance through the Integrations section of the settings page. Imports run in batches, defaulting to 50 heartbeats per batch, and are rate limited: a 5 minute cooldown between attempts and at least 24 hours between successful imports. Hostnames allowed for import can be restricted with the import hosts whitelist setting.
Does Wakapi have a REST API and Prometheus metrics?
Yes. Wakapi exposes a REST API documented with Swagger at /swagger-ui, authenticated with your API key either as a Basic auth header or an api_key query parameter. Prometheus metrics are available at /api/metrics when the instance is started with WAKAPI_EXPOSE_METRICS=true, and a community Grafana dashboard exists for visualizing them.
What authentication options does Wakapi support?
Local username and password accounts, API keys for the /api routes, WebAuthn security keys (disabled by default via security.disable_webauthn), OpenID Connect single sign-on with multiple providers, and trusted header authentication for reverse proxies. Local login can be disabled entirely to force OIDC-only access, and signups can be closed or limited to invite codes.
What are the system requirements for self-hosting Wakapi?
Wakapi is a single Go binary that listens on port 3000 by default. SQLite is the default database and needs no separate service; MySQL 8, MariaDB 11.4 and Postgres are also supported. The official image is published as ghcr.io/muety/wakapi, and a community Helm chart exists for Kubernetes. Running it behind a reverse proxy such as Caddy or nginx is recommended so you can serve it over HTTPS.
How do I export my data out of Wakapi?
There is no export button in the web interface. Raw heartbeats can be downloaded as CSV with the Python script scripts/download_heartbeats.py from the repository, passing your API key and optionally a URL, date range and output path. Data retention can also be capped with app.data_retention_months if you want old heartbeats cleaned up automatically.
Looking for contributors
This project is actively seeking help, join the community!
OpenAltFinder Score
Project Details
Repository details
Sponsor Wakapi
Get the latest open source alternatives delivered weekly.
Discover tools that give you freedom from proprietary software.




Wakapi vs ActivityWatch