{"id":19140727,"url":"https://github.com/tijn/pg-erd","last_synced_at":"2025-08-10T16:42:32.619Z","repository":{"id":31717573,"uuid":"128685014","full_name":"tijn/pg-erd","owner":"tijn","description":"Generate Entity-Relationship Diagrams for Postgresql Databases","archived":false,"fork":false,"pushed_at":"2025-04-07T11:14:07.000Z","size":45,"stargazers_count":11,"open_issues_count":3,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-06T23:16:57.768Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tijn.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":"2018-04-08T21:54:16.000Z","updated_at":"2024-11-10T14:40:31.000Z","dependencies_parsed_at":"2025-04-19T10:34:35.763Z","dependency_job_id":"66460756-c752-4224-93c1-56463d13c0b6","html_url":"https://github.com/tijn/pg-erd","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tijn/pg-erd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tijn%2Fpg-erd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tijn%2Fpg-erd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tijn%2Fpg-erd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tijn%2Fpg-erd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tijn","download_url":"https://codeload.github.com/tijn/pg-erd/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tijn%2Fpg-erd/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269755487,"owners_count":24470536,"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","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-09T07:18:34.450Z","updated_at":"2025-08-10T16:42:32.575Z","avatar_url":"https://github.com/tijn.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Postgres ERD\n\n## Generate Entity-Relationship Diagrams for Postgresql Databases\n\nPostgres ERD is a program that allows you to easily generate a diagram based on a postgresql database schema. The diagram gives an overview of how your tables are related. Having a diagram to describes your tables is perfect for documentation.\n\nPostgres ERD is heavily inspired by [Rails ERD](https://voormedia.github.io/rails-erd/) but it serves some different use cases. First and foremost it does not rely on Rails (like Rails ERD). Thus you can use it for any database schema regardless of your project's language.\n\n## An Example\n\n\n# Requirements\n\n- Ruby 2.4+\n- postgresql\n\n# Getting started\n\n[It's part of a two-step program](https://www.youtube.com/watch?v=_c1NJQ0UP_Q):\n\nInstall the gem\n\n```sh\ngem install pg-erd\n```\n\nUse the thing:\n\n```sh\npg-erd {{the-name-of-your-database}}\n```\n\nThis will output a diagram of your database in [dot format](http://www.graphviz.org/). You can save it \n\n```sh\npg-erd {{the-name-of-your-database}} \u003e my-awesome-database.dot\n```\n\n... or run it though graphviz to create a png file:\n\n```sh\npg-erd {{the-name-of-your-database}} | dot -Tpng \u003e erd.png\n```\n\n... which you may also do like this: \n\n```sh\npg-erd --title \"Secret Project X\" --format png {{the-name-of-your-database}} \u003e erd.png\n```\n\nThere are many more formats and a few more useful options. You can find them all with `--help`\n\n# Free extras\n\n## pg-erd-everything\n\nThis command will create an ERD for every database on your system. It will write many image files, one for each database, to the current directory.\n\n## pg-list-databases\n\nLike `ls` but it lists the names of your postgres databases one by one.\n\n## pg-inspect\n\nThis command outputs a summary of your database structure to the console. It shows the same information as an ERD but then in plain text.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftijn%2Fpg-erd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftijn%2Fpg-erd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftijn%2Fpg-erd/lists"}