Brainy Documentation
The multi-dimensional AI database with Triple Intelligence — vector search, graph traversal, and metadata filtering in one unified API.
Quick Start
import { Brainy, NounType, VerbType } from '@soulcraft/brainy'
const brain = new Brainy()
await brain.init()
// Add entities — data is embedded for semantic search, metadata is indexed for filtering
const id = await brain.add({
data: 'Revolutionary AI Breakthrough',
type: NounType.Document,
metadata: { category: 'technology', rating: 4.8 }
})
// Search with Triple Intelligence
const results = await brain.find({
query: 'artificial intelligence', // Semantic search (on data)
where: { rating: { greaterThan: 4.0 } }, // Metadata filter
connected: { from: authorId, depth: 2 } // Graph traversal
})
Core Documentation
| Document |
Description |
| API Reference |
Complete API documentation — start here |
| Data Model |
Entity structure, data vs metadata, storage fields |
| Query Operators |
All BFO operators with examples and indexed/in-memory matrix |
| Find System |
Natural language find() and hybrid search details |
| Consistency Model |
The Db API guarantees — snapshot isolation, atomic transactions, time travel |
Architecture
Virtual Filesystem (VFS)
See vfs/ for the complete VFS documentation set.
Guides
| Document |
Description |
| Import Anything |
CSV, Excel, PDF, URL imports |
| Snapshots & Time Travel |
Backups, restore, what-if analysis, audit trails |
| Natural Language |
Query in plain English |
| Neural API |
AI-powered features |
| Enterprise for Everyone |
No limits, no tiers |
| Framework Integration |
React, Vue, Angular, Svelte |
Storage & Deployment
Plugins
| Document |
Description |
| Plugins |
Plugin system overview — providers, plugins config, brain.use() |
Performance & Scaling
Migration & Reference
Internal
License
Brainy is MIT licensed. See LICENSE for details.