Upgraded minimum Node.js version from 18.0.0 to 23.11.0 across `README.md`, `package.json`, and `version.ts`. Optimized distance utilities and pipelines to leverage Node.js 23.11+ native performance improvements (e.g., `array.reduce`, WebStreams API). Incremented version to 0.7.4 for consistency.
116 lines
3 KiB
JSON
116 lines
3 KiB
JSON
{
|
|
"name": "@soulcraft/brainy",
|
|
"version": "0.7.4",
|
|
"description": "A vector graph database using HNSW indexing with Origin Private File System storage",
|
|
"main": "dist/index.js",
|
|
"module": "dist/index.js",
|
|
"types": "dist/index.d.ts",
|
|
"type": "module",
|
|
"sideEffects": false,
|
|
"exports": {
|
|
".": {
|
|
"import": "./dist/index.js",
|
|
"types": "./dist/index.d.ts"
|
|
},
|
|
"./types/graphTypes": {
|
|
"import": "./dist/types/graphTypes.js",
|
|
"types": "./dist/types/graphTypes.d.ts"
|
|
},
|
|
"./types/augmentations": {
|
|
"import": "./dist/types/augmentations.js",
|
|
"types": "./dist/types/augmentations.d.ts"
|
|
}
|
|
},
|
|
"engines": {
|
|
"node": ">=23.11.0"
|
|
},
|
|
"scripts": {
|
|
"prebuild": "node scripts/generate-version.js",
|
|
"build": "tsc",
|
|
"test": "jest",
|
|
"start": "node dist/index.js",
|
|
"cli": "node ./cli-wrapper.js",
|
|
"cli:version": "node ./cli-wrapper.js --version",
|
|
"cli:v": "node ./cli-wrapper.js -V",
|
|
"version:patch": "npm version patch",
|
|
"version:minor": "npm version minor",
|
|
"version:major": "npm version major",
|
|
"deploy": "npm run build && npm publish",
|
|
"postinstall": "echo 'Note: If you encounter dependency conflicts with TensorFlow.js packages, please use: npm install --legacy-peer-deps'"
|
|
},
|
|
"bin": {
|
|
"brainy": "cli-wrapper.js"
|
|
},
|
|
"keywords": [
|
|
"vector-database",
|
|
"hnsw",
|
|
"opfs",
|
|
"origin-private-file-system",
|
|
"embeddings",
|
|
"graph-database",
|
|
"streaming-data"
|
|
],
|
|
"author": "David Snelling (david@soulcraft.com)",
|
|
"license": "MIT",
|
|
"private": false,
|
|
"publishConfig": {
|
|
"access": "restricted"
|
|
},
|
|
"devDependencies": {
|
|
"@types/jest": "^29.5.3",
|
|
"@types/node": "^20.4.5",
|
|
"@types/omelette": "^0.4.5",
|
|
"@types/uuid": "^10.0.0",
|
|
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
|
"@typescript-eslint/parser": "^6.0.0",
|
|
"eslint": "^8.45.0",
|
|
"jest": "^29.6.2",
|
|
"ts-jest": "^29.1.1",
|
|
"typescript": "^5.1.6"
|
|
},
|
|
"dependencies": {
|
|
"@aws-sdk/client-s3": "^3.427.0",
|
|
"@tensorflow-models/universal-sentence-encoder": "^1.3.3",
|
|
"@tensorflow/tfjs": "^4.22.0",
|
|
"@tensorflow/tfjs-backend-cpu": "^4.22.0",
|
|
"@tensorflow/tfjs-core": "^4.22.0",
|
|
"@tensorflow/tfjs-layers": "^4.22.0",
|
|
"commander": "^14.0.0",
|
|
"omelette": "^0.4.17",
|
|
"uuid": "^9.0.0"
|
|
},
|
|
"prettier": {
|
|
"arrowParens": "always",
|
|
"bracketSameLine": true,
|
|
"bracketSpacing": true,
|
|
"htmlWhitespaceSensitivity": "css",
|
|
"printWidth": 80,
|
|
"proseWrap": "preserve",
|
|
"semi": false,
|
|
"singleQuote": true,
|
|
"tabWidth": 2,
|
|
"trailingComma": "none",
|
|
"useTabs": false
|
|
},
|
|
"eslintConfig": {
|
|
"root": true,
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"plugin:@typescript-eslint/recommended"
|
|
],
|
|
"parser": "@typescript-eslint/parser",
|
|
"plugins": [
|
|
"@typescript-eslint"
|
|
],
|
|
"rules": {
|
|
"no-unused-vars": "off",
|
|
"@typescript-eslint/no-unused-vars": [
|
|
"warn",
|
|
{
|
|
"args": "after-used",
|
|
"argsIgnorePattern": "^_"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|