Official TypeScript SDK for HyperspaceDB gRPC API v3.1.0. Provides vector database operations including collection lifecycle management, vector insert/search, bulk operations (batchInsert, searchBatch), typed metadata support, graph traversal APIs, multi-tenant authentication, and advanced spatial filters. Version 3.1.1 supports Node.js 18+ and TypeScript types. Key differentiators include hybrid lexical/vector search (BM25), geometric filters (ball, box, cone), and server-side text vectorization. Release cadence is medium; API breaking changes occur with major version bumps (v3 introduced spatial filters).
npm install hyperspace-sdk-tsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows full client lifecycle: create collection, insert vectors, search, and cleanup. Uses environment variable for API key.
Explicitly pass 'l2' metric when upgrading from v2
Replace client.nearVector with client.search
Use client.delete(id) instead of client.deleteVector(id)
Ensure typed arrays are not sub-array views; use .slice() or new Float32Array(...) to create contiguous copies
Pass userId as third argument to HyperspaceClient constructor
Upgrade server to v3.1+ and verify SDK version matches server version
Replace client.nearVector with client.search
Pass a valid collection name string to insert, search, delete, etc.
Provide valid apiKey and userId in constructor, or configure server authentication