brickbed
v0.0.1
Published
TypeScript client for Brickbed - the document database built for distributed edge apps
Maintainers
Readme
brickbed
TypeScript client for Brickbed - the document database built for distributed edge apps.
Coming Soon
Brickbed is currently on waitlist. Visit brickbed.com to get notified when it's ready.
Installation
npm install brickbed
# or
bun add brickbedUsage
import { createClient } from 'brickbed';
const db = createClient({
endpoint: process.env.BRICKBED_ENDPOINT,
apiKey: process.env.BRICKBED_API_KEY,
});
// Insert a document
const post = await db.collection('posts').insert({
title: 'Hello World',
content: 'My first post',
});
// Get a document
const fetched = await db.collection('posts').get(post._id);
// List documents
const all = await db.collection('posts').list({ limit: 10 });License
MIT
