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!

🌐
npm
npmjs.com › package › @prisma › generator-helper
prisma/generator-helper
December 17, 2025 - This package is intended for Prisma's internal use. Latest version: 7.6.0, last published: 6 days ago. Start using @prisma/generator-helper in your project by running `npm i @prisma/generator-helper`. There are 649 other projects in the npm registry using @prisma/generator-helper.
🌐
DEV Community
dev.to › yassineldeeb › create-prisma-generator-2mdg
Create Prisma Generator - DEV Community
January 11, 2022 - When @prisma/sdk spawns our generator, It uses RPCs to communicate with our generator to send it the parsed datamodel AST as an example. Luckily for us, prisma has wrote a helper library called @prisma/generator-helper.
🌐
Prisma
prisma.io › home › generators › generators › generators › generators
Generators (Reference) | Prisma Documentation
It generates Prisma Client into a custom directory in your application's codebase that's specified via the output field on the generator block. This gives you full visibility and control over the generated code.
🌐
CodeSandbox
codesandbox.io › examples › package › @prisma › generator-helper
prisma/generator-helper examples
Use this online @prisma/generator-helper playground to view and fork @prisma/generator-helper example apps and templates on CodeSandbox.
🌐
ReversingLabs
secure.software › npm › packages › @prisma › generator-helper › 7.5.0-dev.11
@prisma/generator-helper@7.5.0-dev.11 - npm
March 6, 2026 - The npm package @prisma/generator-helper ranks among the top 10000 projects in this community. It has 116M recorded downloads.
Find elsewhere
🌐
Aikido
intel.aikido.dev › packages › npm › @prisma › generator-helper
@prisma/generator-helper - npm package security analysis
This package is intended for Prisma's internal use Latest: 7.6.0. No known vulnerabilities.
🌐
Mintlify
mintlify.com › prisma › prisma › concepts › generators
Generators - Prisma ORM
Self-updating documentation for startups, enterprises, and agents.
🌐
GitHub
github.com › prisma-korea › prisma-generator-proto
GitHub - prisma-korea/prisma-generator-proto: Simple demonstration of @prisma/generator-helper
Easily generate CMS from your Prisma schema.
Starred by 5 users
Forked by 2 users
Languages   TypeScript 79.5% | JavaScript 20.5% | TypeScript 79.5% | JavaScript 20.5%
🌐
Cloudsmith
cloudsmith.com › navigator › npm › @prisma › generator-helper
@prisma/generator-helper (6.16.0) - npm Package Quality | Cloudsmith Navigator
Learn all about the quality, security, and current maintenance status of @prisma/generator-helper using Cloudsmith Navigator
🌐
Libraries.io
libraries.io › npm › @prisma › generator-helper
@prisma/generator-helper 7.10.0-dev.29 on npm - Libraries.io - security & maintenance data for open source software
October 4, 2019 - npm install @prisma/generator-helper@7.10.0-dev.29 · Quickstart • Website • Docs • Examples • Blog • Discord • Twitter • Youtube · Prisma ORM is a next-generation ORM that consists of these tools: Prisma Client: Auto-generated and type-safe query builder for Node.js & TypeScript ·
🌐
GitHub
github.com › topics › prisma-generator
prisma-generator · GitHub Topics · GitHub
February 22, 2021 - Prisma generator for automatically generating documentation reference from the Prisma schema.
🌐
Yarn
yarnpkg.com › package
Yarn
Cannot read properties of null (reading 'startsWith')
🌐
ReversingLabs
secure.software › npm › packages › @prisma › generator-helper › 7.5.0-dev.4
@prisma/generator-helper@7.5.0-dev.4 - npm
The npm package @prisma/generator-helper ranks among the top 10000 projects in this community. It has 114M recorded downloads.
🌐
ReversingLabs
secure.software › npm › packages › @prisma › generator-helper › 6.10.1
@prisma/generator-helper@6.10.1 - npm | ReversingLabs Spectra Assure Community
The npm package @prisma/generator-helper ranks among the top 10000 projects in this community. It has 104M recorded downloads.
🌐
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()
🌐
Openbase
openbase.com › js › @prisma › generator-helper › versions
@prisma/generator-helper: Versions | Openbase
Note: This is an early Preview feature with a significant limitation: Invalid input to Prisma Client will throw unpolished, internal errors that are less descriptive and user-friendly than our usual ones. We intend to improve these future releases.
🌐
npm
npm.io › home › @prisma/generator-helper
@prisma/generator-helper | npm.io
October 4, 2019 - npm i @prisma/generator-helper · npx @prisma/generator-helper · yarn add @prisma/generator-helper · pnpm add @prisma/generator-helper · bun add @prisma/generator-helper · Built and signed on · GitHub ActionsView build summary · Source Commit · github.com/prisma/prisma@a6d0155 ·
Published   Oct 04, 2019
Version   7.9.0
Author   Tim Suchanek