diff --git a/BRAINY_VS_BRAIN_CLOUD.md b/BRAINY_VS_BRAIN_CLOUD.md new file mode 100644 index 00000000..7b776242 --- /dev/null +++ b/BRAINY_VS_BRAIN_CLOUD.md @@ -0,0 +1,225 @@ +# 🧠 Brainy vs â˜ī¸ Brain Cloud - Clear Separation + +## Core Philosophy +**Brainy is FREE FOREVER. Brain Cloud is optional premium.** + +## 🧠 Brainy (100% Free Open Source) + +### What's Included (Everything You Need!) +✅ **Full Vector Database** +- HNSW indexing +- Semantic search +- Metadata filtering +- Graph relationships +- Batch operations +- All distance metrics + +✅ **Storage Options** +- FileSystem (Node.js) +- IndexedDB (Browser) +- S3 (with your AWS account) +- Memory +- Custom adapters + +✅ **All Core Features** +- Embeddings (local models) +- Augmentation pipeline +- Statistics & monitoring +- Import/Export +- CLI tools +- Full API + +### Code Example - Brainy Core +```javascript +// NO LICENSE NEEDED - JUST WORKS! +import { BrainyVectorDB } from '@brainy/vector-db' + +const brain = new BrainyVectorDB() +await brain.add('Hello world', { category: 'greeting' }) +const results = await brain.search('hi there') +// Full functionality, no limits, no license! +``` + +### What You CAN'T Do (Without Brain Cloud) +❌ Sync across devices +❌ Team collaboration +❌ Managed cloud hosting +❌ Enterprise connectors (Notion, Salesforce) +❌ Multi-agent coordination +❌ Automatic backups to cloud + +--- + +## â˜ī¸ Brain Cloud (Optional Premium Service) + +### What It Is +A **managed service** that adds cloud capabilities to Brainy. +Think of it like GitHub vs Git - Brainy is Git (free tool), Brain Cloud is GitHub (paid service). + +### Premium Features +🌟 **Cloud Sync** +- Your brain in the cloud +- Access from anywhere +- Automatic backups + +🌟 **Team Features** +- Share knowledge bases +- Real-time collaboration +- Access controls + +🌟 **Enterprise Connectors** +```javascript +// These require Brain Cloud subscription +import { NotionSync, SalesforceConnect } from '@soulcraft/brain-cloud' + +const notion = new NotionSync({ + apiKey: 'your-brain-cloud-key' // Premium only +}) +``` + +🌟 **AI Memory** +- Persistent across sessions +- Multi-agent coordination +- Context sharing + +### Code Example - Brain Cloud +```javascript +// Brain Cloud is an ADD-ON, not required for Brainy +import { BrainyVectorDB } from '@brainy/vector-db' // Free +import { CloudSync } from '@soulcraft/brain-cloud' // Premium + +const brain = new BrainyVectorDB() // Works without cloud! + +// Optional: Add cloud sync +const cloud = new CloudSync({ + apiKey: process.env.BRAIN_CLOUD_KEY // Only if you want cloud +}) +brain.enableCloud(cloud) // Optional enhancement +``` + +--- + +## File Organization + +### Core Brainy (This Repo) +``` +brainy/ +├── src/ +│ ├── brainyData.ts # Core (FREE) +│ ├── hnsw/ # Core (FREE) +│ ├── storage/ # Core (FREE) +│ ├── augmentations/ # Core (FREE) +│ └── cli/ +│ ├── basic.ts # Core commands (FREE) +│ └── cloud.ts # Cloud commands (points to Brain Cloud) +``` + +### Brain Cloud (Separate Package) +``` +@soulcraft/brain-cloud/ # NPM package (paid) +├── CloudSync.ts +├── NotionConnector.ts +├── SalesforceConnector.ts +└── AIMemory.ts +``` + +--- + +## CLI Commands + +### Free Commands (Core Brainy) +```bash +brainy init # Setup local database +brainy add # Add data +brainy search # Search +brainy export # Export data +brainy import # Import data +brainy stats # View statistics +``` + +### Premium Commands (Brain Cloud) +```bash +brainy cloud setup # Setup cloud sync (requires key) +brainy cloud sync # Sync with cloud +brainy cloud connect notion # Connect Notion (premium) +``` + +--- + +## Configuration + +### Brainy Core (No Config Needed!) +```javascript +// Just works - no environment variables, no config files +const brain = new BrainyVectorDB() +``` + +### Brain Cloud (Optional Config) +```javascript +// Only if using Brain Cloud features +const cloud = new CloudSync({ + apiKey: 'bc_xxxxx', // Get from soulcraft.com + region: 'us-east-1' +}) +``` + +--- + +## Documentation Structure + +### README.md Structure +```markdown +# Brainy - Free Vector Database + +## Quick Start (Free, No Setup) +[Simple examples that just work] + +## Core Features (All Free) +[Everything included in open source] + +## Brain Cloud (Optional Premium) +[Clearly marked as optional add-on] +``` + +--- + +## Migration Rules + +### ✅ DO +- Keep Brainy 100% functional without any keys +- Put Brain Cloud features in separate package +- Clearly mark premium features as optional +- Use "Brain Cloud" not "premium" or "paid" + +### ❌ DON'T +- Check for license in core Brainy +- Require environment variables for basic use +- Mix cloud features with core documentation +- Make it seem like license is needed + +--- + +## User Journey + +### New User (Free) +1. `npm install @brainy/vector-db` +2. Start coding immediately +3. Full functionality +4. Discovers Brain Cloud later (if needed) + +### Enterprise User (Paid) +1. Uses Brainy locally first +2. Decides they need cloud sync +3. Signs up for Brain Cloud +4. `npm install @soulcraft/brain-cloud` +5. Adds cloud features to existing code + +--- + +## Summary + +**Brainy = SQLite** (Free database) +**Brain Cloud = Supabase** (Managed service) + +Keep them separate. Brainy should work perfectly without Brain Cloud. +Brain Cloud should enhance, not gate, functionality. \ No newline at end of file diff --git a/CLI_AUGMENTATION_GUIDE.md b/CLI_AUGMENTATION_GUIDE.md index 4ddf1b66..d4c4cd98 100644 --- a/CLI_AUGMENTATION_GUIDE.md +++ b/CLI_AUGMENTATION_GUIDE.md @@ -26,7 +26,7 @@ brainy augment available # Shows what can be installed brainy augment add # Interactive mode brainy augment add neural-import # Built-in brainy augment add brainy-sentiment # Community (from npm) -brainy augment add ai-memory --premium # Premium (needs license) +brainy augment add ai-memory # Brain Cloud feature (optional) # Remove augmentations brainy augment remove sentiment-analyzer diff --git a/README.md b/README.md index 1050dd85..8127449a 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,22 @@ --- +## ✅ 100% Free & Open Source + +**Brainy is completely free. No license keys. No limits. No catch.** + +Every feature you see here works without any payment or registration: +- ✓ Full vector database +- ✓ Graph relationships +- ✓ Semantic search +- ✓ All storage adapters +- ✓ Complete API +- ✓ Forever free + +> đŸŒŠī¸ **Brain Cloud** is an optional add-on for teams who want cloud sync and enterprise connectors. + +--- + ## 🚀 What Can You Build? ### đŸ’Ŧ **AI Chat Apps** - That Actually Remember @@ -205,8 +221,8 @@ cortex.register(new Translator()) // Multi-language support - 📊 Data Visualizer - 🎨 Image Understanding -### đŸ’ŧ **Premium Augmentations** (@soulcraft/brain-cloud) -For teams that need AI memory and enterprise features: +### â˜ī¸ **Brain Cloud** (Optional Add-On) +🌟 **Brainy works perfectly without this!** Brain Cloud adds team features: ```javascript import { @@ -216,9 +232,9 @@ import { SalesforceConnect // CRM integration } from '@soulcraft/brain-cloud' -// Requires license key - get one at soulcraft.com +// Brain Cloud is a separate package (optional) const aiMemory = new AIMemory({ - licenseKey: process.env.BRAINY_LICENSE_KEY + apiKey: process.env.BRAIN_CLOUD_KEY // Only for cloud features }) cortex.register(aiMemory) // AI remembers everything diff --git a/bin/brainy.js b/bin/brainy.js index a588bb06..f32cd0f7 100755 --- a/bin/brainy.js +++ b/bin/brainy.js @@ -549,9 +549,12 @@ augment output: process.stdout }) - console.log(chalk.cyan('🧠 Brain Cloud Activation')) + console.log(chalk.cyan('â˜ī¸ Brain Cloud Activation (Optional Premium)')) console.log('') - console.log('Get your license at: ' + chalk.green('app.soulcraft.com')) + console.log(chalk.yellow('Note: Brainy core is 100% free and fully functional!')) + console.log('Brain Cloud adds optional team & sync features.') + console.log('') + console.log('Get Brain Cloud at: ' + chalk.green('app.soulcraft.com')) console.log('(14-day free trial available)') console.log('')