pgtui

JSON →
library 1.7.0 ·javascript
verified Jun 5, 2026

pgtui is a CLI tool for viewing and dumping PostgreSQL schemas into a readable directory structure. It generates TypeScript model definitions and directory-based schema representations from a live PostgreSQL connection. The current stable version is 1.7.0, released on an irregular cadence. It differentiates itself from pg_dump by producing human-readable and navigable output, and by integrating with Docker for containerized environments. Useful for documentation, migration reviews, and type generation.