ltree2viz
v0.1.9
Published
Visualize a Postgres ltree hierarchy as a Mermaid diagram or interactive HTML tree
Maintainers
Readme
ltree2viz
Visualize a PostgreSQL ltree
hierarchy as a Mermaid diagram or an interactive HTML
tree.
npx ltree2viz@latest --helpThis package is a thin JS shim. Installing it pulls in exactly one prebuilt
native binary for your platform via optionalDependencies — nothing is
downloaded or compiled at install time, so it works under --ignore-scripts,
behind proxies, and in cached npm ci runs.
Usage
Read ltree paths from stdin and render a flowchart:
printf 'a\na.b\na.b.c\n' | npx ltree2viz -Or read straight from a database:
npx ltree2viz --table my_tree --dsn "$DATABASE_URL"The diagram is written to stdout and all diagnostics to stderr, so piping stays clean:
npx ltree2viz - | pbcopySupported platforms
macOS (arm64, x64), Linux (x64, arm64; static musl builds run on Alpine and glibc distros alike), and Windows (x64).
Other install methods
See the project README for the shell
installer, cargo install, and Docker.
License
MIT OR Apache-2.0
