brainy/web-service-package/package.json
David Snelling 0c7e999a2f **test(web-service): add cloud storage integration tests and update package settings**
- **Cloud Storage Integration Testing**:
  - Added `cloud-storage.test.ts` to validate cloud storage configurations (AWS S3, Cloudflare R2, Google Cloud Storage) and local storage fallback behavior:
    - Includes tests for environment variable priority and configuration detection.
    - Ensures proper override with `FORCE_LOCAL_STORAGE` when specified.

- **Package Settings Updates**:
  - Introduced `web-service-package/package.json` with configurations for building, running, testing, and deployment:
    - Added NPM scripts for building (`npm run build`), development (`npm run dev`), and testing (`npm run test:cloud`).
    - Configured dependencies and devDependencies for web service functionality and cloud integration.

- **Purpose**:
  - This update ensures comprehensive cloud storage testing and provides structured project configurations for seamless development and deployment workflows.
2025-07-22 10:24:01 -07:00

78 lines
2 KiB
JSON

{
"name": "@soulcraft/brainy-web-service",
"version": "0.15.0",
"description": "Web service wrapper for the Brainy vector graph database - read-only search service",
"type": "module",
"main": "dist/server.js",
"bin": {
"brainy-server": "server-wrapper.js"
},
"files": [
"server-wrapper.js",
"README.md",
"dist/server.js",
"dist/server.js.map"
],
"scripts": {
"build": "rollup -c rollup.config.js",
"start": "node dist/server.js",
"dev": "node --loader ts-node/esm src/server.ts",
"prepare": "npm run build",
"test": "vitest run",
"test:watch": "vitest",
"test:cloud": "vitest run tests/cloud-storage.test.ts",
"test:service": "vitest run tests/service.test.ts"
},
"keywords": [
"vector-database",
"hnsw",
"web-service",
"rest-api",
"search-service",
"browser",
"graph-database"
],
"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",
"url": "git+https://github.com/soulcraft-research/brainy.git"
},
"dependencies": {
"@soulcraft/brainy": "^0.15.0",
"express": "^4.18.2",
"cors": "^2.8.5",
"helmet": "^7.1.0",
"express-rate-limit": "^7.1.5",
"express-validator": "^7.0.1",
"compression": "^1.7.4",
"@aws-sdk/client-s3": "^3.450.0"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
"@types/node": "^20.11.30",
"@types/express": "^4.17.21",
"@types/cors": "^2.8.17",
"@types/compression": "^1.7.5",
"rollup": "^4.13.0",
"@rollup/plugin-terser": "^0.4.4",
"typescript": "^5.4.5",
"ts-node": "^10.9.2",
"vitest": "^3.2.4",
"axios": "^1.6.0"
},
"engines": {
"node": ">=24.4.0"
}
}