Prisma Schema DSL

JSON →
library 2.2.0 ·javascript
verified Jun 7, 2026

A JavaScript/TypeScript library for programmatically building and printing Prisma Schema DSL ASTs. Current stable version 2.2.0 allows creating enums, models, fields, and data sources with validation and type safety. Exports a print() function that formats the AST into a valid Prisma schema file using prisma-format. Key differentiator: provides a type-safe builder pattern instead of string manipulation, with full TypeScript support. Active development on GitHub under Amplication.