Documentation

TypeScript SDK

Get started with the CassaDB TypeScript SDK.

The TypeScript SDK provides a simple and fully typed interface for interacting with your CassaDB project.

It supports modern JavaScript runtimes including:

  • Node.js
  • Bun
  • Deno

Installation

bash
npm install @cassa-db/sdk

Create a Client

ts
import { CassaDB } from "@cassa-db/sdk";

const db = new CassaDB({
	baseUrl: "https://api.cassadb.online",
	apiKey: process.env.CASSADB_API_KEY!,
});

Once the client is configured, you're ready to create collections, store documents and upload files.