routine-tui
Ratatui client for routine-server.
nix run .#routine-tui
Configuration:
ROUTINE_API_URLdefaults tohttp://127.0.0.1:8090.ROUTINE_API_TOKENis sent as a bearer token when set.ROUTINE_AGE_IDENTITY_FILEpoints to the local age identity used for decryption. The identity is never sent to the server.ROUTINE_AGE_IDENTITY_COMMANDis an alternative command that prints the age identity to stdout. It runs once before the TUI starts, so password prompts use the normal terminal. Its output is stored in a temporary0600file and removed when the client exits.
Generate an identity and configure the client:
age-keygen -o ~/.config/routine/identity.txt
age-keygen -y ~/.config/routine/identity.txt # paste this age1... value in Devices
export ROUTINE_AGE_IDENTITY_FILE="$HOME/.config/routine/identity.txt"
Alternatively, load the identity from a password manager:
export ROUTINE_AGE_IDENTITY_COMMAND='pass show routine/age-identity'
Set only one identity source. The command must print the identity itself, not a path, and must send prompts or diagnostics to the terminal rather than stdout.
Every task and routine has a required public title used by Telegram. When a private title decrypts successfully, the TUI displays it instead. If no private title exists—or the identity is unavailable—the TUI displays the public title. Notes are always inside the encrypted JSON.
Register each device in the Devices view before creating private content. The client fetches all active public recipients and encrypts one age payload that each registered device can decrypt. Revoking a device excludes it from future payloads but does not re-encrypt existing tasks and routines.
Because the production server is loopback-only, either run the TUI on
hectic-lab or open a local tunnel first:
ssh -N -L 8090:127.0.0.1:8090 hectic-lab
Keys:
Tab: switch between tasks, routines, the archive, and encryption devices.h/l: previous/next day;t: today.j/k: move selection;r: refresh;q: quit.a: add a task or routine;Ctrl+S: save a form;Esc: cancel.- On Tasks,
eedits all task fields,Spacecompletes,sreschedules, andxarchives after confirmation. - On Archive,
urestores to the original day and section;xpermanently deletes after confirmation. - On Devices,
aregisters a public age recipient andxrevokes it after confirmation. Private identities remain local and must never be entered here.
Weekly routine days use ISO numbers (1 Monday through 7 Sunday). Monthly
days use 1 through 31; days beyond the end of a short month clamp to its
last day.
On today's Tasks screen, pending tasks from earlier dates appear first as
Overdue, with their original scheduled date. Completing, rescheduling,
editing, and archiving work the same way as for today's tasks.