• v2.1.0 24b506b08c

    dpsifr 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

    🎯 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.0

    The Universal Knowledge Protocol™ - 31 nouns × 40 verbs = infinite expressiveness! 🌟

    Downloads