Quick start
seekdb-js
seekdb-js is OceanBase's Node client. It exposes one API surface and supports embedded mode and connecting to a remote server (server-mode seekdb or OceanBase Database).
OceanBase Database is a fully self-developed enterprise-level native distributed database independently developed by OceanBase. It achieves financial-grade high availability on general-purpose hardware. It sets a new standard for automatic lossless disaster recovery across three regions with five IDCs. It also sets a new benchmark in the TPC-C standard test with a single cluster size exceeding 1,500 nodes. OceanBase Database is cloud-native, highly consistent, and highly compatible with Oracle and MySQL. For more information about OceanBase Database, see OceanBase Database.
seekdb-js runs on Linux, macOS, and Windows. Supported connection modes vary by operating system. See the table below.
| System | Embedded seekdb | Server mode seekdb | Server mode OceanBase Database |
|---|---|---|---|
| Linux | Supported | Supported | Supported |
| macOS | Supported | Supported | Supported |
| Windows | Not supported yet | Supported | Supported |
On Linux and macOS, installing this client also installs embedded seekdb, so you can connect directly to embedded seekdb to create databases and perform other operations. You can also connect remotely to an existing server-mode seekdb or OceanBase Database.
Install seekdb-js
Prerequisites
Make sure that your environment meets the following requirements:
Node.js 20 or later
Install
npm install seekdb @seekdb/default-embed
When you install, we recommend adding the @seekdb/default-embed package. You can use other packages instead. The following packages are supported by seekdb-js:
| Package | Description |
|---|---|
| seekdb | Core SDK for seekdb operations |
| @seekdb/default-embed | Local embedding function using the Xenova/all-MiniLM-L6-v2 model (default) |
| @seekdb/qwen | DashScope / Qwen cloud embedding service |
| @seekdb/openai | OpenAI cloud embedding service |
| @seekdb/jina | Jina AI multimodal embedding service |
| @seekdb/bm25 | BM25 sparse embedding function for efficient text keyword search |
| @seekdb/prisma-adapter | Prisma driver adapter for seekdb Embedded (use Prisma with seekdb Embedded) |
What to do next
-
After you install seekdb-js, you can connect to seekdb to perform operations. For more information about the APIs supported by seekdb-js, see API reference.
-
You can also refer to our SDK samples to quickly get started with seekdb-js.