Skip to main content
The JavaScript SDK provides a TypeScript-first VectorAIClient for VectorAI DB over gRPC, plus REST-based auth/admin helpers.

Prerequisites

Install the SDK

With yarn:

Verify installation

Requires VectorAI DB running locally. See the Docker setup guide if you haven’t done that yet. Save the following as health.ts and run it with npx tsx health.ts.
For all client configuration options, see the JavaScript SDK reference.

Project setup

Create a TypeScript project and install the SDK.

Troubleshooting

Next steps

Quickstart

Create a collection, insert vectors, and run a search.

JavaScript reference

Review namespaces, client options, filters, auth, batching, and errors.