Hey Yassin 👋 this is a great initiative and I'd love to see such a guide that makes it easier for the community to build their own generators!!

However, there's a major caveat to this. The DMMF is an undocumented API that's not considered part of the official API surface and might break unexpectedly with any release, so it's very intentionally not documented in our own resources (somewhat related context also in this issue: #10725).

I would still love to see such a guide, do you maybe have a personal blog where you could publish it? Otherwise, platforms like Hashnode or dev.to are great to publish blog posts without the need of setting up your own blog. While we are not able to include such a guide in our own resources, I do think we can link to it from the Community generators-section in our docs!

🌐
Prisma
prisma.io › home › generators › generators › generators › generators
Generators (Reference) | Prisma Documentation
Requires an output path; no "magic" ... instead · Supports ESM and CommonJS via the moduleFormat field ... The prisma-client generator is the default generator....
🌐
Prisma Client Python
prisma-client-py.readthedocs.io › en › stable › reference › custom-generators
Custom Generators - Prisma Client Python - Read the Docs
To support defining custom options you need to define the generator slightly differently: from pydantic import BaseModel from prisma.generator import Manifest, GenericData, GenericGenerator # custom options must be defined using a pydantic BaseModel class Config(BaseModel): my_option: int # we don't technically need to define our own Data class # but it makes typing easier class Data(GenericData[Config]): pass # the GenericGenerator[Data] part is what tells Prisma Client Python to use our # custom Data class with our custom Config class class MyGenerator(GenericGenerator[Data]): def get_manifest(self) -> Manifest: return Manifest( name='My Custom Generator Options', default_output='schema.md', ) def generate(self, data: Data) -> None: # generate some assets here pass if __name__ == '__main__': MyGenerator.invoke()
🌐
DEV Community
dev.to › yassineldeeb › create-prisma-generator-2mdg
Create Prisma Generator - DEV Community
January 11, 2022 - Introducing create-prisma-generator CLI and explaining the boilerplate. Tagged with typescript, javascript, prisma, generator.
🌐
GitHub
github.com › multipliedtwice › prisma-generator-express
GitHub - multipliedtwice/prisma-generator-express: This tool automatically generates Express/Fastify CRUD API that uses Prisma to handle database operations and validates responses with Zod schemas to ensure the integrity of input and output. · GitHub
May 11, 2026 - This tool automatically generates Express/Fastify CRUD API that uses Prisma to handle database operations and validates responses with Zod schemas to ensure the integrity of input and output. - mul...
Starred by 28 users
Forked by 6 users
Languages   TypeScript 86.2% | JavaScript 13.8%
🌐
GitHub
github.com › YassinEldeeb › create-prisma-generator
GitHub - YassinEldeeb/create-prisma-generator: Get started developing your own ◭ Prisma generator by running a single command.
Get started developing your own ◭ Prisma generator by running a single command. - GitHub - YassinEldeeb/create-prisma-generator: Get started developing your own ◭ Prisma generator by running a sin...
Starred by 195 users
Forked by 8 users
Languages   TypeScript 84.3% | JavaScript 15.2% | Shell 0.5% | TypeScript 84.3% | JavaScript 15.2% | Shell 0.5%
🌐
Typegraphql
prisma.typegraphql.com
Home page | TypeGraphQL Prisma
Prisma generator to emit TypeGraphQL type classes and CRUD resolvers from your Prisma schema
Find elsewhere
🌐
Prisma
prisma.io › ecosystem
Prisma ORM Ecosystem
Additionally, generate schemas using code, configure your data source using YAML and XML and more. ... The Prisma Valibot Generator creates Valibot schemas directly from your Prisma models.
🌐
Prisma
prisma.io › home › generate › generate
prisma generate | Generate Prisma Client & Artifacts | Prisma Documentation
Generate Prisma Client and other artifacts from your schema with prisma generate. Supports --watch, custom output, and multiple generators.
🌐
Lhowsam
lhowsam.com › blog › how-to-build-a-custom-prisma-generator
How to build a custom Prisma generator | lhowsam.com
August 27, 2023 - A prisma Generator is a tool that introspects your Prisma schema and outputs code from it.
🌐
GitHub
github.com › luisrudge › prisma-generator-fake-data
GitHub - luisrudge/prisma-generator-fake-data: Generate mock data based on your Prisma models · GitHub
Generated with Nano Banana Pro. It's a Prisma Generator that uses faker.js to create realistic-looking fake data for your Prisma models.
Starred by 147 users
Forked by 18 users
Languages   TypeScript 97.3% | JavaScript 1.8% | Shell 0.9%
🌐
npm
npmjs.com › package › prisma-class-generator
prisma-class-generator - npm
August 12, 2024 - Class generator from Prisma schema. Latest version: 0.2.11, last published: 2 years ago. Start using prisma-class-generator in your project by running `npm i prisma-class-generator`. There are 5 other projects in the npm registry using prisma-class-generator.
      » npm install prisma-class-generator
    
Published   Aug 12, 2024
Version   0.2.11
🌐
npm
npmjs.com › package › prisma-erd-generator
prisma-erd-generator - npm
May 30, 2026 - You should see a directory and files created labeling the steps to create an ER diagram under prisma/debug. Please use these files as part of opening an issue if you run into problems. Table mode only draws your models and skips the attributes and columns associated with your table. This feature is helpful for when you have lots of table columns and they are less helpful than seeing the tables and their relationships · generator erd { provider = "prisma-erd-generator" tableOnly = true }
      » npm install prisma-erd-generator
    
Published   Jul 13, 2026
Version   2.4.4
🌐
npm
npmjs.com › package › prisma-docs-generator
prisma-docs-generator - npm
May 17, 2023 - Documentation reference generator for Prisma Schema. Latest version: 0.8.0, last published: 3 years ago. Start using prisma-docs-generator in your project by running `npm i prisma-docs-generator`. There are 1 other projects in the npm registry using prisma-docs-generator.
      » npm install prisma-docs-generator
    
Published   May 17, 2023
Version   0.8.0
🌐
Prisma
prisma.io › home › schema api › schema api › schema api
Prisma Schema API | Prisma Documentation
The ESM-first client generator that offers greater control and flexibility across different JavaScript environments. It generates plain TypeScript code into a custom directory, providing full visibility over the generated code.
🌐
Prisma
v1.prisma.io › docs › 1.34 › prisma-cli-and-configuration › cli-command-reference › prisma-generate-xcv2
Prisma 1.34 - prisma1 generate
prisma1 generate Invokes the generators specified in prisma.yml. Available generators are: The following generators are built-into the Prisma CLI: Prisma client in JavaScript: javascript-client Prisma client in TypeScript:...
🌐
GitHub
github.com › Cauen › prisma-generator-pothos-codegen
GitHub - Cauen/prisma-generator-pothos-codegen: The fastest way to create a fully customizable CRUD Graphql API from Prisma Schema. · GitHub
A prisma generator plugin that auto-generates Pothos GraphQL input types and crud operations (all queries and mutations).
Starred by 110 users
Forked by 21 users
Languages   TypeScript 99.2% | JavaScript 0.8%
🌐
GitHub
github.com › keonik › prisma-erd-generator
GitHub - keonik/prisma-erd-generator: Generate an ER Diagram based on your Prisma schema every time you run npx prisma generate · GitHub
Generate an ER Diagram based on your Prisma schema every time you run npx prisma generate - keonik/prisma-erd-generator
Starred by 1K users
Forked by 62 users
Languages   TypeScript 91.2% | JavaScript 8.8%