Skip to content

hakatime

Self-hosted Wakatime-compatible server with a dashboard for coding time

Public domain · Unlicense

Listed by , founder & editor

18

Health

Dormant

Overview

Stars

688

Last commit

3 years ago

Apr 2024

Repository age

6 years

since Feb 2020

Latest version

v1.7.3

Apr 2023

Contributors

–

Releases

0

last 12 months

Docker pulls

496k

mujx/hakatime

Language

Haskell

Hakatime is a server that speaks the Wakatime API, with a dashboard on top. Your editor plugins send heartbeats to it, and you view the results in a browser. It is written in Haskell and stores data in PostgreSQL.

The dashboard shows global and per-project charts, breakdowns by project, language, day of week and hour, an activity timeline and time per file. You can group projects with tags such as work and personal, see time spent on GitHub commits with a token, and generate badges for hours spent. It also has user registration, API token management and leaderboards across the instance's users.

You can import existing Wakatime activity using an API token and a date range. Heartbeats can also be forwarded to another Wakatime-compatible server.

Deploy it with the docker-compose file from the repository. An ARM image is available. Point the api_url in your ~/.wakatime.cfg at your instance. It is released under the Unlicense. The last commit was in April 2024.

Who it's for

Developers who track coding time with Wakatime

You keep your existing editor plugins and move the data to your own server.

Skip if: You want a hosted service with no maintenance.

Small teams wanting internal leaderboards

Multiple users can register on one instance and compare on leaderboards.

Skip if: You want invoicing or project management features.

The problem it solves

Wakatime stores your coding activity on a third-party service. Hakatime lets you collect and view the same data on a server you control.

Strengths

  • Works with the standard Wakatime client configuration
  • Imports Wakatime history by API token and date range
  • Can forward heartbeats to another Wakatime-compatible server
  • Docker image with an ARM variant
  • Public-domain Unlicense

Trade-offs

  • No commits or releases since April 2024
  • Needs a PostgreSQL database alongside the server
  • Registration is open by default until you disable it

Self-host hakatime

Self-hostable
Yes
Docker image
mujx/hakatime
Docker Compose
The repository ships a Compose file

Quick start

$ docker-compose -f ./docker-compose-deploy.yml up

From the project's own install instructions. Check the docs for production settings.

Frequently asked questions

Is Hakatime free?

Yes. It is released under the Unlicense.

Can I import my Wakatime data?

Yes. Use an API token and a range of dates.

Does it run on ARM?

Yes. Use the latest-arm or versioned arm image, or build with Dockerfile.arm.

How do I connect my editor?

Generate an API token in the UI and set api_key and api_url in ~/.wakatime.cfg.

Similar tools in Time tracking software

solidtime

Time tracking software

Time tracker for freelancers and agencies, self-hosted or cloud, with Toggl and Clockify

9.1k 538 4 days ago Thriving AGPL-3.0

Replaces TogglClockify

TimeTracker

Time tracking software

Self-hosted time tracking with invoicing and Peppol e-invoicing for freelancers and teams

646 82 today Thriving GPL-3.0

Replaces ClockifyToggl

urlaubsverwaltung

Time tracking software

Self-hosted web app for vacation requests, sick notes and overtime in small and mid-size

305 98 yesterday Thriving Apache-2.0

Wakapi

Time tracking software

Self-hosted, WakaTime-compatible server for tracking your coding time

4.5k 317 8 days ago Thriving MIT

Titra

Time tracking software

Simple self-hosted time tracker for freelancers and small teams, built on Meteor and

497 69 7 days ago Thriving AGPL-3.0

TimeScribe

Time tracking software

Offline desktop time tracker for freelancers and remote workers on macOS and Windows

945 90 20 days ago Active GPL-3.0