JavaScript Client Overview
Complete reference for @raisindb/client.
Installation
npm install @raisindb/client
Quick Start
import { RaisinClient } from '@raisindb/client';
const client = new RaisinClient('ws://localhost:8080/ws/myapp');
await client.connect();
await client.authenticate({
username: 'admin',
password: 'password'
});
const db = client.database('myapp');
const ws = db.workspace('content');
Connection URLs use the tenant-less ws://host/ws/{repository} form — clients
never need to know a tenant id. Multi-tenant operators can address a specific
tenant with ws://host/sys/{tenant}/{repository} (or by passing the
tenantId option).
Reference Pages
- Connection & Authentication — Connect, authenticate, manage sessions
- Node Operations — CRUD, tree operations, relationships
- Branches — Fork, compare, and merge branches;
onBranch()scoping - Events — Real-time subscriptions
- Realtime Subscriptions & Inbox — Path filter semantics, inbox-bell pattern
- Chat & Conversations — ConversationManager, ConversationStore, streaming, plans
- Framework Integrations — React, Svelte 5, and Vue 3 bindings
- Flows — Workflow execution and streaming
- Uploads — File uploads and signed URLs