brainy/examples
2025-06-06 10:48:10 -07:00
..
browser-server-search feat: add browser-server search example with server search augmentations 2025-06-06 10:48:10 -07:00
buildTimeRegistration.js chore: remove examples/externalPlugins.js and pluginLoader.ts, update imports to .js 2025-05-29 09:52:30 -07:00
conduitAugmentationExample.js feat: add WebSocket and WebRTC conduit augmentations with examples 2025-06-06 08:49:25 -07:00
configurationTest.js feat: add examples for read-only mode, sequential pipeline, and configuration tests 2025-06-04 10:01:03 -07:00
dataInspectionExample.js feat: introduce CLI for Brainy and enhance type validation 2025-06-05 11:18:20 -07:00
demo.html feat: add external plugin loader and examples for Brainy 2025-05-28 15:39:14 -07:00
import-graphTypes.js docs: add import-graphTypes.js example file to demonstrate selective graphTypes imports 2025-05-28 10:19:26 -07:00
memoryAugmentationExample.js chore: remove Firestore-related implementations and example files 2025-06-02 17:03:53 -07:00
README.md feat: add browser-server search example with server search augmentations 2025-06-06 10:48:10 -07:00
readOnlyTest.js feat: add examples for read-only mode, sequential pipeline, and configuration tests 2025-06-04 10:01:03 -07:00
rollup.config.js chore: remove examples/externalPlugins.js and pluginLoader.ts, update imports to .js 2025-05-29 09:52:30 -07:00
sequentialPipelineExample.js feat: add examples for read-only mode, sequential pipeline, and configuration tests 2025-06-04 10:01:03 -07:00
serverSearchAugmentationExample.js feat: add browser-server search example with server search augmentations 2025-06-06 10:48:10 -07:00
webpack.config.js chore: remove examples/externalPlugins.js and pluginLoader.ts, update imports to .js 2025-05-29 09:52:30 -07:00

Brainy Examples

This directory contains examples demonstrating various features and use cases of the Brainy vector graph database.

Browser-Server Search Example

The browser-server-search example demonstrates how to use Brainy in a browser, call a server-hosted version for search, store the results locally, and then perform further searches against the local instance.

This approach allows you to:

  • Search a server-hosted Brainy instance from a browser
  • Store the search results in a local Brainy instance
  • Perform further searches against the local instance without needing to query the server again
  • Add data to both local and server instances

See the browser-server-search README for detailed instructions.

Other Examples

Augmentation Examples

Pipeline Examples

Demo

  • demo.html - A web demo showcasing Brainy's capabilities

Configuration Examples

Data Inspection

Running the Examples

Most JavaScript examples can be run using Node.js:

node examples/sequentialPipelineExample.js

For HTML examples, you can open them directly in a browser or serve them using a local HTTP server:

# Using a simple HTTP server
npx http-server

Then navigate to the appropriate URL in your browser (e.g., http://localhost:8080/examples/demo.html).

Creating Your Own Examples

Feel free to use these examples as a starting point for your own projects. You can copy and modify them to suit your needs.

If you create an example that might be useful to others, consider contributing it back to the Brainy project!