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

Add the SDK to your project.
With yarn:

Verify installation

VectorAI DB required: To verify your installation, run VectorAI DB locally first. Follow the Docker installation guide if you need a server.
Save the following as health.ts and run it with npx tsx health.ts.

Project setup

Create a TypeScript project and install the SDK.

Configure the client

Use constructor options or environment variables for connection settings.

Troubleshooting

Next steps

Quickstart

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

JavaScript reference

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