Package Exports
- @prisma/studio-core/data
- @prisma/studio-core/data/bff
- @prisma/studio-core/data/mysql-core
- @prisma/studio-core/data/mysql2
- @prisma/studio-core/data/node-sqlite
- @prisma/studio-core/data/pglite
- @prisma/studio-core/data/postgres-core
- @prisma/studio-core/data/postgresjs
- @prisma/studio-core/data/sqlite-core
- @prisma/studio-core/data/sqljs
- @prisma/studio-core/ui
- @prisma/studio-core/ui/index.css
Readme
@prisma/studio-core
@prisma/studio-core is the embeddable Prisma Studio package.
It provides the same core experience as Prisma Studio: a visual way to explore schema, browse table data, edit rows, filter/sort/paginate records, inspect relation data, and run SQL queries with an operation log.
This package is published to npm and consumed by Prisma surfaces such as Console and CLI integrations.
Telemetry
This package includes anonymized telemetry to help us improve Prisma Studio. Use implies consent. Learn more in our Privacy Policy.
Run Studio Locally
Requirements:
- Node.js
^20.19 || ^22.12 || ^24.0 pnpm8bun
Install dependencies and start the demo:
pnpm install
pnpm demo:ppgThen open http://localhost:4310.
The demo:
- starts Prisma Postgres dev (
ppg-dev) programmatically via@prisma/dev - uses direct TCP for query execution
- seeds sample relational data on startup
- auto-rebuilds and reloads the UI when source files change
The demo database is intentionally ephemeral: it is pre-seeded when the demo starts and reset when the demo process stops.
Useful Commands
pnpm demo:ppg- run local Studio demo with seeded Prisma Postgres devpnpm typecheck- run TypeScript checkspnpm lint- run ESLint (--fix)pnpm test- run default vitest suitepnpm test:checkpoint- run checkpoint testspnpm test:data- run data-layer testspnpm test:ui- run UI testspnpm test:e2e- run e2e testspnpm demo:ppg:build- bundle the demo server withbun buildpnpm demo:ppg:bundle- build and run the bundled demo serverpnpm build- build distributable package withtsuppnpm check:exports- validate package export map/types
When bundling the demo with bun build, we use --packages external so
@prisma/dev can resolve its PGlite runtime assets (WASM/data/extensions)
directly from node_modules at runtime.
Development Workflow
For day-to-day development, use an agent with Playwright available and let the agent run the demo itself.
Recommended flow:
- Let the agent run
pnpm demo:ppg. - Let the agent inspect terminal logs and browser behavior together.
- Let the agent verify UI state via Playwright after changes.
Because the demo is pre-seeded and resets between runs, update seed data whenever needed to reproduce richer scenarios.
Seed data lives in /Users/sorenschmidt/code/studio/demo/ppg-dev/server.ts (seedDatabase).