Prisma generator for automatically generating documentation reference from the Prisma schema.
625
stars
79
commits
TypeScript
primary language
Mar 20, 2024
updated
Automatically generate a reference from your Prisma Schema. This package contains a prisma generator so reference will automatically update everytime you will run prisma generate

npm install -D prisma-docs-generator
generator docs {
provider = "node node_modules/prisma-docs-generator"
}
npx prisma generate to trigger the generator. This will create a docs folder in prisma/docsnpx prisma-docs-generator serveYou can specify the out of the docs using the output property
generator docs {
provider = "node node_modules/prisma-docs-generator"
output = "../../docs"
}
You can specify whether relation fields are shown or not.
Default value is true.
generator docs {
provider = "node node_modules/prisma-docs-generator"
includeRelationFields = false
}
This package also ships with a CLI which is used to serve the docs right now. It has the following subcommands:
serveServes the static html which the generator generated. It reads the output path from the prisma schema or it will use the default.
Use --port or -p to change the port the express server uses.
MIT Harshit Pant
(This is not an official Prisma project. It is personally maintained by me )
TypeScript
88.5%
CSS
6.5%
JavaScript
5.0%
Prisma generator for automatically generating documentation reference from the Prisma schema.
625
stars
79
commits
TypeScript
primary language
Mar 20, 2024
updated
Automatically generate a reference from your Prisma Schema. This package contains a prisma generator so reference will automatically update everytime you will run prisma generate

npm install -D prisma-docs-generator
generator docs {
provider = "node node_modules/prisma-docs-generator"
}
npx prisma generate to trigger the generator. This will create a docs folder in prisma/docsnpx prisma-docs-generator serveYou can specify the out of the docs using the output property
generator docs {
provider = "node node_modules/prisma-docs-generator"
output = "../../docs"
}
You can specify whether relation fields are shown or not.
Default value is true.
generator docs {
provider = "node node_modules/prisma-docs-generator"
includeRelationFields = false
}
This package also ships with a CLI which is used to serve the docs right now. It has the following subcommands:
serveServes the static html which the generator generated. It reads the output path from the prisma schema or it will use the default.
Use --port or -p to change the port the express server uses.
MIT Harshit Pant
(This is not an official Prisma project. It is personally maintained by me )
TypeScript
88.5%
CSS
6.5%
JavaScript
5.0%