JavaScript · Installation

Installation

3.0.0-rc.1 · 4c3e5023

npm install usearch

§ Building From Source

The addon links against the C interface as a static archive, so usearch.node carries the engine inside it rather than beside it. cmake-js compiles it, and prebuild stages it where node-gyp-build looks:

npm run prebuild
npm run build-js
npm test

The addon carries the dense storage types its CMake configure compiled: npm run build-native and the prebuilt addons pass USEARCH_DENSE_DTYPES=11, while a plain configure compiles bf16, u1x8, i8 and e4m3 alone, and the suite skips the kinds such a build refuses.