-
Notifications
You must be signed in to change notification settings - Fork 110
Expand file tree
/
Copy pathpackage.json
More file actions
94 lines (94 loc) · 3.17 KB
/
package.json
File metadata and controls
94 lines (94 loc) · 3.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
{
"name": "numkong",
"version": "7.1.0",
"description": "Portable mixed-precision BLAS-like vector math library for x86 and ARM",
"homepage": "https://github.com/ashvardanian/NumKong",
"author": "Ash Vardanian",
"license": "Apache 2.0",
"keywords": [
"vector",
"distance",
"similarity",
"search",
"ai",
"math",
"avx2",
"avx512",
"neon",
"sve",
"arm",
"x86",
"simd",
"f16"
],
"scripts": {
"install": "node-gyp-build",
"prebuild-single": "prebuildify --napi --strip --target=22.0.0",
"prebuild-arm64": "prebuildify --arch arm64 --napi --strip --target=22.0.0",
"prebuild-darwin-x64+arm64": "prebuildify --arch arm64+x64 --napi --strip --target=22.0.0",
"build-js": "rm -fr javascript/dist/* && tsc -p javascript/tsconfig-esm.json && tsc -p javascript/tsconfig-cjs.json && cp javascript/dist-package-esm.json javascript/dist/esm/package.json && cp javascript/dist-package-cjs.json javascript/dist/cjs/package.json",
"build-browser": "esbuild javascript/dist/esm/numkong-browser.js --bundle --format=esm --platform=browser --target=es2022 --outfile=build-wasm/numkong-bundle.js",
"test": "node --test ./test/test.mjs",
"test:bun": "bun test ./test/test.mjs",
"test:deno": "deno test -A --no-check",
"test:wasm:emscripten": "NK_RUNTIME=emscripten node --test test/test-wasm.mjs",
"test:wasm:emscripten64": "NK_RUNTIME=emscripten64 node --test test/test-wasm.mjs",
"test:wasm:wasi": "NK_RUNTIME=wasi-node node --test test/test-wasm.mjs",
"test:wasm:browser": "npx playwright test",
"test:wasm:all": "npm run test:wasm:emscripten && npm run test:wasm:emscripten64 && npm run test:wasm:wasi && npm run test:wasm:browser",
"bench": "node bench/bench.mjs",
"bench:native": "NK_RUNTIME=native node bench/bench.mjs",
"bench:emscripten": "NK_RUNTIME=emscripten node bench/bench.mjs",
"bench:wasi": "NK_RUNTIME=wasi node bench/bench.mjs",
"bench:browser": "node bench/bench.mjs --browser",
"bench:all": "npm run bench:native && npm run bench:emscripten && npm run bench:wasi && npm run bench:browser",
"bench:report": "node bench/bench.mjs --report"
},
"main": "javascript/dist/cjs/numkong.js",
"module": "javascript/dist/esm/numkong.js",
"exports": {
".": {
"import": "./javascript/dist/esm/numkong.js",
"require": "./javascript/dist/cjs/numkong.js"
},
"./wasm": {
"import": "./wasm/numkong.js",
"types": "./wasm/numkong.d.ts"
}
},
"engines": {
"node": ">=22.0.0"
},
"dependencies": {
"bindings": "^1.5.0",
"node-addon-api": "^8.5.0",
"node-gyp-build": "^4.8.4"
},
"devDependencies": {
"@playwright/test": "^1.58.0",
"@types/bindings": "^1.5.5",
"@types/node": "^24.10.0",
"node-gyp": "^11.5.0",
"playwright": "^1.58.0",
"prebuildify": "^6.0.1",
"http-server": "^14.1.1",
"esbuild": "^0.25.0",
"typescript": "^5.9.3"
},
"files": [
"c/",
"include/",
"javascript/",
"wasm/",
"binding.gyp",
"LICENSE"
],
"prettier": {
"printWidth": 120
},
"optionalDependencies": {
"benchmark": "^2.1.4",
"mathjs": "^14.9.0",
"usearch": "^2.21.0"
}
}