{"repo":"keonik/prisma-erd-generator","free":true,"listed":false,"github":"https://github.com/keonik/prisma-erd-generator","clone":"git clone https://github.com/keonik/prisma-erd-generator.git","description":"Generate an ER Diagram based on your Prisma schema every time you run npx prisma generate","language":"TypeScript","stars":1032,"topics":["prisma","typescript","mermaid","entity-relationship-diagram","hacktoberfest"],"license":"MIT","category":"cli-tools","readme_excerpt":"Prisma Entity Relationship Diagram Generator Prisma generator to create an ER Diagram every time you generate your prisma client. Like this tool? @Skn0tt started this effort with his web app ER diagram generator Add to your schema.prisma Run the generator Versions - Prisma =5 use 2.x.x - Prisma = 4 use 1.x.x - Prisma , which means that there won't be an mmdc file created at all. This issue can be solved by creating your own shell script named mmdc inside your project's files that runs yarn mmdc (note: this shell script does not need to be added to your package.json file's scripts section - prisma-erd-generatr will access this script directly). An example mmdc script: Make this mmdc script executable by using the command chmod +x mmdc , then set the mmdcPath option to point to the directory where the mmdc file you've just created is stored. Disabled You won't always need to generate a new ERD. For instance, when you are building your docker containers you often run prisma generate and if this generator is included, odds are you aren't relying on an updated ERD inside your docker container. It also adds additional space to the container because of dependencies such as puppeteer. There are two ways to disable this ERD generator. 1. Via environment variable 2. Via configuration Another option used is to remove the generator lines from your schema before installing dependencies and running the prisma generate command. I have used sed to remove the lines the generator is located on","default_branch":null,"files":null,"tree":[],"storefront":"/r/keonik","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/keonik/prisma-erd-generator/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}