A Prisma generator that automatically creates Entity Relationship Diagrams (ERDs) from your Prisma schema.
Prisma ERD Generator is a Prisma generator that automatically creates Entity Relationship Diagrams (ERDs) from Prisma schema files. It solves the problem of manually creating and maintaining database diagrams by integrating directly into the Prisma workflow, generating visual documentation every time the schema is updated.
Developers and teams using Prisma ORM who need to visualize their database schema, document relationships between models, or communicate database design to stakeholders.
It provides automated, up-to-date ERDs that stay synchronized with schema changes, offers extensive customization options, and integrates seamlessly into existing Prisma workflows without requiring external diagramming tools.
Generate an ER Diagram based on your Prisma schema every time you run npx prisma generate
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Automatically runs during `prisma generate`, ensuring ERDs are always synchronized with schema changes without manual intervention.
Supports SVG, PNG, PDF, and Markdown outputs, allowing diagrams to be easily embedded in documentation or presentations.
Offers built-in themes, pattern-based filtering to hide models, and table-only mode for simplified views, as detailed in the configuration options.
Includes a debug mode that creates step-by-step files to troubleshoot generation issues, helping resolve problems quickly.
Relies on Puppeteer and Mermaid CLI, which can cause installation errors, especially on ARM64 systems, requiring extra configuration steps as admitted in the README.
Only works with Prisma schema files, making it useless for projects using other ORMs or direct database modeling tools.
Adds significant dependencies to the build process, increasing container size and generation time, which is why the README suggests disabling it in Docker builds.