spb/llmindex Public
The discriminative, contamination-resistant, fully transparent LLM ranking — updated live.
TypeScript 77.9%
TeX 15.2%
Python 3.7%
SQL 1.4%
JavaScript 1.1%
Shell 0.5%
1/**2 * llmindex.io — Prisma client singleton (shared by web + worker)3 * Author: Simon-Pierre Boucher4 * Contact: contact@spboucher.ai5 * License: Proprietary — © Simon-Pierre Boucher, all rights reserved6 */7import { PrismaClient } from '@prisma/client';89const globalForPrisma = globalThis as unknown as { prisma?: PrismaClient };1011export const prisma =12 globalForPrisma.prisma ??13 new PrismaClient({14 log: process.env.NODE_ENV === 'development' ? ['warn', 'error'] : ['error'],15 });1617if (process.env.NODE_ENV !== 'production') globalForPrisma.prisma = prisma;1819export * from '@prisma/client';20