Back to services

Wakapi

Tracking tool for coding statistics, compatible with WakaTime.

View alternatives to Wakapi
Suggest edit
Open source
Self-hostable
GPL-3.0
Recent reviews

Alternatives

Tech stack

No tech stack added yet. Sign in to suggest some

Introduction

Wakapi is a free, open-source coding time tracker. It records how long you code by project, programming language, editor, host, operating system and more, and generates statistics charts. It is an open-source alternative to WakaTime and collects data directly with WakaTime's open-source client plugins. The project is written in Go and released under the MIT license. Its author, Ferdinand Mütsch, also runs a free hosted instance at wakapi.dev.

Key Features

  • Multi-dimensional statistics: Aggregates coding time by project, language, editor, host and operating system, and generates charts
  • Public leaderboard: Compare your coding time with other developers on the leaderboard
  • README badges: Generate coding time badges that can be embedded in pages such as a GitHub README
  • Weekly email reports: Get a weekly summary of your coding activity by email
  • REST API: Provides a simple, easy-to-use REST API that is partially compatible with the WakaTime API
  • WakaTime integration: Use WakaTime and Wakapi side by side, or forward heartbeat data to WakaTime through the relay feature
  • Prometheus metrics export: Easy to plug into existing monitoring systems
  • GDPR compliant and fast

Target Users and Use Cases

  • Developers who want to understand their coding habits and enjoy looking at statistics
  • Individuals or teams who want to replace WakaTime and keep control of their own data
  • Developers who want to show their coding time on a personal homepage or in open-source projects
  • Users who want to feed coding time data into monitoring systems such as Prometheus/Grafana

Deployment Options

There are several ways to use Wakapi. Whichever you choose, you will need to configure the client separately.

  1. Use the official cloud service: Sign up for an account at wakapi.dev and start using it.
  2. Run a release with one command: curl -L https://wakapi.dev/get | bash
  3. Docker:
docker volume create wakapi-data
SALT="$(cat /dev/urandom | LC_ALL=C tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)"
docker run -d --init -p 3000:3000 \
  -e "WAKAPI_PASSWORD_SALT=$SALT" \
  -v wakapi-data:/data \
  --name wakapi --restart unless-stopped \
  ghcr.io/muety/wakapi:latest

You can also deploy with Docker Compose, which supports managing sensitive variables with Docker Secrets. On Kubernetes, you can use the community-provided Helm chart. 4. Build from source: Run go install github.com/muety/wakapi@latest, then download the default configuration file config.default.yml, modify it, and run ./wakapi -config wakapi.yml. When running it standalone, it is recommended to configure it as a systemd service.

Client Setup

  1. Following the official WakaTime plugin guide, install the WakaTime plugin for your IDE or editor.
  2. Edit ~/.wakatime.cfg, set api_url to the address of your Wakapi server (for example http://localhost:3000/api, or https://wakapi.dev/api if you use the cloud service), and set api_key to the API key you get from the Wakapi web interface.

Technical Requirements

  • The backend is written in Go and uses SQLite by default; MySQL and PostgreSQL are also supported
  • Can be configured through a configuration file or environment variables
  • Can be deployed via Docker, a binary, or from source

Notable Points

  • Fully open source (MIT), self-hostable, and you stay in control of your data
  • Compatible with the WakaTime ecosystem, so you can use the many existing editor plugins as they are
  • The official cloud instance has recorded hundreds of thousands of hours of coding time and has thousands of users
  • The maintainer has limited time and is currently not accepting pull requests