-
Notifications
You must be signed in to change notification settings - Fork 111
Expand file tree
/
Copy pathpackage.json
More file actions
104 lines (104 loc) · 3.34 KB
/
package.json
File metadata and controls
104 lines (104 loc) · 3.34 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
95
96
97
98
99
100
101
102
103
104
{
"name": "numkong",
"version": "7.2.4",
"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": {
"preinstall": "node probes/probe.js",
"install": "node-gyp-build",
"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"
},
"./numkong.gypi": "./numkong.gypi",
"./package.json": "./package.json"
},
"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",
"http-server": "^14.1.1",
"esbuild": "^0.25.0",
"typescript": "^5.9.3",
"benchmark": "^2.1.4",
"mathjs": "^14.9.0",
"usearch": "^2.21.0"
},
"files": [
"c/",
"include/",
"javascript/dist/",
"javascript/*.ts",
"javascript/*.json",
"javascript/*.c",
"probes/",
"wasm/",
"binding.gyp",
"numkong.gypi",
"LICENSE"
],
"prettier": {
"printWidth": 120
},
"optionalDependencies": {
"@numkong/darwin-arm64": "7.2.0",
"@numkong/darwin-x64": "7.2.0",
"@numkong/linux-arm64": "7.2.0",
"@numkong/linux-x64": "7.2.0",
"@numkong/win32-arm64": "7.2.0",
"@numkong/win32-x64": "7.2.0"
}
}