_______ _ _ _______ _ _
| | | |______ |____/
| |_____| ______| | \_
Real-time PostgreSQL monitoring in your terminal.
A k9s-style terminal UI for observing and acting on live database activity. Not a database client — a tool for watching what your Postgres is actually doing, and stepping in when it misbehaves.
$ go install github.com/fraser-isbester/tusk/cmd/tusk@latest
$ tusk 'postgres://user:pass@localhost:5432/mydb'
What is Tusk?
Tusk connects to a live PostgreSQL instance and gives you auto-refreshing views of what's happening right now — queries, transactions, sessions, locks, tables, and indexes. On top of that, a CEL-based rules engine lets you define policies that evaluate against live state and can automatically terminate, cancel, or log offending activity.
Highlights
01Live views
Queries, transactions, sessions, locks, tables, and indexes — all refreshing every 2 seconds.
02Rules engine
Define policy rules in YAML using CEL expressions evaluated against live database state.
03Auto remediation
Automatically terminate, cancel, or
log on rule violations — with dry-run and read-only
safety.
04Violation tracking
Audit log of violations with a timestamped lifecycle: detected → action → cooldown → closed.
05Split-pane detail
Formatted SQL, transaction query history, and lock blocker/blocked shown side-by-side.
06Fast navigation
Tab through views, sort any column with Shift+letter, and filter
instantly with /.