{"id":49735381,"url":"https://github.com/rorz/drizzle-erd","last_synced_at":"2026-05-09T07:45:24.190Z","repository":{"id":242525146,"uuid":"807668298","full_name":"rorz/drizzle-erd","owner":"rorz","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-11T22:47:13.000Z","size":438,"stargazers_count":12,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-16T17:11:21.675Z","etag":null,"topics":["drizzle","drizzle-orm","erd"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/drizzle-erd","language":"TypeScript","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/rorz.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-29T14:43:21.000Z","updated_at":"2026-01-23T12:02:04.000Z","dependencies_parsed_at":"2024-06-11T00:33:38.715Z","dependency_job_id":null,"html_url":"https://github.com/rorz/drizzle-erd","commit_stats":null,"previous_names":["rorz/drizzle-erd"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rorz/drizzle-erd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rorz%2Fdrizzle-erd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rorz%2Fdrizzle-erd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rorz%2Fdrizzle-erd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rorz%2Fdrizzle-erd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rorz","download_url":"https://codeload.github.com/rorz/drizzle-erd/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rorz%2Fdrizzle-erd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32811662,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"online","status_checked_at":"2026-05-09T02:00:06.633Z","response_time":123,"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":["drizzle","drizzle-orm","erd"],"created_at":"2026-05-09T07:45:23.461Z","updated_at":"2026-05-09T07:45:24.176Z","avatar_url":"https://github.com/rorz.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./drizzle-erd-logo.png\" width=128 /\u003e\n  \u003ch1 align=\"center\"\u003eDrizzle ERD\u003c/h1\u003e\n\u003c/p\u003e\n\n\u003e A super-simple way to generate Entity-Relationship Diagrams (ERDs) from your Drizzle schema. Use case (CLI or in-code) and dialect (PG, MySQL, SQLite) agnostic!\n\n[![Tests](https://github.com/rorz/drizzle-erd/actions/workflows/tests.yaml/badge.svg)](https://github.com/rorz/drizzle-erd/actions/workflows/tests.yaml)\n[![Downloads](https://badgen.net/npm/dt/drizzle-erd)](https://www.npmjs.com/package/drizzle-erd)\n\n\u003e [!IMPORTANT]\n\u003e Drizzle ERD is in **pre-release** and is not ready for production-reliant use cases.\n\n## Alpha usage\n\nIf you'd like to use this package right now, in lieu of any proper documentation, here's how to get started.\n\n### CLI\n\nCall `drizzle-erd` directly from `npm` or `pnpm` from a script in your `package.json` like so:\n\n```jsonc\n{\n  //...Rest of package.json\n  \"scripts\": {\n    //...Other scripts\n    \"db:generate-erd\": \"drizzle-erd --in ./src/or/path/to/schema.ts --out erd.svg\"\n  }\n}\n```\n\n### Options\n\nThe following CLI flags are available to be used with `drizzle-erd`.\n\n| Name                            | Flag        | Description                                                                              |\n| ------------------------------- | ----------- | ---------------------------------------------------------------------------------------- |\n| [Required] \u003cbr /\u003e Schema source | `--in`      | The path to your Drizzle `schema.ts` file.                                               |\n| [Required] \u003cbr /\u003e SVG output    | `--out`     | The destination path (and filename) of the output SVG. (Overwrites if already exists)    |\n| Debug logs                      | `--verbose` | Provide this flag to print the status of the schema generation with debug-level logging. |\n\n### Add your ERD to your README\n\nAdd your ERD to your readme like this:\n\n```md\n\u003cimg src=\"./erd.svg\" width=720 /\u003e\n```\n\n\u003cimg src=\"./erd.svg\" width=720 /\u003e\n\n### Make it all automatic\n\nCall the `db:generate-erd` script you defined earlier from a Git `pre-commit` hook to make sure your generated ERD is always up-to-date (especially if you're printing it out to your README as above).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frorz%2Fdrizzle-erd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frorz%2Fdrizzle-erd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frorz%2Fdrizzle-erd/lists"}