2025-06-24 11:41:30 -07:00
{
"name" : "@soulcraft/brainy" ,
2025-07-11 12:15:28 -07:00
"version" : "0.11.0" ,
2025-06-24 11:41:30 -07:00
"description" : "A vector graph database using HNSW indexing with Origin Private File System storage" ,
"main" : "dist/unified.js" ,
"module" : "dist/unified.js" ,
"types" : "dist/unified.d.ts" ,
"type" : "module" ,
"sideEffects" : false ,
"exports" : {
"." : {
"import" : "./dist/unified.js" ,
"types" : "./dist/unified.d.ts"
} ,
"./min" : {
"import" : "./dist/unified.min.js"
} ,
"./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"
2025-07-11 11:11:56 -07:00
} ,
"./utils/textEncoding" : {
"import" : "./dist/utils/textEncoding.js" ,
"types" : "./dist/utils/textEncoding.d.ts"
} ,
"./dist/utils/textEncoding.js" : {
"import" : "./dist/utils/textEncoding.js" ,
"types" : "./dist/utils/textEncoding.d.ts"
2025-06-24 11:41:30 -07:00
}
} ,
"engines" : {
2025-07-11 11:11:56 -07:00
"node" : ">=24.4.0"
2025-06-24 11:41:30 -07:00
} ,
"scripts" : {
"prebuild" : "node scripts/generate-version.js" ,
2025-07-11 11:11:56 -07:00
"build" : "BUILD_TYPE=unified rollup -c rollup.config.js" ,
2025-06-24 11:41:30 -07:00
"build:browser" : "BUILD_TYPE=browser rollup -c rollup.config.js" ,
2025-07-02 16:33:30 -07:00
"build:cli" : "cd cli-package && npm run build" ,
2025-06-24 11:41:30 -07:00
"start" : "node dist/unified.js" ,
"demo" : "npm run build && npm run build:browser && npx http-server -o /index.html" ,
"version" : "node scripts/generate-version.js" ,
"version:patch" : "npm version patch" ,
"version:minor" : "npm version minor" ,
"version:major" : "npm version major" ,
2025-06-30 09:51:53 -07:00
"lint" : "eslint --ext .ts,.js src/" ,
"lint:fix" : "eslint --ext .ts,.js src/ --fix" ,
"format" : "prettier --write \"src/**/*.{ts,js}\"" ,
2025-07-07 10:19:04 -07:00
"check:format" : "prettier --check \"src/**/*.{ts,js}\"" ,
"check:style" : "node scripts/check-code-style.js" ,
2025-07-02 11:32:06 -07:00
"prepare" : "npm run build" ,
2025-07-04 12:29:38 -07:00
"deploy" : "npm run build && npm publish && node scripts/create-github-release.js" ,
2025-07-04 12:38:00 -07:00
"deploy:cli" : "node scripts/generate-version.js && cd cli-package && npm run build && npm publish" ,
2025-06-24 11:41:30 -07:00
"deploy:cloud:aws" : "cd cloud-wrapper && npm run build && npm run deploy:aws" ,
"deploy:cloud:gcp" : "cd cloud-wrapper && npm run build && npm run deploy:gcp" ,
"deploy:cloud:cloudflare" : "cd cloud-wrapper && npm run build && npm run deploy:cloudflare" ,
"deploy:cloud" : "echo 'Please use one of the following commands to deploy to a specific cloud provider:' && echo ' npm run deploy:cloud:aws' && echo ' npm run deploy:cloud:gcp' && echo ' npm run deploy:cloud:cloudflare'" ,
2025-06-30 13:21:15 -07:00
"postinstall" : "echo 'Note: If you encounter dependency conflicts with TensorFlow.js packages, please use: npm install --legacy-peer-deps'" ,
2025-07-02 12:54:50 -07:00
"dry-run" : "npm pack --dry-run" ,
2025-07-07 10:19:04 -07:00
"test:cli" : "node scripts/test-cli-locally.js" ,
2025-07-11 11:11:56 -07:00
"test:tensorflow" : "node test-tensorflow-textencoder.js" ,
"test:all" : "node scripts/test-all-environments.js" ,
"test" : "npm run test:all"
2025-06-24 11:41:30 -07:00
} ,
"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" : "public"
} ,
"homepage" : "https://github.com/soulcraft-research/brainy" ,
"bugs" : {
"url" : "https://github.com/soulcraft-research/brainy/issues"
} ,
"repository" : {
"type" : "git" ,
2025-07-02 16:27:53 -07:00
"url" : "git+https://github.com/soulcraft-research/brainy.git"
2025-06-24 11:41:30 -07:00
} ,
"files" : [
2025-07-02 12:28:00 -07:00
"dist/unified.js" ,
"dist/unified.min.js" ,
"dist/brainy.js" ,
"dist/brainy.min.js" ,
2025-06-24 11:41:30 -07:00
"dist/**/*.d.ts" ,
"dist/types/" ,
2025-07-02 12:28:00 -07:00
"dist/augmentations/" ,
"dist/examples/" ,
"dist/hnsw/" ,
"dist/mcp/" ,
"dist/storage/" ,
"dist/utils/" ,
2025-06-24 11:41:30 -07:00
"LICENSE" ,
"README.md" ,
2025-07-02 10:20:58 -07:00
"brainy.png"
2025-06-24 11:41:30 -07:00
] ,
"devDependencies" : {
"@rollup/plugin-commonjs" : "^25.0.7" ,
"@rollup/plugin-json" : "^6.1.0" ,
"@rollup/plugin-node-resolve" : "^15.2.3" ,
"@rollup/plugin-replace" : "^5.0.5" ,
"@rollup/plugin-typescript" : "^11.1.6" ,
2025-07-04 12:19:48 -07:00
"@types/node" : "^20.11.30" ,
2025-06-24 11:41:30 -07:00
"@types/uuid" : "^10.0.0" ,
2025-07-04 12:19:48 -07:00
"@typescript-eslint/eslint-plugin" : "^7.4.0" ,
"@typescript-eslint/parser" : "^7.4.0" ,
"eslint" : "^8.57.0" ,
2025-07-04 14:42:33 -07:00
"puppeteer" : "^22.5.0" ,
2025-07-04 12:19:48 -07:00
"rollup" : "^4.13.0" ,
2025-06-24 11:41:30 -07:00
"rollup-plugin-terser" : "^7.0.2" ,
2025-07-04 12:19:48 -07:00
"tslib" : "^2.6.2" ,
"typescript" : "^5.4.5"
2025-06-24 11:41:30 -07:00
} ,
"dependencies" : {
2025-07-04 12:19:48 -07:00
"@aws-sdk/client-s3" : "^3.540.0" ,
2025-06-24 11:41:30 -07:00
"@tensorflow-models/universal-sentence-encoder" : "^1.3.3" ,
2025-06-27 14:06:59 -07:00
"@tensorflow/tfjs" : "^4.22.0" ,
2025-06-24 11:41:30 -07:00
"@tensorflow/tfjs-backend-cpu" : "^4.22.0" ,
2025-06-26 10:48:25 -07:00
"@tensorflow/tfjs-backend-webgl" : "^4.22.0" ,
2025-06-24 11:41:30 -07:00
"@tensorflow/tfjs-converter" : "^4.22.0" ,
"@tensorflow/tfjs-core" : "^4.22.0" ,
"buffer" : "^6.0.3" ,
2025-07-04 12:19:48 -07:00
"uuid" : "^9.0.1"
2025-06-24 11:41:30 -07:00
} ,
"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" : {
"@typescript-eslint/no-explicit-any" : "off" ,
"no-unused-vars" : "off" ,
"@typescript-eslint/no-unused-vars" : [
"warn" ,
{
"args" : "after-used" ,
"argsIgnorePattern" : "^_"
}
] ,
"semi" : "off" ,
"@typescript-eslint/semi" : [
"error" ,
"never"
] ,
"no-extra-semi" : "off"
}
}
}