Skip to main content
Version: V1.2.0

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).

tip

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.

SystemEmbedded seekdbServer mode seekdbServer mode OceanBase Database
LinuxSupportedSupportedSupported
macOSSupportedSupportedSupported
WindowsNot supported yetSupportedSupported

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:

PackageDescription
seekdbCore SDK for seekdb operations
@seekdb/default-embedLocal embedding function using the Xenova/all-MiniLM-L6-v2 model (default)
@seekdb/qwenDashScope / Qwen cloud embedding service
@seekdb/openaiOpenAI cloud embedding service
@seekdb/jinaJina AI multimodal embedding service
@seekdb/bm25BM25 sparse embedding function for efficient text keyword search
@seekdb/prisma-adapterPrisma driver adapter for seekdb Embedded (use Prisma with seekdb Embedded)

What to do next​