@delali/narsil-native-linux-arm64 0.0.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.
Files changed (2) hide show
  1. package/README.md +26 -0
  2. package/package.json +26 -0
package/README.md ADDED
@@ -0,0 +1,26 @@
1
+ # @delali/narsil-native-linux-arm64
2
+
3
+ [![npm](https://img.shields.io/npm/v/@delali/narsil-native-linux-arm64)](https://www.npmjs.com/package/@delali/narsil-native-linux-arm64)
4
+ [![license](https://img.shields.io/npm/l/@delali/narsil-native-linux-arm64)](https://github.com/assetcorp/narsil/blob/main/LICENSE)
5
+
6
+ This package holds the native search core of the Narsil search engine, compiled for Linux on 64-bit Arm.
7
+
8
+ ## Install
9
+
10
+ When you install the library, npm installs this package with it:
11
+
12
+ ```bash
13
+ pnpm add -E @delali/narsil
14
+ ```
15
+
16
+ Every platform package is an optional dependency of [`@delali/narsil`](https://www.npmjs.com/package/@delali/narsil) at the library's own version, so npm installs only the one whose `os` and `cpu` match your host.
17
+
18
+ ## What it does
19
+
20
+ Narsil searches the HNSW graph of each vector field through this core, which returns the same documents with the same scores as Narsil's WebAssembly search. Where Node cannot load this binary, Narsil searches through WebAssembly. To hold a process to the WebAssembly search, set `NARSIL_SEARCH_BACKEND=wasm` before you start it.
21
+
22
+ This package holds a glibc build and a musl build, because Node may fail to load a binary linked against one C library under the other.
23
+
24
+ ## Licence
25
+
26
+ You may use this package under the Apache-2.0 licence. [assetcorp/narsil](https://github.com/assetcorp/narsil) holds the C source, the build script, and the tests.
package/package.json ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "@delali/narsil-native-linux-arm64",
3
+ "version": "0.0.0",
4
+ "description": "Narsil's native search core in C, with its Node-API binding, compiled for Linux on 64-bit Arm with glibc and with musl.",
5
+ "license": "Apache-2.0",
6
+ "author": "Delali (https://sondelali.com)",
7
+ "homepage": "https://github.com/assetcorp/narsil",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/assetcorp/narsil.git",
11
+ "directory": "packages/native/npm/linux-arm64"
12
+ },
13
+ "os": [
14
+ "linux"
15
+ ],
16
+ "cpu": [
17
+ "arm64"
18
+ ],
19
+ "files": [
20
+ "narsil-core.node",
21
+ "musl/narsil-core.node"
22
+ ],
23
+ "engines": {
24
+ "node": ">=22"
25
+ }
26
+ }