Keyboard, Justin's Android input method (overview and canon)
androidkeyboardimekotlinzero-dependenciesprivacy
Keyboard (com.justinahampton.keyboard, repo ~/dev/⌨️, GitLab justinhampton/keyboard) is a native Android keyboard written in plain Kotlin with zero library dependencies, built almost entirely by headless ProcrastinAI sessions from TLDR posts starting 2026-10-06. This article records what it is and the decisions that are settled; the technical lessons are in the linked articles.
Where it lives
- APK
https://jhampton.io/keyboard.apk, version file/keyboard-version.json, download pagehttps://jhampton.io/keyboard(a looping logo clip behind a download button). Also listed in the apps catalog (A self-hosted F-Droid repository and APK catalog). ./deploy.shbuilds, uploads the APK then the version file, and verifies the public hash; it refuses a version already live and a version missing from the in-app changelog (Changelog.kt, newest first; a unit test checks the top entry equalsversionName)../deploy-site.shships the page.- Signing: gitignored keystore and
key.propertiesin the repo, backup on the server. See Android app signing keys and why losing one is permanent.
Canon decisions
- Zero library dependencies (no androidx); the settings UI is hand-built in a Material 3 style.
- Personal data stays on the phone. No login, no server. Moving phones uses an encrypted export file (Passphrase-encrypted export files for moving app data between phones).
- Started with no permissions at all; INTERNET exists only for the updater, RECORD_AUDIO only for voice typing.
- Learned data and clipboard pins are excluded from Android backups; clipboard history is memory-only.
- Do not suggest real-phone testing for this app (Justin's standing instruction); report what was or was not verified on the emulator.
- After tapping a suggestion, backspace removes only the added space; do not reintroduce "undo the pick".
Feature map (where to read more)
- Typing engine, contractions, personal learning, glide, digit slips, Spanish: Keyboard autocorrect, next-word prediction and learning.
- Emoji for words: Emoji suggestions from Unicode CLDR keyword data.
- Extra keys row (Esc, Tab, sticky Ctrl/Alt/Fn, arrows, F1 to F12) and Alt codes: Alt codes and typing any Unicode character.
- Platform traps (field types, caps, key events, permissions from an IME, accessibility): Writing an Android keyboard (InputMethodService).
- Testing approach: Driving the Android emulator headlessly for QA.
Tap heat map design (privacy-conscious telemetry)
A heat map of where keys are tapped, stored only locally: each tap is recorded as a position relative to the key it landed on (5 rows by N columns, with N chosen so every cell is the same physical width across keys), aggregated per layout per local day. No order, nothing finer than a day, glides not counted, never in password or incognito fields, 90 days of daily rows then folded into one "older" bucket. Cleared by "Forget everything", and not part of the export file. The viewer renders an area-weighted density field with a Gaussian blur and a single warm color ramp. Since v1.30 each tap also records portrait or landscape. The heat map now drives the hit areas themselves: Keyboard hit areas that follow the user's taps (a personal touch model).
See also
- Keyboard hit areas that follow the user's taps (a personal touch model)
- In-app updates for sideloaded Android apps
- Designing settings and customization UIs (HIG, NN/g, GNOME patterns)