NotDatabase

Documentation|LoginSignup|

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.

Schema Based

Define your data structure once and get automatic validation and type safety.

Lightning Fast

Built on top of SQLite with optimized queries and minimal overhead.

Simple by Design

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",
  },
])