pg-tables-to-jsonschema
JSON →A command-line utility and Node.js module to convert PostgreSQL table definitions into JSON Schema (Draft-04/07 compatible). Version 1.1.3 is the latest stable release, with active but infrequent updates. Uses pg-structure internally for schema introspection. Supports multiple PostgreSQL schemas, table inclusion/exclusion, custom base URLs, and config files. Less feature-rich than alternatives like 'db-to-jsonschema' but focused on simplicity and direct PostgreSQL integration. Written in TypeScript, ships type definitions.
Resources
packagepg-tables-to-jsonschema ↗
API endpoints
full doc /v1/registry/pg-tables-to-jsonschema