open-brainy/src
David Snelling 8eaf9f67cb **feat: add browser-compatible build configuration and environment detection**
### Changes:
- Added `rollup.unified.js` for building a unified bundle with environment detection (Node.js, Browser, Serverless).
- Added `rollup_config.js` for browser-specific bundle configurations.
- Created `tsconfig.browser.json` for browser builds and `tsconfig.unified.json` for unified builds.
- Implemented custom Rollup plugins:
  - **`fixThisReferences`**: Resolves `this` reference issues in TensorFlow files.
  - **`nodeModuleShims`**: Provides empty shims for Node.js built-in modules in browser environments.
- Updated dependencies in `package-lock.json` to include Rollup plugins and updated `buffer` dependency for polyfills.
- Created `src/unified.ts` as the unified library entry point with dynamic environment detection.

### Purpose:
- Introduced a unified and browser-compatible build pipeline to ensure `Brainy` can seamlessly operate across multiple environments (Node.js, Browser, Serverless).
- Resolved compatibility issues with Node.js modules and specific library builds.
- Enhanced flexibility and usability for developers working in diverse runtime environments.
2025-06-19 14:59:42 -07:00
..
augmentations chore: update README.md and docs with Brainy logo and enhanced formatting 2025-06-11 08:49:30 -07:00
examples chore: remove examples/externalPlugins.js and pluginLoader.ts, update imports to .js 2025-05-29 09:52:30 -07:00
hnsw feat: add random graph generation and improve metadata vectorization 2025-06-05 14:04:29 -07:00
storage feat: add random graph generation and improve metadata vectorization 2025-06-05 14:04:29 -07:00
types feat: add WebSocket and WebRTC conduit augmentations with examples 2025-06-06 08:49:25 -07:00
utils feat: add simplified LLM commands and presets with detailed CLI support 2025-06-10 11:47:05 -07:00
augmentationPipeline.ts feat: implement SequentialPipeline with threading and WebSocket support 2025-06-04 10:01:46 -07:00
augmentationRegistry.ts chore: remove examples/externalPlugins.js and pluginLoader.ts, update imports to .js 2025-05-29 09:52:30 -07:00
augmentationRegistryLoader.ts chore: remove examples/externalPlugins.js and pluginLoader.ts, update imports to .js 2025-05-29 09:52:30 -07:00
brainyData.ts feat: implement remote server search capabilities with WebSocket support 2025-06-06 10:48:01 -07:00
cli.ts feat: add simplified LLM commands and presets with detailed CLI support 2025-06-10 11:47:05 -07:00
coreTypes.ts feat: introduce CLI for Brainy and enhance type validation 2025-06-05 11:18:20 -07:00
index.ts **feat: add browser-compatible build configuration and environment detection** 2025-06-19 14:59:42 -07:00
sequentialPipeline.ts chore: update Node.js requirement to 23.11.0 and optimize pipelines and utilities 2025-06-05 14:51:21 -07:00
unified.ts **feat: add browser-compatible build configuration and environment detection** 2025-06-19 14:59:42 -07:00