prisma-viewer

Displays Prisma Datamodels/Schemas

Usage no npm install needed!

<script type="module">
  import prismaViewer from 'https://cdn.skypack.dev/prisma-viewer';
</script>

README

Prisma Viewer

GitHub last commit

🐉 Here be dragons!!

For use with Prisma Datamodels

Installation

  npm i -g prisma-viewer

canary

Usage CLI

    Prisma Viewer   ಠ_ಠ

    Usage
      $ pv [path]

    Options
      -h, --help       Displays this help message
    Examples
      $ pv
      $ pv ./schema.prisma

Usage Playground

When viewing the schema/datamodel:

  • Press the a key to change the layout
  • Use a scroll wheel to zoom in/out
  • Click and drag to pan

Development

npm run dev [path/to/datamodel]