Skip to main content
Version: 0.1.0

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