Introduction
Welcome to PalJS - your comprehensive toolkit for building modern GraphQL APIs with Prisma.
What is PalJS?
PalJS is a powerful toolkit that accelerates GraphQL API development with Prisma. It provides code generation, admin interfaces, and query optimization tools that let you build production-ready GraphQL APIs in minutes.
In v9, PalJS runs as a native Prisma generator — just add it to your schema.prisma and everything is generated with a single prisma generate command.
Quick Start
1. Install the Generator
2. Add to Your Prisma Schema
prisma
3. Create Configuration
Create a paljs.config.ts file next to your schema.prisma:
typescript
4. Generate Everything
5. Start Development
Why Choose PalJS?
- Single Command:
prisma generategenerates GraphQL types, client queries, admin UI, and typed helpers - Type Safe: Generated
ModelsObjecttype eliminatesanycasts in PrismaSelect - Prisma 7 Native: Runs as a Prisma generator — no separate CLI or build step
- Flexible Config:
defineConfig()with TypeScript autocomplete and per-model control - Modern Admin: React 19 + Tailwind 4 admin interface with full CRUD
Core Packages
Code Generation
- @paljs/generator — Native Prisma generator for GraphQL schemas, types, and admin UI
- Configuration Reference — Full
defineConfig()API reference
GraphQL Integration
- @paljs/nexus — Nexus plugin for Prisma integration
- @paljs/plugins — PrismaSelect for automatic field selection optimization
User Interface
- @paljs/admin — React admin UI components for Prisma
Installation
Install the packages you need:
Next Steps
- Generator Setup — Set up the native Prisma generator
- Configuration — Learn all
defineConfig()options - Upgrade Guide — Migrating from v8 to v9
- Prisma 7 Compatibility — Working with Prisma 7