{"id":27219970,"url":"https://github.com/feathers-studio/pg-extract","last_synced_at":"2026-05-07T18:35:51.161Z","repository":{"id":284099805,"uuid":"953819052","full_name":"feathers-studio/pg-extract","owner":"feathers-studio","description":"Extract schema from Postgres. A more complete fork of https://github.com/kristiandupont/extract-pg-schema.","archived":false,"fork":false,"pushed_at":"2025-04-18T15:18:36.000Z","size":9461,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-19T04:43:42.254Z","etag":null,"topics":["database","postgres","postgresql","schema","types"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"kristiandupont/extract-pg-schema","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/feathers-studio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-03-24T06:03:35.000Z","updated_at":"2025-04-18T15:18:40.000Z","dependencies_parsed_at":"2025-04-10T06:50:26.612Z","dependency_job_id":"b2181837-5eb4-4c20-b8a9-5c69d2ac413c","html_url":"https://github.com/feathers-studio/pg-extract","commit_stats":null,"previous_names":["feathers-studio/pg-extract"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/feathers-studio/pg-extract","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feathers-studio%2Fpg-extract","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feathers-studio%2Fpg-extract/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feathers-studio%2Fpg-extract/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feathers-studio%2Fpg-extract/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/feathers-studio","download_url":"https://codeload.github.com/feathers-studio/pg-extract/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feathers-studio%2Fpg-extract/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32750923,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["database","postgres","postgresql","schema","types"],"created_at":"2025-04-10T06:50:18.740Z","updated_at":"2026-05-07T18:35:51.150Z","avatar_url":"https://github.com/feathers-studio.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e [!WARNING]\n\u003e The relevant parts of this repo were rolled into https://github.com/feathers-studio/true-pg, which was the primary purpose of this project.\n\u003e \n\u003e This project is no longer maintained.\n\n# Extract Schema from Postgres Database\n\nReads various metadata from your postgres database and return a Javascript object.\nThis package was originally forked from [extract-pg-schema](https://github.com/kristiandupont/extract-pg-schema) by [Kristian Dupont](https://github.com/kristiandupont) to extend its utility and to generate perfect types. It's now a standalone package.\n\n\u003e Note: This package is a work in progress and may have missing features or broken modules.\n\u003e However, it's already being used to generate types by [TruePG](https://github.com/feathers-studio/true-pg).\n\u003e You should probably use that instead.\n\n## Installation\n\nChoose your package manager:\n\n```bash\nbun add pg-extract\n```\n\n```bash\nnpm i pg-extract\n```\n\n```bash\npnpm add pg-extract\n```\n\n## Library Usage\n\nYou give it a [postgres connection config object](https://node-postgres.com/apis/client) and some options and it will connect to your database and generate an object with the schema.\n\n```javascript\nimport { Extractor } from \"pg-extract\";\n\nconst extractor = new Extractor({\n\thost: \"localhost\",\n\tdatabase: \"postgres\",\n\tuser: \"postgres\",\n\tpassword: \"postgres\",\n});\n\nconst result = await extractor.extractSchemas();\n\nconsole.log(result);\n```\n\n---\n\n## Contributors\n\nWe're grateful to [Kristian Dupont](https://github.com/kristiandupont) and the other contributors to the [extract-pg-schema](https://github.com/kristiandupont/extract-pg-schema) project for the package we are building on top of.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeathers-studio%2Fpg-extract","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffeathers-studio%2Fpg-extract","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeathers-studio%2Fpg-extract/lists"}