Skip to main content

Installation

Getting started with RushDB SDK is straightforward. This section will guide you through installing the SDK and setting up your first SDK instance.

Step 1: Install the Package

To begin, you need to add the RushDB SDK to your project. You can do this using either npm or yarn:

Using npm:

npm install @rushdb/javascript-sdk

Using yarn:

yarn add @rushdb/javascript-sdk

Note on SDK Size

The RushDB SDK is lightweight, coming in at just 5.1kB gzipped. Learn more about the package size here.

Step 2: Initialize the SDK

Once the package is installed, you can create an instance of the RushDB SDK in your project.

import RushDB from '@rushdb/javascript-sdk';

const db = new RushDB('API_TOKEN');

Replace API_TOKEN with your actual API token, which you can obtain from the RushDB Dashboard.

Next steps

To make full use of the SDK, you'll need a valid API token. In the next section, Configuring RushDB Dashboard, we'll guide you through the process of registering on the dashboard, creating a project, and generating your API token.