Vector similarity • Graph relationships • Metadata facets • AI context
Open source multi-dimensional database for AI applications.
One database, infinite dimensions.
// Install Multi-Dimensional AI Database
import { BrainyDB } from '@soulcraft/brainy'
// Initialize Multi-Dimensional AI Database
const db = new BrainyDB({ storage: 'opfs' })
await db.init()
// Add data with vector embeddings + metadata facets + graph relationships
await db.add("Tesla revolutionizes electric vehicles with innovative battery technology", {
company: "Tesla",
industry: "automotive",
technology: "battery",
sentiment: "positive"
})
// Multi-dimensional search across vector, graph, and facets
const results = await db.search("innovative car companies", {
// Facet filtering (metadata dimension)
filter: { industry: "automotive" },
// Graph traversal (relationship dimension)
verbs: ["develops", "partners_with"],
depth: 2,
// Vector similarity happens automatically
limit: 10
})
// AI chat with multi-dimensional context
const response = await db.chat("What innovations are happening in automotive?")
// AI understands across all dimensions:
// • Vector: semantic meaning of "innovations"
// • Graph: relationships between companies and technologies
// • Facets: industry and sentiment filters
// • Context: your specific data and conversation history
Multi-Dimensional Intelligence: Vector dimension for semantic similarity • Graph dimension for relationship patterns • Facet dimension for metadata organization • AI dimension for natural language understanding
Brainy automatically adapts to your environment. Same API whether you're in a browser using OPFS, Node.js with filesystem, serverless with S3, or enterprise with cloud storage. Scale from prototype to production without changing a line of code.
The only multi-dimensional AI database that combines vector, graph, metadata, and AI context in one simple API
Semantic understanding through embeddings. Find similar content by meaning, not just keywords. Perfect for AI context retrieval.
Relationship traversal and connections between data points. Build knowledge graphs that understand how concepts relate.
Metadata filtering and organization. Structure your data with categories, tags, and attributes for precise queries.
Natural language queries and insights. Chat with your data and get intelligent responses powered by multi-dimensional context.
All dimensions work offline by default. Fast, private, and secure. Add cloud sync only when you need collaborative intelligence.
Search across all dimensions simultaneously. Find by meaning, relationships, metadata, and context in a single powerful query.
Production-ready with blazing fast multi-dimensional queries
Perfect memory across conversations. Vector search for context, graph for relationships, metadata for organization.
Beyond keywords to meaning. Combine vector similarity with metadata filters and relationship traversal.
Smart suggestions using vectors for similarity, graphs for patterns, and facets for personalization.
Connect ideas and entities. Build semantic networks with automatic relationship extraction and AI insights.
Visual search with context. Image embeddings plus metadata tags and relationship mapping.
Audio fingerprints meet social graphs. Find similar tracks, discover through patterns, filter by genre.
Pattern matching across symptoms and research. Connect patient data with medical knowledge graphs.
Real-time anomaly detection. Transaction graphs, behavioral vectors, and pattern recognition.
Shared intelligence across teams. Sync knowledge graphs, share context, collaborate on insights.
One Query. Three Paradigms. Infinite Possibilities.
Now that you've seen what's possible, here's how to build it with actual working CLI commands
$ npm install @soulcraft/brainy
$ npm run brainy:init
✓ Initialized local storage
✓ Created default configuration
✓ Ready to store memories!
$ npm run dev
> Starting application with Brainy...
# Initialize Multi-Dimensional Database
npx brainy init --storage filesystem
# Add data across multiple dimensions (vector, graph, facets)
npx brainy add "Customer feedback about product quality" \
--metadata '{"category":"feedback", "sentiment":"positive", "priority":"high"}'
# Multi-dimensional search across vector, graph, and facets
npx brainy search "product issues" \
--filter '{"category":"feedback", "priority":"high"}' \
--verbs "relates_to,caused_by" \
--depth 2
# AI-powered chat with multi-dimensional context
npx brainy chat "What are the main product quality concerns?"
# Connect to Brain Cloud for AI memory
npx brainy connect
npx brainy cloud --status your-customer-id
Import any data and watch Brainy's AI automatically extract entities, relationships, and insights
// AI-powered Neural Import - Brainy figures out the rest
import { NeuralImport } from '@soulcraft/brainy/cortex'
const neuralImport = new NeuralImport(db)
await neuralImport.neuralImport('./customer-feedback.csv')
// ✓ Automatically extracts 20+ entity types
// ✓ Generates embeddings for semantic search
// ✓ Builds knowledge graph connections
// ✓ Smart confidence scoring
// Import CSV, JSON, or YAML with AI understanding
await neuralImport.neuralImport('./data.json', {
confidenceThreshold: 0.7, // FREE AI extraction
autoApply: true // Auto-add to database
})
// Now query your data with natural language
const insights = await db.chat("What patterns exist in our customer feedback?")
CSV, JSON, YAML with AI extraction
Entities, topics, and relationships extracted
Query your data conversationally
100% Free • No API keys required • Works offline • Your data stays private
Take your local Brainy database to the cloud for team collaboration and cross-device sync
Brainy works 100% offline and free forever. When you're ready to collaborate or sync across devices, Brain Cloud provides seamless augmentation without changing your code.
# Enable cloud sync with one command
$ npx brainy connect
# Your local data syncs automatically
✓ Connected to Brain Cloud
✓ Syncing 1,247 memories
✓ Team workspace ready
# Same API, now with superpowers
await db.search("insights from team", {
source: "cloud" // Access shared knowledge
})
Join thousands of developers building multi-dimensional AI applications
Installation: npm install @soulcraft/brainy
Help us keep Brainy free and open source forever
Brain Cloud is our enterprise-grade AI memory infrastructure. We're committed to helping businesses build persistent AI systems that remember everything. Your sponsorship helps us advance the future of AI memory and build new features for the community.
Full-time maintainers & new features
Tutorials, examples, and guides
Support, events, and resources
All sponsors get recognition in our README, priority support, and input on the roadmap.