tblr

May 16, 2026 · View on GitHub

A command-line and interactive tabular-data tool built on the zeichenwerk TUI framework. Reads, converts, pretty-prints, and edits tables in CSV/TSV, Markdown, AsciiDoc, HTML, and Typst — plus ANSI-styled terminal rendering for piping into pagers, scripts, or notebooks.

Install

go install github.com/tekugo/tblr@latest

Headless (pipe / convert / pretty-print)

# convert CSV to Markdown
tblr --from csv --to md employees.csv

# pretty-print a Markdown table in place
tblr --format md -w employees.md

# render ANSI-styled table to stdout
cat employees.csv | tblr --ansi --ansi-theme dark

# pipe through
psql -At -F, -c 'select * from users' | tblr --from csv --ansi

Supported formats: csv, tsv, md, adoc, html, typ.

Interactive (TUI)

tblr employees.csv

Navigate with arrow keys; edit cells with Enter; F2 toggles formats; Ctrl-S saves; Ctrl-Z/Ctrl-Y undo/redo. Themes via -t (midnight, tokyo, nord, gruvbox-dark, gruvbox-light, lipstick).

Status

Early — extracted from cmd/tblr in the zeichenwerk monorepo as a standalone tool. API and shape may change without notice.

License

MIT — same as the upstream zeichenwerk library.