introspect-it
JSON →introspect-it is a CLI and library for converting PostgreSQL database schemas into TypeScript type definitions. Current stable version is 3.0.0. It focuses on simplicity and zero-configuration: given a Postgres connection string, it automatically infers tables and columns, generating TypeScript types with proper nullability and date handling. Inline enums are supported, but namespaces are not. It is inspired by schemats but simpler and Postgres-only. The library exports `inferSchema` and `inferTable` functions for programmatic use. Releases are infrequent but stable. Compared to alternatives like schemats or pg-to-ts, it requires no configuration files and produces concise output.
Resources
packageintrospect-it ↗