Back to browse
Kysera – a data layer for Kysely with RLS compiled into the SQL

Kysera – a data layer for Kysely with RLS compiled into the SQL

by old8man·Aug 4, 2026·1 point·0 comments

AI Analysis

●●●BangerBig BrainSolve My Problem

Row-level security compiled into Kysely queries with repository and functional DAL patterns.

Strengths
  • Plugins intercept at executor level so RLS policies apply inside transactions
  • Mix repository pattern for CRUD with functional DAL for complex reads in one codebase
  • No global bypass switch; opt-outs scoped per statement to prevent accidental leaks
Weaknesses
  • ESM-only and Node 22+ requirement blocks legacy TypeScript projects
  • Audit trail only available with repository pattern, not functional DAL queries
Target Audience

Backend developers using Kysely who need RLS and audit trails without ORM magic

Similar To

Prisma · Drizzle ORM · Kysely

Similar Projects