OOrveth

Documentation

Prisma

@orveth/prisma — integration-first helpers. Prisma remains Prisma.

@orveth/prisma is not an ORM replacement. It adds shutdown hooks and health routes that work with your existing Prisma client.

prisma.ts
import { PrismaClient } from "@prisma/client";
import {
  Orveth,
  createDatabaseHealthRoute,
  registerPrismaShutdown,
} from "orveth";

const prisma = new PrismaClient();
registerPrismaShutdown(prisma);

const app = new Orveth();
app.get("/health/db", createDatabaseHealthRoute({ client: prisma }));

await app.listen(3000);