@ruvector/rvf-wasm 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -0
- package/package.json +12 -0
package/README.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# @ruvector/rvf-wasm
|
|
2
|
+
|
|
3
|
+
RuVector Format (RVF) WASM build for browsers and edge functions. Query vectors directly in the browser with zero backend.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @ruvector/rvf-wasm
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```html
|
|
14
|
+
<script type="module">
|
|
15
|
+
import init, { WasmRvfStore } from '@ruvector/rvf-wasm';
|
|
16
|
+
await init();
|
|
17
|
+
|
|
18
|
+
const store = WasmRvfStore.create(384);
|
|
19
|
+
store.ingest(1, new Float32Array(384));
|
|
20
|
+
const results = store.query(new Float32Array(384), 10);
|
|
21
|
+
console.log(results); // [{ id, distance }]
|
|
22
|
+
</script>
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Features
|
|
26
|
+
|
|
27
|
+
- ~46 KB control plane (full store API)
|
|
28
|
+
- ~5.5 KB tile microkernel (query-only)
|
|
29
|
+
- In-memory store with HNSW indexing
|
|
30
|
+
- Segment inspection and status
|
|
31
|
+
- No backend required
|
|
32
|
+
|
|
33
|
+
## License
|
|
34
|
+
|
|
35
|
+
MIT
|
package/package.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ruvector/rvf-wasm",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "RuVector Format WASM build for browsers",
|
|
5
|
+
"main": "pkg/rvf_runtime.js",
|
|
6
|
+
"types": "pkg/rvf_runtime.d.ts",
|
|
7
|
+
"files": ["pkg/"],
|
|
8
|
+
"scripts": {
|
|
9
|
+
"build": "wasm-pack build ../../crates/rvf/rvf-runtime --target web --out-dir ../../npm/packages/rvf-wasm/pkg --features wasm"
|
|
10
|
+
},
|
|
11
|
+
"license": "MIT"
|
|
12
|
+
}
|