nostrbasedocs
Start building
DOCUMENTATIONSDK v0.2.0
A familiar API. A different architecture.

Make nostr
feel familiar

A TypeScript SDK for signed records, realtime, and personal encrypted data. Built on Applesauce.

TypeScriptESMNode 22.12+Browsers
TypeScript
import { createClient } from "nostrbase";

const db = createClient({
  namespace: "my-app",
  relays: ["wss://your-relay.example"],
});

await db.auth.signInWithExtension();

const { data, error } = await db
  .from("todos")
  .insert({ title: "Build something", done: false })
  .select()
  .single();
Writes are signed by the user
THE STACK

Your app connects directly.

Build your app

Choose a feature. Get the code and its constraints.

TypeScript reference

Start in your environment

Use your existing UI stack.

Know the data model

Record identity includes the author. Queries cover known relay data. App rules run in the client.

Coming from Supabase?

Local release. Install the built archive; nostrbase is not yet published to npm.

Installation

Search guides, API methods, and protocols.