🧠 Zero-Configuration AI Database with Triple Intelligence™ https://soulcraft.com
Find a file
David Snelling 045f53bc8a feat: automated release workflow with conventional commits
 Set up standard-version for automated releases
- Auto-generates changelogs from conventional commits
- Version bumping based on commit types
- Beautiful emoji-formatted changelog
- Integrated with npm scripts

🔧 Release Commands:
- npm run release (auto-detect version)
- npm run release:patch/minor/major (force version)
- npm run release:dry (preview changes)

📚 Added comprehensive CLAUDE.md workflow
- Step-by-step release process
- Conventional commit guidelines
- Emergency procedures for bad releases
- Quality checklist for releases

🎯 Benefits:
- Consistent release notes across all releases
- No more manual changelog maintenance
- Semantic versioning enforcement
- GitHub + npm integration ready
2025-08-27 12:19:32 -07:00
bin 🧠 Brainy 2.0.0 - Zero-Configuration AI Database with Triple Intelligence™ 2025-08-26 12:32:21 -07:00
docs feat: Universal Import with intelligent type matching (v2.1.0) 2025-08-27 12:14:05 -07:00
examples 🧠 Brainy 2.0.0 - Zero-Configuration AI Database with Triple Intelligence™ 2025-08-26 12:32:21 -07:00
models 🧠 Brainy 2.0.0 - Zero-Configuration AI Database with Triple Intelligence™ 2025-08-26 12:32:21 -07:00
models-cache/Xenova/all-MiniLM-L6-v2 🧠 Brainy 2.0.0 - Zero-Configuration AI Database with Triple Intelligence™ 2025-08-26 12:32:21 -07:00
scripts fix: use .cjs extension for check-patterns script 2025-08-27 10:00:56 -07:00
src feat: Universal Import with intelligent type matching (v2.1.0) 2025-08-27 12:14:05 -07:00
tests feat: Universal Import with intelligent type matching (v2.1.0) 2025-08-27 12:14:05 -07:00
.gitignore chore: Add .npmignore to exclude models from npm package 2025-08-26 13:37:44 -07:00
.npmignore chore: Add .npmignore to exclude models from npm package 2025-08-26 13:37:44 -07:00
.versionrc.json feat: automated release workflow with conventional commits 2025-08-27 12:19:32 -07:00
brainy.png 🧠 Brainy 2.0.0 - Zero-Configuration AI Database with Triple Intelligence™ 2025-08-26 12:32:21 -07:00
CHANGELOG.md 🧠 Brainy 2.0.0 - Zero-Configuration AI Database with Triple Intelligence™ 2025-08-26 12:32:21 -07:00
CONTRIBUTING.md 🧠 Brainy 2.0.0 - Zero-Configuration AI Database with Triple Intelligence™ 2025-08-26 12:32:21 -07:00
LICENSE 🧠 Brainy 2.0.0 - Zero-Configuration AI Database with Triple Intelligence™ 2025-08-26 12:32:21 -07:00
MIGRATION.md 🧠 Brainy 2.0.0 - Zero-Configuration AI Database with Triple Intelligence™ 2025-08-26 12:32:21 -07:00
package-lock.json feat: automated release workflow with conventional commits 2025-08-27 12:19:32 -07:00
package.json feat: automated release workflow with conventional commits 2025-08-27 12:19:32 -07:00
README.md feat: Universal Import with intelligent type matching (v2.1.0) 2025-08-27 12:14:05 -07:00
tsconfig.json 🧠 Brainy 2.0.0 - Zero-Configuration AI Database with Triple Intelligence™ 2025-08-26 12:32:21 -07:00
vitest.config.memory.ts 🧠 Brainy 2.0.0 - Zero-Configuration AI Database with Triple Intelligence™ 2025-08-26 12:32:21 -07:00
vitest.config.ts 🧠 Brainy 2.0.0 - Zero-Configuration AI Database with Triple Intelligence™ 2025-08-26 12:32:21 -07:00

Brainy

Brainy Logo

npm version npm downloads MIT License TypeScript

🧠 Brainy 2.0 - The Universal Knowledge Protocol™

World's first Triple Intelligence™ database—unifying vector similarity, graph relationships, and document filtering in one magical API. Model ANY data from ANY domain using 31 standardized noun types × 40 verb types.

Why Brainy Leads: We're the first to solve the impossible—combining three different database paradigms (vector, graph, document) into one unified query interface. This breakthrough enables us to be the Universal Knowledge Protocol where all tools, augmentations, and AI models speak the same language.

Build once, integrate everywhere. O(log n) performance, 3ms search latency, 24MB memory footprint.

🎉 What's New in 2.0

  • World's First Triple Intelligence™: Unified vector + graph + document in ONE query
  • Universal Knowledge Protocol: 31 nouns × 40 verbs standardize all knowledge
  • Infinite Expressiveness: Model ANY data with unlimited metadata
  • API Consolidation: 15+ methods → 2 clean APIs (search() and find())
  • Natural Language: Ask questions in plain English
  • Zero Configuration: Works instantly, no setup required
  • O(log n) Performance: Binary search on sorted indices
  • Perfect Interoperability: All tools and AI models speak the same language
  • Universal Compatibility: Node.js, Browser, Edge, Workers

Quick Start

npm install @soulcraft/brainy
import { BrainyData } from 'brainy'

const brain = new BrainyData()
await brain.init()

// Add entities (nouns) with automatic embedding
const jsId = await brain.addNoun("JavaScript is a programming language", { 
  type: "language", 
  year: 1995,
  paradigm: "multi-paradigm"
})

const nodeId = await brain.addNoun("Node.js runtime environment", {
  type: "runtime",
  year: 2009,
  platform: "server-side"
})

// Create relationships (verbs) between entities
await brain.addVerb(nodeId, jsId, "executes", {
  since: 2009,
  performance: "high"
})

// Natural language search with graph relationships
const results = await brain.find("programming languages used by server runtimes")

// Triple Intelligence: vector + metadata + relationships
const filtered = await brain.find({
  like: "JavaScript",                    // Vector similarity
  where: { type: "language" },           // Metadata filtering  
  connected: { from: nodeId, depth: 1 }  // Graph relationships
})

🚀 Key Features

World's First Triple Intelligence™ Engine

The breakthrough that enables the Universal Knowledge Protocol:

  • Vector Search: Semantic similarity with HNSW indexing
  • Graph Relationships: Navigate connected knowledge like Neo4j
  • Document Filtering: MongoDB-style queries with O(log n) performance
  • Unified in ONE API: No separate queries, no complex joins
  • First to solve this: Others do vector OR graph OR document—we do ALL

Universal Knowledge Protocol with Infinite Expressiveness

Enabled by Triple Intelligence, standardized for everyone:

  • 24 Noun Types × 40 Verb Types: 960 base combinations
  • ∞ Expressiveness: Unlimited metadata = model ANY data
  • One Language: All tools, augmentations, AI models speak the same types
  • Perfect Interoperability: Move data between any Brainy instance
  • No Schema Lock-in: Evolve without migrations

Natural Language Understanding

// Ask questions naturally
await brain.find("Show me recent React components with tests")
await brain.find("Popular JavaScript libraries similar to Vue")
await brain.find("Documentation about authentication from last month")

Zero Configuration Philosophy

  • No API keys required - Built-in embedding models
  • No external dependencies - Everything included
  • No complex setup - Works instantly
  • Smart defaults - Optimized out of the box

Production Performance

  • 3ms average search - Lightning fast queries
  • 24MB memory footprint - Efficient resource usage
  • Worker-based embeddings - Non-blocking operations
  • Automatic caching - Intelligent result caching

📚 Core API

search() - Vector Similarity

const results = await brain.search("machine learning", {
  limit: 10,                    // Number of results
  metadata: { type: "article" }, // Filter by metadata
  includeContent: true          // Include full content
})

find() - Natural Language Queries

// Simple natural language
const results = await brain.find("recent important documents")

// Structured query with Triple Intelligence
const results = await brain.find({
  like: "JavaScript",           // Vector similarity
  where: {                      // Metadata filters
    year: { greaterThan: 2020 },
    important: true
  },
  related: { to: "React" }      // Graph relationships
})

CRUD Operations

// Create entities (nouns)
const id = await brain.addNoun(data, metadata)

// Create relationships (verbs)
const verbId = await brain.addVerb(sourceId, targetId, "relationType", {
  strength: 0.9,
  bidirectional: false
})

// Read
const item = await brain.getNoun(id)
const verb = await brain.getVerb(verbId)

// Update
await brain.updateNoun(id, newData, newMetadata)
await brain.updateVerb(verbId, newMetadata)

// Delete
await brain.deleteNoun(id)
await brain.deleteVerb(verbId)

// Bulk operations
await brain.import(arrayOfData)
const exported = await brain.export({ format: 'json' })

🎯 Use Cases

Knowledge Management with Relationships

// Store documentation with rich relationships
const apiGuide = await brain.addNoun("REST API Guide", {
  title: "API Guide",
  category: "documentation",
  version: "2.0"
})

const author = await brain.addNoun("Jane Developer", {
  type: "person",
  role: "tech-lead"
})

const project = await brain.addNoun("E-commerce Platform", {
  type: "project",
  status: "active"
})

// Create knowledge graph
await brain.addVerb(author, apiGuide, "authored", { 
  date: "2024-03-15" 
})
await brain.addVerb(apiGuide, project, "documents", { 
  coverage: "complete" 
})

// Query the knowledge graph naturally
const docs = await brain.find("documentation authored by tech leads for active projects")
// Find similar content
const similar = await brain.search(existingContent, {
  limit: 5,
  threshold: 0.8
})

AI Memory Layer with Context

// Store conversation with relationships
const userId = await brain.addNoun("User 123", {
  type: "user",
  tier: "premium"
})

const messageId = await brain.addNoun(userMessage, {
  type: "message",
  timestamp: Date.now(),
  session: "abc"
})

const topicId = await brain.addNoun("Product Support", {
  type: "topic",
  category: "support"
})

// Link conversation elements
await brain.addVerb(userId, messageId, "sent")
await brain.addVerb(messageId, topicId, "about")

// Retrieve context with relationships
const context = await brain.find({
  where: { type: "message" },
  connected: { from: userId, type: "sent" },
  like: "previous product issues"
})

💾 Storage Options

Brainy supports multiple storage backends:

// Memory (default for testing)
const brain = new BrainyData({ 
  storage: { type: 'memory' } 
})

// FileSystem (Node.js)
const brain = new BrainyData({ 
  storage: { 
    type: 'filesystem',
    path: './data'
  } 
})

// Browser Storage (OPFS)
const brain = new BrainyData({ 
  storage: { type: 'opfs' } 
})

// S3 Compatible (Production)
const brain = new BrainyData({ 
  storage: { 
    type: 's3',
    bucket: 'my-bucket',
    region: 'us-east-1'
  } 
})

🛠️ CLI

Brainy includes a powerful CLI for testing and management:

# Install globally
npm install -g brainy

# Add data
brainy add "JavaScript is awesome" --metadata '{"type":"opinion"}'

# Search
brainy search "programming"

# Natural language find
brainy find "awesome programming languages"

# Interactive mode
brainy chat

# Export data
brainy export --format json > backup.json

🔌 Augmentations

Extend Brainy with powerful augmentations:

# List available augmentations
brainy augment list

# Install an augmentation
brainy augment install explorer

# Connect to Brain Cloud
brainy cloud setup

🏢 Enterprise Features - Included for Everyone

Brainy includes enterprise-grade capabilities at no extra cost. No premium tiers, no paywalls.

  • Scales to 10M+ items with consistent 3ms search latency
  • Write-Ahead Logging (WAL) for zero data loss durability
  • Distributed architecture with sharding and replication
  • Read/write separation for horizontal scaling
  • Connection pooling and request deduplication
  • Built-in monitoring with metrics and health checks
  • Production ready with circuit breakers and backpressure

📖 Read the full Enterprise Features guide →

📊 Benchmarks

Operation Performance Memory
Initialize 450ms 24MB
Add Item 12ms +0.1MB
Vector Search (1k items) 3ms -
Metadata Filter (10k items) 0.8ms -
Natural Language Query 15ms -
Bulk Import (1000 items) 2.3s +8MB
Production Scale (10M items) 5.8ms 12GB

🔄 Migration from 1.x

See MIGRATION.md for detailed upgrade instructions.

Key changes:

  • Search methods consolidated into search() and find()
  • Result format now includes full objects with metadata
  • New natural language capabilities

🤝 Contributing

We welcome contributions! See CONTRIBUTING.md for guidelines.

🧠 The Universal Knowledge Protocol Explained

How We Achieved The Impossible

Triple Intelligence™ makes us the world's first to unify three database paradigms:

  1. Vector databases (Pinecone, Weaviate) - semantic similarity
  2. Graph databases (Neo4j, ArangoDB) - relationships
  3. Document databases (MongoDB, Elasticsearch) - metadata filtering

One API to rule them all. Others make you choose. We unified them.

The Math of Infinite Expressiveness

24 Nouns × 40 Verbs × ∞ Metadata × Triple Intelligence = Universal Protocol
  • 960 base combinations from standardized types
  • ∞ domain specificity via unlimited metadata
  • ∞ relationship depth via graph traversal
  • = Model ANYTHING: From quantum physics to social networks

Why This Changes Everything

Like HTTP for the web, Brainy for knowledge:

  • All augmentations compose perfectly - same noun-verb language
  • All AI models share knowledge - GPT, Claude, Llama all understand
  • All tools integrate seamlessly - no translation layers
  • All data flows freely - perfect portability

The Vision: One protocol. All knowledge. Every tool. Any AI.

Proven across industries: Healthcare, Finance, Manufacturing, Education, Legal, Retail, Government, and beyond.

→ See the Mathematical Proof & Full Taxonomy

📖 Documentation

🏢 Enterprise & Cloud

Brain Cloud - Managed Brainy with team sync, persistent memory, and enterprise connectors.

# Get started with free trial
brainy cloud setup

Visit soulcraft.com for more information.

📄 License

MIT © Brainy Contributors


Built with ❤️ by the Brainy community
Zero-Configuration AI Database with Triple Intelligence™