Skip to main content
Version: V1.4.1

Quick start

Start embedded seekdb with Node.js​

Use @oceanbase/seekdb-node@1.4.1 to start embedded seekdb V1.4.1 in your Node.js application. The binding starts the engine, and mysql2 connects to it to execute SQL. For supported platforms, installation steps, and a runnable example, see the Node.js tab in Embedded mode.

Existing seekdb-js applications​

OceanBase has stopped releasing new versions of the seekdb npm package (seekdb-js). If your application already uses the seekdb-js Collection API with seekdb V1.4.1, connect to a running instance using its host and port. See the seekdb-js API reference.

Reinstall seekdb-js​

The seekdb-js package requires Node.js 20 or later.

The @seekdb/default-embed package uses workspace dependency ranges. Install the packages together with --legacy-peer-deps. On Linux x86_64, set ONNXRUNTIME_NODE_INSTALL_CUDA=skip before installing to use CPU inference without downloading CUDA binaries.

npm install --legacy-peer-deps seekdb @seekdb/default-embed @seekdb/common

The following packages are part of the seekdb-js ecosystem.

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 text keyword search
@seekdb/prisma-adapterPrisma driver adapter for embedded seekdb

seekdb-js examples​