-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
64 lines (64 loc) · 2.66 KB
/
package.json
File metadata and controls
64 lines (64 loc) · 2.66 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
{
"name": "vectorjson",
"version": "0.5.1",
"description": "O(n) WASM SIMD JSON parser for AI agents — stream fields instantly, abort errors early, offload parsing to Workers",
"type": "module",
"main": "dist/index.js",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"default": "./dist/index.js"
},
"./engine.wasm": "./dist/engine.wasm"
},
"sideEffects": ["./dist/index.js"],
"files": [
"dist/",
"LICENSE"
],
"engines": {
"node": ">=20"
},
"scripts": {
"build:zig": "zig build -Doptimize=ReleaseSmall",
"build:opt": "wasm-opt -Oz --strip-producers --strip-target-features dist/engine.wasm -o dist/engine.wasm --enable-simd --enable-bulk-memory --enable-nontrapping-float-to-int --enable-sign-ext --enable-mutable-globals",
"build:types": "bun x tsc --emitDeclarationOnly",
"build:embed": "node scripts/embed-wasm.mjs",
"build:js": "bun build src/js/index.ts --outdir dist --target node --format esm --minify --sourcemap=external && bun run build:types",
"build": "bun run build:zig && bun run build:opt && bun run build:embed && bun run build:js",
"test": "bun test/phase1.mjs && bun test/phase2.mjs && bun test/parse-result.mjs && bun test/is-complete.mjs && bun test/partial-json.mjs && bun test/zerocopy.mjs && bun test/standards.mjs && bun test/security.mjs && bun test/event-parser.mjs && bun test/live-doc.mjs && bun test/large-json.mjs && bun test/deep-compare.mjs && bun test/sync-api.mjs && bun test/pick-fields.mjs && bun test/jsonl.mjs && bun test/json5.mjs && bun test/tape-transfer.mjs && bun test/coverage-gaps.mjs",
"bench": "bun --expose-gc bench/parse-stream.mjs",
"bench:parse": "bun --expose-gc bench/parse-stream.mjs",
"bench:e2e": "bun --expose-gc bench/end-to-end.mjs",
"bench:ai": "cd bench/ai-parsers && bun --expose-gc bench.mjs",
"bench:ttfa": "bun --expose-gc bench/time-to-first-action.mjs",
"test:worker": "npx playwright test --config test/browser/playwright.config.ts",
"bench:worker": "npx playwright test --config bench/browser/playwright.config.ts",
"prepublishOnly": "bun run build"
},
"keywords": [
"json",
"parser",
"wasm",
"simd",
"streaming",
"partial-json",
"ai-sdk",
"llm"
],
"repository": {
"type": "git",
"url": "git+https://github.com/teamchong/vectorjson.git"
},
"homepage": "https://github.com/teamchong/vectorjson#readme",
"author": "Steven Chong",
"license": "Apache-2.0",
"devDependencies": {
"@playwright/test": "^1.58.2",
"@types/node": "^25.2.3",
"typescript": "^5.7.0"
}
}