Notch
A fast, beautiful terminal UI for tracking time — built with Bubble Tea, Lip Gloss, and a pure-Go SQLite backend.
Track time entries, manage clients and projects, set billing rates, mark work as invoiced/paid, and generate income reports — all without leaving your terminal.
Features
- Timer tracking — start/stop timers on tasks, see the live elapsed time in the bottom status bar
- Clients & Projects — full CRUD, clients on their own tab with project management next door
- Billing rates — set an hourly rate per client; earnings calculated automatically
- Invoice & payment tracking — mark entries as invoiced and/or paid
- Reports — aggregated hours, earnings, invoice status by project/client with quick date presets
- Pure Go — no CGo, no C compiler needed; cross-compiles trivially
- Single binary — one file, zero runtime dependencies
Installation
curl -fsSL https://raw.githubusercontent.com/aliasproject/notch/main/install.sh | sh
Downloads the latest release for your OS/arch and installs it to /usr/local/bin (or ~/.local/bin if that isn't writable).
From source
git clone https://github.com/aliasproject/notch
cd notch
go build -o notch .
sudo mv notch /usr/local/bin/
Requirements
Updating
notch -v # print the installed version
notch version --json # version, commit, date, Go version, and build source
notch upgrade --check # see whether a newer release exists
notch upgrade # download and install it in place
upgrade fetches the latest GitHub release for your OS/arch, verifies it against the release's checksums.txt, and swaps the running binary for it. If notch lives somewhere you can't write to (e.g. /usr/local/bin), run sudo notch upgrade. A binary built from source reports dev and is left alone unless you pass --force. notch update still works as an alias.
Usage
notch
The database is stored at ~/.local/share/notch/notch.db by default.
Override with the NOTCH_DB environment variable:
NOTCH_DB=/path/to/custom.db notch
Status output
notch status prints the currently-running timer (or nothing, if idle) to stdout and exits — no daemon required, it just reads the same database the TUI uses (respecting NOTCH_DB), so it works whether or not the TUI is currently open. Useful for piping into a shell prompt, status bar, or any script that wants to know what's running right now.
notch status # plain text
notch status -json # JSON
Plain text looks like ⏱ Build feature · 1:23:45 when a timer is running, and is empty when idle.
Scripting
Beyond status, notch has a few more one-shot subcommands for driving it from scripts or a status-bar plugin without opening the TUI. Like status, none of them start a daemon — they just open the database, do one thing, and exit.
notch clients # list all clients, one per line: "<id>\t<name>"
notch clients -json # same, as JSON: [{"id":1,"name":"Acme"}, ...]
notch projects # list all projects, one per line: "<id>\t<client> › <project>\t<total>"
notch projects -json # same, as JSON: [{"id":1,"name":"Website","clientId":1,"clientName":"Acme","totalSeconds":123}, ...]
notch tasks # list recently-used (project, task) pairings, most recent first
notch tasks -json # same, as JSON: [{"projectId":1,"projectName":"Website","clientName":"Acme","task":"Meeting","totalSeconds":123,"entryCount":4,"invoicedCount":1,"paidCount":0}, ...]
notch entries --project <id> --task "Meeting" [-json] [--limit 20] # one task's sessions, newest first, with invoiced/paid
notch summary # time tracked today and this week (Monday start): "today\t<total>\nweek\t<total>"
notch summary -json # same, as JSON: {"todaySeconds":5400,"weekSeconds":28800}
notch start --project <id> [--task "description"] [--notes "notes"] # stop whatever's running, start a new timer
notch stop # stop whatever's running (no-op if idle)
notch edit [--id <n>] [--task "t"] [--client-name c] [--project-name p] [--notes "n"] [--start t] [--end t] # one entry (default: the running one)
notch edit --from-project <id> --from-task "t" [--task "new"] [--client-name c] [--project-name p] # every entry of one task
notch delete # discard the running entry
notch delete --id <n> # delete one entry
notch delete --project <id> --task "t" # delete every entry of one task, the running one included
summary counts finished entries only, clipped to local day and week boundaries, so a status bar can add the running entry's elapsed time itself and tick locally (clipping it to local midnight and to Monday if it started before them). edit --start/--end take RFC3339 or local YYYY-MM-DD HH:MM, with the same rules as the TUI's edit form (the end can't be before the start), and neither can be in the future; --notes "" clears notes. A whole-task edit renames and/or moves the task, merging it into an existing one if the result matches. delete doesn't prompt: callers confirm first. Edits and deletes that match nothing exit non-zero.
start always stops any currently-running entry first, the same as the TUI does — only one timer runs at a time. --notes is CLI-only: the TUI's own new-timer form has a Notes field, but doesn't actually persist it for a brand-new entry (only when editing an existing one) — start --notes does persist it, via an update right after the entry is created.
One exception to the "one-shot, exits immediately" rule above: notch watch runs until killed, printing a line to stdout each time another process writes to the database. It exists for a consumer with no way to hold its own SQLite connection open and check for changes cheaply (e.g. a status-bar widget) — see internal/db/watch.go's doc comment for why a bare filesystem watch on the WAL files can't tell a real write apart from another process just reading, and self-triggers if you try.
Theming
Notch's colors can be overridden by a config file.
Create theme.conf in your config directory — $XDG_CONFIG_HOME/notch/theme.conf, or ~/.config/notch/theme.conf if XDG_CONFIG_HOME isn't set:
# theme.conf — any line omitted keeps the built-in default
primary = #91B0DE
accent = #9DC6E9
success = #99C2ED
warning = #A4CBF7
danger = #C79EA9
text = #C2D9E9
dim = #B7D2E5
subtle = #899EAC
bg = #0D171F
bg_alt = #252E35
border = #5F6468
highlight = #AFCFFF
- Colors must be 6-digit hex (
#RRGGBB). Unknown keys and invalid values are ignored; anything you don't set falls back to the default shown above.
- Lines starting with
# are comments; blank lines are ignored.
- Changes are picked up automatically while Notch is running — no restart needed. Deleting the file reverts to the built-in default.
Getting Started
- Press 3 to go to the Clients tab → press n to create a client and set a billing rate
- Press 2 to go to the Projects tab → press n to create a project, selecting its client from the dropdown
- Press 1 to go to the Timers tab → press n to start a new timer
- Press space to stop/restart a timer
- Press 4 to view Reports
Keybindings
Global
| Key |
Action |
1 |
Switch to Timers tab |
2 |
Switch to Projects tab |
3 |
Switch to Clients tab |
4 |
Switch to Reports tab |
q / ctrl+c |
Quit |
Timers tab
| Key |
Action |
↑ / k |
Move cursor up |
↓ / j |
Move cursor down |
n |
New timer (opens form, starts immediately on save) |
e |
Edit selected entry |
d |
Delete selected entry (prompts confirmation) |
space |
Start / stop selected entry's timer |
i |
Toggle invoiced status |
p |
Toggle paid status (entry must be invoiced first) |
esc |
Cancel / back |
| Key |
Action |
tab / shift+tab |
Move between fields |
↑ / ↓ |
Cycle through projects (when Project field is focused) |
enter |
Confirm field / save form |
esc |
Cancel |
Projects tab
| Key |
Action |
↑ / k |
Move cursor up |
↓ / j |
Move cursor down |
n |
New project (pick a client from the dropdown) |
e |
Edit selected project (rename / change client) |
d |
Delete selected project (prompts confirmation) |
esc |
Cancel form |
Clients are created and managed on the Clients tab (press 3).
Clients tab
| Key |
Action |
↑ / k |
Move cursor up |
↓ / j |
Move cursor down |
n |
New client |
e |
Edit selected client (name + hourly rate) |
d |
Delete selected client (cascades to projects and entries) |
tab / shift+tab |
Move between form fields |
enter |
Save |
esc |
Cancel |
Reports tab
| Key |
Action |
↑ / k |
Move cursor up |
↓ / j |
Move cursor down |
f |
Open date filter |
t |
Quick filter: Today |
w |
Quick filter: This week |
m |
Quick filter: This month |
y |
Quick filter: This year |
a |
Show all time |
Reports date filter
| Key |
Action |
tab / shift+tab |
Switch between From / To fields |
enter |
Apply filter |
esc |
Cancel |
Data
| Entity |
Fields |
| Client |
Name, Hourly Rate ($/hr) |
| Project |
Name, Client |
| Entry |
Task, Project, Start time, End time, Notes, Invoiced, Paid |
Deleting a client cascades to all its projects and time entries.
Deleting a project cascades to all its time entries.
Reports
The Reports tab groups all time entries by Client → Project and shows:
- Hours — total tracked hours
- Entries — number of time entries
- Invoiced — how many entries are marked invoiced
- Paid — how many entries are marked paid
- Earned — hours × client hourly rate
Summary cards at the bottom show totals for the selected period:
- Total Hours
- Total Earned
- Outstanding (earned but not fully paid)
- Uninvoiced entries count
Project Structure
notch/
├── main.go # Entrypoint, DB init, program launch, `status` subcommand
└── internal/
├── model/
│ └── model.go # Domain types: Client, Project, Entry, ReportRow
├── db/
│ └── db.go # SQLite persistence (modernc.org/sqlite, pure Go)
├── theme/
│ └── theme.go # Color palette, theme.conf loading, live reload
├── status/
│ └── status.go # `notch status` output formatting (text/JSON)
└── ui/
├── app.go # Root Bubble Tea model, tab router, header/footer
├── styles.go # Layout constants (content width, chrome rows)
└── views/
├── common.go # Shared types, messages, styles, key maps, helpers
├── timers.go # Timers tab — list, start/stop, edit, invoice/pay
├── projects.go # Projects tab — flat project list w/ client picker
├── clients.go # Clients tab — client CRUD with billing rate
└── reports.go # Reports tab — date-filtered summary + cards
Dependencies
| Package |
Purpose |
github.com/charmbracelet/bubbletea |
TUI framework (Elm architecture) |
github.com/charmbracelet/bubbles |
Ready-made components (textinput, etc.) |
github.com/charmbracelet/lipgloss |
Terminal styling and layout |
modernc.org/sqlite |
Pure-Go SQLite (no CGo) |
License
MIT
Releasing
Every push and pull request runs the ci workflow: gofmt -l, go vet, and go test. Releases are cut by pushing a version tag. The release GitHub Actions workflow runs GoReleaser, which builds linux/darwin/windows × amd64/arm64 binaries, stamps the version into notch -v, and publishes the archives, checksums.txt, and a changelog to a GitHub release. install.sh and notch upgrade both pull from those assets.
git tag v0.8.0
git push origin v0.8.0