Skip to content

Data format

All platforms share the same layout under your home directory, so daily files are portable between machines:

~/.local/share/keyount/YYYY-MM-DD.json (one per day)
~/.config/keyount/config.json (optional)
~/.local/share/keyount/PAUSED (exists while paused)

On Windows: C:\Users\<you>\.local\share\keyount\... and C:\Users\<you>\.config\keyount\config.json.

On Linux/macOS the data directory is 0700 and files are 0600 — only your user can read them.

{
"date": "2026-11-27",
"keys": 12345,
"words": 2104,
"chars": 9800,
"backspaces": 300,
"mouse_clicks": 812,
"active_seconds": 5640,
"hourly_words": [0, 0, 0, 0, 0, 0, 0, 0, 120, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
"hourly_keys": [0, 0, 0, 0, 0, 0, 0, 0, 640, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
"best_burst_wpm": 48
}
Field Meaning
date Day the totals belong to (YYYY-MM-DD)
keys Total key presses counted
words Words (letters/digits followed by a boundary key)
chars Character keys (letters/digits)
backspaces Backspace presses
mouse_clicks Mouse button presses (only if track_mouse is on)
active_seconds Active typing time (event gaps up to 10s count as active)
hourly_words 24 buckets, words per hour of day
hourly_keys 24 buckets, keys per hour of day
best_burst_wpm Fastest sustained burst (gaps < 2.5s, ≥ 5s, ≥ 3 words)
heatmap Optional, opt-in only: per-key press counts, e.g. {"KEY_E": 412} — never the sequence

Old v1/v2 files without the newer fields still load fine (missing fields default to 0).

~/.config/keyount/config.json (optional; the counter reloads it automatically, and wordcount goal edits it for you):

{"daily_goal_words": 3000, "track_mouse": true, "track_heatmap": false}
Key Default Meaning
daily_goal_words 0 (none) Daily word goal; progress shown in CLI + widgets
track_mouse true Count mouse button presses
track_heatmap false Store per-key press counts (opt-in; see Privacy)
Terminal window
wordcount export csv > my-typing.csv
wordcount export json > my-typing.json
wordcount history-json # last 31 days as a JSON array (widget charts)

Because the format is plain JSON with the same fields everywhere, you can copy day files between your Linux, Windows and macOS machines and the CLI/widgets will read them as-is.