Skip to content

A lightweight package that generates an ERD from a prisma schema.

Notifications You must be signed in to change notification settings

colmeye/prisma-erd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

prisma-erd

A lightweight package that generates an ERD from a prisma schema.

Install

Install the package as a dev dependency:

npm install -D prisma-erd
# OR
yarn add -D prisma-erd
# OR
pnpm add -D prisma-erd

Usage

Run a single command to create an HTML file containing a graph of your schema:

npx prisma-erd <input file path> <optional output file path>
# OR
yarn exec prisma-erd <input file path> <optional output file path>
# OR
pnpm exec prisma-erd <input file path> <optional output file path>

Example:

npx prisma-erd ./prisma/schema.prisma

Development Setup

  1. Install packages via pnpm
pnpm i
  1. Check package.json for scripts, such as pnpm build:install to build and globally install the package on your machine

About

A lightweight package that generates an ERD from a prisma schema.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published