doba

Installation

Install doba and get up and running in seconds.

Installation

Install doba

bun add dobajs
npm install dobajs
pnpm add dobajs
yarn add dobajs

Install a schema library

doba works with any Standard Schema compliant library. Pick one:

bun add zod
npm install zod
pnpm add zod
yarn add zod
bun add valibot
npm install valibot
pnpm add valibot
yarn add valibot
bun add arktype
npm install arktype
pnpm add arktype
yarn add arktype

Create your first registry

registry.ts
import { createRegistry } from 'dobajs'

const registry = createRegistry({
  schemas: {
    /* your schemas */
  },
  migrations: {
    /* your migrations */
  },
})

Head to Quick Start for a full walkthrough.

Requirements

  • TypeScript 5.0+
  • ESM (doba is ESM-only)
  • Any Standard Schema compliant library (Zod, Valibot, ArkType, etc.)

doba has zero runtime dependencies. The only peer requirement is your schema library of choice.

On this page