It's not database,
it's NotDatabase.

The easiest schema-based type-safe document database.

$npm install notdb
Read the docs

Built for TypeScript devs who get it.

Type Safe

Full TypeScript support with automatic type inference and compile-time safety. Your schema defines your types — no extra step needed.

const user = db.users.find("id_123")

// user is fully typed:
// {
//   name: string
//   email: string
//   age?: number
// }
schema: {
  users: {
    properties: {
      name:  { type: "string", required: true },
      email: { type: "string", unique: true },
      age:   { type: "number" },
    },
  },
}

Schema Based

Define your data structure once and get automatic validation and type safety. Your schema is the single source of truth.

Lightning Fast

Built on top of SQLite with optimized queries and minimal overhead. Reads in microseconds, not milliseconds.

<1msaverage read latency

Simple by Design

Set up in seconds. Start querying immediately.

setup.ts
import { createClient } from "notdb";

const db = createClient({
  apiKey: "YOUR_API_KEY",
  schema: {
  users: {
    properties: {
      name: { type: "string", required: true },
      email: { type: "string", required: true, unique: true },
      age: { type: "number" },
    },
  },
}
});
//Insert single
db.users.insert({
    email: "johndoe@example.com",
    name: "John Doe",
  })

//Insert multiple
db.users.insertBulk([
  {
    email:"user@example.com",
    name: "User One",
  },
  {
    email:"user2@example.com",
    name: "User Two",
  },
])