@soulcraft/brainy 0.11.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -43
- package/dist/brainy.js +776 -252
- package/dist/brainy.min.js +765 -749
- package/dist/brainyData.d.ts +29 -0
- package/dist/patched-platform-node.d.ts +17 -0
- package/dist/setup.d.ts +16 -0
- package/dist/storage/fileSystemStorage.d.ts.map +1 -1
- package/dist/unified.d.ts +5 -3
- package/dist/unified.js +775 -253
- package/dist/unified.min.js +765 -749
- package/dist/utils/distance.d.ts.map +1 -1
- package/dist/utils/embedding.d.ts +25 -4
- package/dist/utils/embedding.d.ts.map +1 -1
- package/dist/utils/environment.d.ts.map +1 -1
- package/dist/utils/textEncoding.d.ts +13 -20
- package/dist/utils/textEncoding.d.ts.map +1 -1
- package/dist/utils/version.d.ts +1 -1
- package/package.json +30 -11
- package/dist/augmentations/huggingfaceActivation.d.ts +0 -57
- package/dist/augmentations/huggingfaceActivation.d.ts.map +0 -1
- package/dist/augmentations/huggingfaceActivationRegistration.d.ts +0 -6
- package/dist/augmentations/huggingfaceActivationRegistration.d.ts.map +0 -1
- package/dist/cli.d.ts +0 -7
- package/dist/utils/distance-js.d.ts +0 -38
- package/dist/utils/distance-js.d.ts.map +0 -1
- package/dist/utils/distance-wasm.d.ts +0 -36
- package/dist/utils/distance-wasm.d.ts.map +0 -1
- package/dist/utils/huggingfaceEmbedding.d.ts +0 -53
- package/dist/utils/huggingfaceEmbedding.d.ts.map +0 -1
- package/dist/utils/tensorflowBridge.d.ts +0 -14
- package/dist/utils/tensorflowBridge.d.ts.map +0 -1
- package/dist/utils/textEncoderPolyfill.d.ts +0 -6
- package/dist/utils/textEncoderPolyfill.d.ts.map +0 -1
- package/dist/utils/universalDebug.d.ts +0 -21
- package/dist/utils/universalDebug.d.ts.map +0 -1
- package/dist/utils/universalUuid.d.ts +0 -26
- package/dist/utils/universalUuid.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
[](https://nodejs.org/)
|
|
7
7
|
[](https://www.typescriptlang.org/)
|
|
8
8
|
[](CONTRIBUTING.md)
|
|
9
|
-
[](https://www.npmjs.com/package/@soulcraft/brainy)
|
|
10
10
|
|
|
11
11
|
[//]: # ([](https://github.com/sodal-project/cartographer))
|
|
12
12
|
|
|
@@ -933,8 +933,7 @@ the augmentation pipeline as tools:
|
|
|
933
933
|
Environment compatibility:
|
|
934
934
|
|
|
935
935
|
- **BrainyMCPAdapter** and **MCPAugmentationToolset** can run in any environment (browser, Node.js, server)
|
|
936
|
-
- **BrainyMCPService** core functionality works in any environment
|
|
937
|
-
cloud-wrapper project
|
|
936
|
+
- **BrainyMCPService** core functionality works in any environment
|
|
938
937
|
|
|
939
938
|
For detailed documentation and usage examples, see the [MCP documentation](src/mcp/README.md).
|
|
940
939
|
|
|
@@ -984,46 +983,6 @@ Works in all modern browsers:
|
|
|
984
983
|
|
|
985
984
|
For browsers without OPFS support, falls back to in-memory storage.
|
|
986
985
|
|
|
987
|
-
## Cloud Deployment
|
|
988
|
-
|
|
989
|
-
Brainy can be deployed as a standalone web service on various cloud platforms using the included cloud wrapper:
|
|
990
|
-
|
|
991
|
-
- **AWS Lambda and API Gateway**: Deploy as a serverless function with API Gateway
|
|
992
|
-
- **Google Cloud Run**: Deploy as a containerized service
|
|
993
|
-
- **Cloudflare Workers**: Deploy as a serverless function on the edge
|
|
994
|
-
|
|
995
|
-
The cloud wrapper provides both RESTful and WebSocket APIs for all Brainy operations, enabling both request-response and
|
|
996
|
-
real-time communication patterns. It supports multiple storage backends and can be configured via environment variables.
|
|
997
|
-
|
|
998
|
-
Key features of the cloud wrapper:
|
|
999
|
-
|
|
1000
|
-
- RESTful API for standard CRUD operations
|
|
1001
|
-
- WebSocket API for real-time updates and subscriptions
|
|
1002
|
-
- Model Control Protocol (MCP) service for external model access
|
|
1003
|
-
- Support for multiple storage backends (Memory, FileSystem, S3)
|
|
1004
|
-
- Configurable via environment variables
|
|
1005
|
-
- Deployment scripts for AWS, Google Cloud, and Cloudflare
|
|
1006
|
-
|
|
1007
|
-
### Deploying to the Cloud
|
|
1008
|
-
|
|
1009
|
-
You can deploy the cloud wrapper to various cloud platforms using the following npm scripts from the root directory:
|
|
1010
|
-
|
|
1011
|
-
```bash
|
|
1012
|
-
# Deploy to AWS Lambda and API Gateway
|
|
1013
|
-
npm run deploy:cloud:aws
|
|
1014
|
-
|
|
1015
|
-
# Deploy to Google Cloud Run
|
|
1016
|
-
npm run deploy:cloud:gcp
|
|
1017
|
-
|
|
1018
|
-
# Deploy to Cloudflare Workers
|
|
1019
|
-
npm run deploy:cloud:cloudflare
|
|
1020
|
-
|
|
1021
|
-
# Show available deployment options
|
|
1022
|
-
npm run deploy:cloud
|
|
1023
|
-
```
|
|
1024
|
-
|
|
1025
|
-
Before deploying, make sure to configure the appropriate environment variables in the `cloud-wrapper/.env` file. See
|
|
1026
|
-
the [Cloud Wrapper README](cloud-wrapper/README.md) for detailed configuration instructions and API documentation.
|
|
1027
986
|
|
|
1028
987
|
## Related Projects
|
|
1029
988
|
|