doba

Installation

Install doba and get up and running in seconds.

Installation

Install doba

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

Install a schema library

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

bash bun add zod
bash npm install zod
bash pnpm add zod
bash yarn add zod
bash bun add valibot
bash npm install valibot
bash pnpm add valibot
bash yarn add valibot
bash bun add arktype
bash npm install arktype
bash pnpm add arktype
bash 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