PJPalJS

ComprehensivePrisma Toolkit

Code generators for learning and prototyping, plus the production-ready PrismaSelect plugin for optimized GraphQL queries with Prisma.

Important: Choose the Right Tool

The code generators (GraphQL, Nexus, Admin) are designed for learning, prototyping, and example projects. For production applications, use only the PrismaSelect plugin — it provides secure, optimized field selection without exposing your full Prisma client.

Two Paths, One Toolkit

PalJS serves different needs — learn and prototype quickly, or optimize production queries.

Learning & Prototyping
Code Generators
Go from Prisma schema to working GraphQL API instantly. Perfect for:
  • Learning Prisma + GraphQL patterns
  • Building proof-of-concept projects
  • Creating example/demo applications
  • Rapid admin interface scaffolding

Not recommended for production — exposes full Prisma operations

Production Ready
PrismaSelect Plugin
Automatic field selection optimization for your GraphQL resolvers:
  • Only fetches requested fields — no over-fetching
  • Prevents N+1 query issues automatically
  • Secure — you control exposed operations
  • Works with any GraphQL framework

Battle-tested for production workloads

Packages

Modular packages that work together or independently.

Production Ready
@paljs/plugins
PrismaSelect for automatic field selection optimization in GraphQL resolvers
Learn more →
Learning & Prototyping
@paljs/generator
Native Prisma 7 generator for GraphQL schemas, types, and admin UI
Learn more →
Learning & Prototyping
@paljs/nexus
Nexus plugin for Prisma integration with automatic field selection
Learn more →
Internal Tools
@paljs/admin
React 19 admin UI components with Tailwind CSS 4 for internal tools
Learn more →

Quick Start: PrismaSelect

Add optimized field selection to your GraphQL resolvers in minutes.

1

Install

bun add @paljs/plugins
2

Import

import {PrismaSelect}
3

Use in Resolvers

new PrismaSelect(info)

Command Palette

Search for a command to run...