Lightlines
By prisma

prisma-next-runtime

prisma1.9k installs

Wire your database client and close scripts cleanly.

What it does

Configures a typed Prisma Next database client with middleware, environment-specific connections, transactions, and script teardown.

When to use it

Use when setting up db.ts, adding middleware, configuring environments, switching database targets, using transactions, or fixing script teardown.

How to use it

Give it a database runtime setup or lifecycle task in your project; it configures db.ts and the relevant application or script code.

What you provide

  • An existing project

Uses

Latest review

What you need · 4

The runtime examples use Node's ESM JSON imports, which require the JSON import attribute.

For URL-based connections, the runtime reads DATABASE_URL from process.env when db.ts loads; local configuration keeps it in .env.

Enables telemetry middleware; it is a separate package that must be installed directly.


Access · 1

This skill

@prisma-next/middleware-telemetry

Execute

Installs telemetry middleware