-
released this
2025-08-27 21:14:05 +02:00 | 1018 commits to main since this release🧠 Brainy 2.1.0 - Universal Import Revolution
✨ What's New
🎯 ONE Universal Import Method
- brain.import() - ONE method handles everything automatically
- Auto-detects files, URLs, and raw data
- Supports JSON, CSV, YAML, and text formats
- Zero configuration required - it just works!
🧠 AI-Powered Type Detection
- Intelligent Type Matching using semantic embeddings
- Automatically detects 31 noun types (Person, Organization, Document, etc.)
- Recognizes 40 verb relationships (MemberOf, CreatedBy, Contains, etc.)
- Confidence scores for transparency and debugging
📦 Production-Ready Architecture
- ImportManager with lazy loading for zero overhead
- Proper CSV parsing with quote handling and escapes
- Basic YAML support for configuration files
- Full test coverage with unit tests
🚀 Examples
import { BrainyData } from '@soulcraft/brainy' const brain = new BrainyData() await brain.init() // ONE method for EVERYTHING: await brain.import(data) // Objects/arrays await brain.import('customers.csv') // Files (auto-detected) await brain.import('https://api..') // URLs (auto-fetched) // It ALWAYS knows what to do! ✨📚 Documentation
- Complete import guide: docs/guides/import-anything.md
- Examples for every format and use case
- Philosophy of simplicity and zero config
🎯 CLI Integration
The brainy import CLI command already uses the new universal import method automatically.
✅ Backward Compatibility
No breaking changes - all existing code continues to work exactly as before.
🏗️ Technical Details
- IntelligentTypeMatcher: Uses cosine similarity on embeddings
- Caching system for improved performance
- Error handling that continues on failures
- TypeScript support with full type definitions
Install:
npm install @soulcraft/brainy@2.1.0The Universal Knowledge Protocol™ - 31 nouns × 40 verbs = infinite expressiveness! 🌟
Downloads
-
Source code (ZIP)
1 download
-
Source code (TAR.GZ)
0 downloads