{"id":13510149,"url":"https://github.com/zekenie/d2-erd-from-postgres","last_synced_at":"2026-01-30T14:52:15.717Z","repository":{"id":63884321,"uuid":"571280895","full_name":"zekenie/d2-erd-from-postgres","owner":"zekenie","description":"Create a D2 ERD Diagram from your existing postgres schema","archived":false,"fork":false,"pushed_at":"2022-11-27T18:25:17.000Z","size":266,"stargazers_count":82,"open_issues_count":0,"forks_count":3,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-11-01T10:35:16.263Z","etag":null,"topics":["d2","erd","erdiagram","postgres","postgres-erd"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zekenie.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-11-27T18:23:57.000Z","updated_at":"2024-10-16T05:17:11.000Z","dependencies_parsed_at":"2022-11-28T10:54:18.948Z","dependency_job_id":null,"html_url":"https://github.com/zekenie/d2-erd-from-postgres","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zekenie%2Fd2-erd-from-postgres","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zekenie%2Fd2-erd-from-postgres/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zekenie%2Fd2-erd-from-postgres/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zekenie%2Fd2-erd-from-postgres/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zekenie","download_url":"https://codeload.github.com/zekenie/d2-erd-from-postgres/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246338660,"owners_count":20761415,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["d2","erd","erdiagram","postgres","postgres-erd"],"created_at":"2024-08-01T02:01:26.209Z","updated_at":"2026-01-30T14:52:15.711Z","avatar_url":"https://github.com/zekenie.png","language":"JavaScript","readme":"## [D2](https://github.com/terrastruct/d2#related) ERD from Postgres\n\n![Example](/./example.png)\n\n[D2](https://github.com/terrastruct/d2) Diagrams are awesome. If you have a postgres database that already exists that you'd like to diagram, you can use this tool to generate an ERD.\n\n## Installation\n\n- Clone this repo\n- `npm install`\n\n## Usage\n\n```sh\n$ node index postgres://postgres:postgres@localhost:5432/yourdb\n```\n\nYou will see that there are 2 gitignored files generated, `out.svg` and `output.d2`.\n\nHappy hacking!\n","funding_links":[],"categories":["JavaScript","postgres"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzekenie%2Fd2-erd-from-postgres","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzekenie%2Fd2-erd-from-postgres","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzekenie%2Fd2-erd-from-postgres/lists"}