albingroen / prismabuilder.io

Build your Prisma schema visually in this easy-to-use web based tool
https://www.prismabuilder.io
278 stars 30 forks source link
nextjs prisma tailwindcss

prismabuilder.io

Build your Prisma schema visually in this easy-to-use web based tool.

Try it out at prismabuilder.io

Schema generator code by Richard Powell

Documentation

Generating the schema from JSON

The application uses JSON as the data format, and then generates the Prisma schema string on demand. This is done by sending a POST request to this url and passing in the schema.

axios.post("https://prismabuilder-io-api.onrender.com/generate", { schema });

Parsing a schema string into JSON

axios.post("https://prismabuilder-io-api.onrender.com/parse", { schema });

You can find the code for this here: albingroen/prismabuilder.io-api