ZorixThe Modern IDB Layer
High-performance, type-safe database layer for the modern web.
High-performance, type-safe database layer for the modern web.

import { DB, schema, string, number } from '@zorix/zorixdb';
const db = new DB('mydb', {
version: 1,
});
const Users = await db.model(
'users',
schema({
id: number().primary(),
name: string().index(),
})
);
await Users.insert({ id: 1, name: 'Alice' });
const user = await Users.get(1);