Kadak

KadakORM Overview

A PostgreSQL ORM built for simple starts and production-safe growth.

KadakORM Overview

You want to ship features without fighting your ORM.

KadakORM solves three common problems:

  1. Schema setup feels heavy in most ORMs.
  2. Query code gets noisy fast.
  3. Teams skip validation until bugs reach production.

KadakORM gives you a short path:

  • Shorthand schema ('id', 'email', 'int?')
  • Plain object filters ($limit, $order, $or)
  • Built-in Zod validators from every table

First working example

import { connect, table } from '@shyk/kadak-orm'

const users = table('users', {
  id: 'id',
  email: 'email',
  name: 'text',
}, {
  timestamps: true,
  softDelete: true,
})

const db = connect('postgres://postgres:postgres@localhost:5432/kadak_demo', { users })

await db.users.insert({ email: 'riya@example.com', name: 'Riya' })
const rows = await db.users.findMany({ $limit: 10, $order: { createdAt: 'desc' } })
console.log(rows)

Important: add $limit to every list query. KadakORM warns when queries look risky.

Next

On this page