prisma-erd-generator
    TypeScript icon, indicating that this package has built-in type declarations

    0.8.1 • Public • Published

    Prisma Entity Relationship Diagram Generator

    All Contributors

    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

    npm i -D prisma-erd-generator
    # or
    yarn add -D prisma-erd-generator

    Add to your schema.prisma

    generator erd {
      provider = "prisma-erd-generator"
    }

    Run the generator

    npx prisma generate

    Example ER Diagram

    Options

    Additional configuration

    Output

    Change output type and location

    Usage

    generator erd {
      provider = "prisma-erd-generator"
      output = "../ERD.svg"
    }

    Extensions

    • svg (default: ./prisma/ERD.svg)
    • png
    • pdf
    • md

    Theme

    Theme selection

    Usage

    generator erd {
      provider = "prisma-erd-generator"
      theme = "forest"
    }

    Options

    • default (default)
    • forest
    • dark
    • neutral

    Contributors

    Thanks goes to these wonderful people (emoji key):


    John Fay

    🚧 💻 🤔 🐛

    Jonas Strassel

    🐛 💻

    Steve Gray

    💻 🤔

    Jason Abbott

    🐛 💻

    Manuel Maute

    🐛 💻

    James Homer

    💻

    This project follows the all-contributors specification. Contributions of any kind welcome!

    Install

    npm i prisma-erd-generator

    DownloadsWeekly Downloads

    2,041

    Version

    0.8.1

    License

    MIT

    Unpacked Size

    27.6 kB

    Total Files

    8

    Last publish

    Collaborators

    • keonik