JavaScript / TypeScript SDK
The @localvectordb/sdk package provides a TypeScript-first client for interacting with LocalVectorDB servers from
Node.js and browser applications. It mirrors the Python RemoteVectorDB client’s API surface, giving JavaScript and
TypeScript developers full access to all LocalVectorDB server features.
Key characteristics:
Zero runtime dependencies — uses only the built-in
fetchAPITypeScript-first — full type safety with hand-written interfaces and overloaded signatures
Dual format — ships as both ESM and CommonJS
Cross-platform — works in Node.js 18+, modern browsers, Deno, Bun, and edge runtimes
Typed errors — error class hierarchy mirroring server error codes for precise
catchhandlingStreaming —
asyncgenerator-based SSE streaming viafor await