Initial commit: Brainy - Multi-Dimensional AI Database
Open source vector database with HNSW indexing, graph relationships, and metadata facets. Features CLI with professional augmentation registry integration for discovering extensions and capabilities.
This commit is contained in:
commit
f8c45f2d8d
448 changed files with 103294 additions and 0 deletions
31
dist/browserFramework.minimal.js
vendored
Normal file
31
dist/browserFramework.minimal.js
vendored
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
/**
|
||||
* Minimal Browser Framework Entry Point for Brainy
|
||||
* Core MIT open source functionality only - no enterprise features
|
||||
* Optimized for browser usage with all dependencies bundled
|
||||
*/
|
||||
import { BrainyData } from './brainyData.js';
|
||||
import { VerbType, NounType } from './types/graphTypes.js';
|
||||
/**
|
||||
* Create a BrainyData instance optimized for browser usage
|
||||
* Auto-detects environment and selects optimal storage and settings
|
||||
*/
|
||||
export async function createBrowserBrainyData(config = {}) {
|
||||
// BrainyData already has environment detection and will automatically:
|
||||
// - Use OPFS storage in browsers with fallback to Memory
|
||||
// - Use FileSystem storage in Node.js
|
||||
// - Request persistent storage when appropriate
|
||||
const browserConfig = {
|
||||
storage: {
|
||||
requestPersistentStorage: true // Request persistent storage for better performance
|
||||
},
|
||||
...config
|
||||
};
|
||||
const brainyData = new BrainyData(browserConfig);
|
||||
await brainyData.init();
|
||||
return brainyData;
|
||||
}
|
||||
// Re-export core types and classes for browser use
|
||||
export { VerbType, NounType, BrainyData };
|
||||
// Default export for easy importing
|
||||
export default createBrowserBrainyData;
|
||||
//# sourceMappingURL=browserFramework.minimal.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue