ProvenPin Install

Stacks

better-sqlite3 recipes

7 tested better-sqlite3 integration recipes with Drizzle ORM, SQLite, drizzle-zod, Zod. Exact pinned versions and a last-passed receipt, last run 2026-10-15.

passed1/1typescript

Drizzle ORM + better-sqlite3 CRUD

Typed schema, migrations-free table creation and CRUD with Drizzle on an in-memory SQLite database.

drizzle-orm@0.45.4better-sqlite3@12.11.1tsx@4.23.15
last passed 2026-10-15 11:52 UTC
passed2/2typescript

Drizzle ORM + drizzle-zod validated inserts on SQLite

Generate Zod insert and select schemas from Drizzle tables with drizzle-zod, refine them, and validate input before inserting into SQLite.

drizzle-orm@0.45.4drizzle-zod@0.8.3zod@4.6.7
last passed 2026-10-15 11:52 UTC
passed3/3typescript

Hono + Drizzle ORM + SQLite REST API (Vitest)

CRUD REST API in Hono backed by Drizzle ORM on better-sqlite3, with Zod validation, tested with Vitest and app.request().

hono@4.13.13drizzle-orm@0.45.4better-sqlite3@13.0.3
last passed 2026-10-15 11:54 UTC
passed1/1typescript

Kysely + better-sqlite3 typed queries

Type-safe SQL with Kysely on SQLite, including a schema migration, joins and a transaction.

kysely@0.29.6better-sqlite3@12.11.1tsx@4.23.15
last passed 2026-10-15 11:54 UTC
passed2/2typescript

NestJS 12 + TypeORM 1 on in-memory SQLite, tested with @nestjs/testing

A NestJS module with a TypeORM entity, repository-backed service and controller, wired to in-memory SQLite and tested end to end through the Nest app with supertest. better-sqlite3 stays on 12.x because TypeORM 1.1 peers on ^12.

@nestjs/core@12.1.3@nestjs/common@12.1.3@nestjs/platform-express@12.1.3
last passed 2026-10-15 11:55 UTC
passed1/1typescript

Prisma 7 + SQLite via better-sqlite3 adapter

Prisma Client 7 with the better-sqlite3 driver adapter, schema push and relational queries on a local SQLite file.

@prisma/client@7.10.0@prisma/adapter-better-sqlite3@7.10.0tsx@4.23.15
last passed 2026-10-15 11:56 UTC
passed4/4typescript

Prisma 7 + SQLite: nested writes, interactive transactions and unique errors

Prisma Client 7 on SQLite (better-sqlite3 adapter): nested creates, an interactive $transaction that rolls back, and handling P2002 unique-constraint errors.

@prisma/client@7.10.0@prisma/adapter-better-sqlite3@7.10.0tsx@4.23.15
last passed 2026-10-15 11:56 UTC

Used together with better-sqlite3

Drizzle ORMSQLitedrizzle-zodZodHono@hono/zod-validatorvitestKysely@nestjs/core@nestjs/typeormtypeormPrisma