UNPKG

claude-flow-multilang

Version:

Revolutionary multilingual AI orchestration framework with cultural awareness and DDD architecture

335 lines (261 loc) โ€ข 11.7 kB
# ๐ŸŒŠ Claude Flow Multilang v3.0.0: Revolutionary Multilingual AI Orchestration Platform <div align="center"> [![๐ŸŒŸ Star on GitHub](https://img.shields.io/github/stars/chatman-media/claude-flow-multilang?style=for-the-badge&logo=github&color=gold)](https://github.com/chatman-media/claude-flow-multilang) [![๐Ÿ“ฆ Latest Release](https://img.shields.io/npm/v/claude-flow-multilang?style=for-the-badge&logo=npm&color=orange&label=v3.0.0-multilang)](https://www.npmjs.com/package/claude-flow-multilang) [![โšก Claude Code](https://img.shields.io/badge/Claude%20Code-Optimized-green?style=for-the-badge&logo=anthropic)](https://github.com/chatman-media/claude-flow-multilang) [![๐ŸŒ 14 Languages](https://img.shields.io/badge/Languages-14%20Native-blue?style=for-the-badge&logo=translate)](https://github.com/chatman-media/claude-flow-multilang) [![๐Ÿ—๏ธ DDD](https://img.shields.io/badge/DDD-Integrated-purple?style=for-the-badge&logo=architecture)](https://github.com/chatman-media/claude-flow-multilang) [![๐Ÿง  Neural](https://img.shields.io/badge/Neural-87%20MCP%20Tools-cyan?style=for-the-badge&logo=tensorflow)](https://github.com/chatman-media/claude-flow-multilang) [![๐Ÿ›ก๏ธ MIT License](https://img.shields.io/badge/License-MIT-yellow?style=for-the-badge&logo=opensourceinitiative)](https://opensource.org/licenses/MIT) </div> --- ## ๐ŸŒŸ **What's New in v3.0.0 Multilang** **Claude Flow Multilang** is a complete transformation that breaks language barriers in AI development. Built on the powerful v2.0 foundation, v3.0 adds revolutionary multilingual capabilities and Domain-Driven Design architecture. ### ๐ŸŽฏ **Revolutionary New Features** - **๐ŸŒ 14 Native Languages**: EN, RU, ZH-CN, ZH-TW, JA, KO, DE, FR, ES, PT, TR, TH, IT, HI - **๐Ÿค– Polyglot AI Agents**: Process commands in any supported language - **๐Ÿ—๏ธ Complete DDD Architecture**: Bounded contexts, aggregates, domain events, CQRS - **๐ŸŽญ Cultural Context Awareness**: Business etiquette and formality levels per locale - **๐Ÿ”„ Real-time Translation**: Automatic documentation and code synchronization - **๐Ÿ› ๏ธ DDD-SPARC CLI**: New `ddd-sparc` tool for domain-driven development - **๐Ÿ“Š 7 Specialized DDD Agents**: domain-expert, aggregate-designer, event-sourcing-specialist, etc. ### ๐Ÿš€ **Core Features (Enhanced from v2.0)** - **๐Ÿ Hive-Mind Intelligence**: Queen-led AI coordination with multilingual support - **๐Ÿง  Neural Networks**: 27+ cognitive models with cultural adaptation - **๐Ÿ”ง 87+ MCP Tools**: Comprehensive toolkit with polyglot capabilities - **๐Ÿ’พ SQLite Memory System**: Persistent storage with language indexing - **๐Ÿช Advanced Hooks System**: Culturally-aware automated workflows - **๐Ÿ“Š GitHub Integration**: Repository management with multilingual documentation - **โšก Performance**: 84.8% SWE-Bench solve rate, 2.8-4.4x speed improvement > ๐Ÿ”ฅ **Break Language Barriers**: Build enterprise applications that work seamlessly across 14 languages with cultural awareness ## โšก **Quick Start - Try Multilingual Features** ### ๐Ÿ“‹ **Prerequisites** - **Node.js 20+** (LTS recommended) - **npm 9+** or pnpm (recommended for Windows) - **Claude Code** (optional but recommended) ### ๐ŸŽฏ **Installation Options** ```bash # Option 1: Install globally (recommended) npm install -g claude-flow-multilang@latest # Option 2: Use with npx (no installation) npx claude-flow-multilang@latest init # Option 3: Install with pnpm (best for Windows) pnpm install -g claude-flow-multilang@latest ``` ### ๐ŸŒ **Multilingual Quick Start** ```bash # 1. Initialize with your preferred language npx claude-flow-multilang@latest init --language ru --ddd # 2. Create a bounded context in Chinese npx ddd-sparc context create "็”ตๅญๅ•†ๅŠก" --language zh-cn # 3. Add aggregate in Japanese npx ddd-sparc aggregate add ๆณจๆ–‡ --context ๆณจๆ–‡็ฎก็† --language ja # 4. Spawn multilingual swarm npx claude-flow-multilang@latest swarm init --languages en,ru,zh-cn,ja ``` ### ๐Ÿ—๏ธ **DDD Development Example** ```bash # Use the new DDD-SPARC CLI npx ddd-sparc init "MyProject" --languages en,de,fr # Create bounded contexts npx ddd-sparc context create "ordering" --language en npx ddd-sparc context create "Bestellung" --language de npx ddd-sparc context create "commande" --language fr # Generate multilingual code npx ddd-sparc generate --all --multilingual ``` ## ๐ŸŽฏ **Feature Comparison** | Feature | Claude Flow v2.0 | Claude Flow Multilang v3.0 | |---------|-----------------|---------------------------| | **Languages** | English only | 14 native languages | | **AI Agents** | Standard swarm | Polyglot agents with cultural awareness | | **Architecture** | Basic patterns | Full DDD with bounded contexts | | **Commands** | English only | Native language commands | | **Documentation** | Single language | Auto-synchronized across languages | | **Business Rules** | Generic | Culturally adapted per region | | **CLI Tools** | `claude-flow` | `claude-flow` + `ddd-sparc` | ## ๐ŸŒ **Supported Languages** | Language | Code | Region | Script | |----------|------|--------|---------| | English | EN | International | Latin | | Russian | RU | Russia, CIS | Cyrillic | | Chinese Simplified | ZH-CN | Mainland China | Simplified Han | | Chinese Traditional | ZH-TW | Taiwan, HK | Traditional Han | | Japanese | JA | Japan | Kanji/Kana | | Korean | KO | Korea | Hangul | | German | DE | DACH | Latin | | French | FR | France, Quebec | Latin | | Spanish | ES | Spain, LATAM | Latin | | Portuguese | PT | Portugal, Brazil | Latin | | Turkish | TR | Turkey | Latin | | Thai | TH | Thailand | Thai | | Italian | IT | Italy | Latin | | Hindi | HI | India | Devanagari | ## ๐Ÿ—๏ธ **Domain-Driven Design Features** ### **Complete DDD Implementation** - Bounded Contexts with language isolation - Aggregates with multilingual invariants - Domain Events with automatic translation - Value Objects and Entities - Repository Pattern with caching - CQRS with Command/Handler architecture - Event Sourcing support ### **DDD-SPARC Methodology** - Specification phase with multilingual requirements - Pseudocode with cultural patterns - Architecture with regional compliance - Refinement with TDD in any language - Completion with internationalized deployment ## ๐ŸŽญ **Cultural Context Features** ### **Business Etiquette** - Formality levels (very formal, formal, neutral, informal) - Communication styles per culture - Decision-making patterns (consensus, hierarchical, individual) - Meeting and negotiation protocols ### **Regional Adaptations** - Date/time formatting - Currency and number formats - Address formats - Name ordering conventions - Legal and compliance requirements ## ๐Ÿ“ฆ **Installation & Configuration** ### **Full Installation** ```bash # Install with all features npm install -g claude-flow-multilang@latest # Initialize with DDD and multilingual support claude-flow-multilang init --ddd --multilingual # Configure languages claude-flow-multilang config set languages en,ru,zh-cn,ja ``` ### **Minimal Installation (Simple Projects)** ```bash # Install without DDD for simple projects npm install -g claude-flow-multilang@latest # Initialize without DDD claude-flow-multilang init --no-ddd # Use basic features only claude-flow-multilang swarm "build simple API" ``` ## ๐Ÿš€ **Usage Examples** ### **Multilingual Swarm Coordination** ```javascript import { ClaudeFlow, PolyglotAgent } from 'claude-flow-multilang'; const flow = new ClaudeFlow({ languages: ['en', 'ru', 'zh-cn'], primaryLanguage: 'en', enableDDD: true, culturalContext: true }); // Create polyglot agent const agent = new PolyglotAgent({ name: 'GlobalAssistant', languages: ['en', 'ru', 'zh-cn'], culturalAwareness: true }); // Process in any language await agent.process("ัะพะทะดะฐั‚ัŒ ะฝะพะฒั‹ะน ะทะฐะบะฐะท"); // Russian await agent.process("ๅˆ›ๅปบๆ–ฐ่ฎขๅ•"); // Chinese await agent.process("create new order"); // English ``` ### **DDD with Multilingual Support** ```javascript // Create bounded context in multiple languages const orderContext = new BoundedContext('ordering', { languages: ['en', 'de', 'ja'], primaryLanguage: 'en', ubiquitousLanguage: { en: { order: 'Order', customer: 'Customer' }, de: { order: 'Bestellung', customer: 'Kunde' }, ja: { order: 'ๆณจๆ–‡', customer: '้กงๅฎข' } } }); // Create multilingual aggregate class Order extends MultilingualAggregate { static create(customerId, items, language) { const order = new Order(customerId, items); order.setLanguage(language); order.applyBusinessRules(); order.applyCulturalRules(); return order; } } ``` ## ๐Ÿ”ง **CLI Commands** ### **Claude Flow Commands** ```bash claude-flow-multilang init [options] # Initialize project claude-flow-multilang swarm <task> # Quick AI coordination claude-flow-multilang hive-mind <command> # Complex orchestration claude-flow-multilang memory <action> # Memory management claude-flow-multilang config <key> <value> # Configuration ``` ### **DDD-SPARC Commands** ```bash ddd-sparc init <project> # Initialize DDD project ddd-sparc context create <name> # Create bounded context ddd-sparc aggregate add <name> # Add aggregate ddd-sparc service create <name> # Create domain service ddd-sparc generate [options] # Generate code ``` ## ๐Ÿ“Š **Performance Benchmarks** | Metric | Standard | With Multilingual | Improvement | |--------|----------|------------------|-------------| | Translation Speed | - | < 50ms | Real-time | | Language Detection | - | < 10ms | Instant | | Cultural Analysis | - | < 100ms | Fast | | Parallel Processing | 1x | 2.8-4.4x | Significant | | Memory Efficiency | Baseline | +15% overhead | Optimized | | Cache Hit Rate | 70% | 90% | Improved | ## ๐Ÿ› ๏ธ **Integration with Existing Projects** ### **Gradual Adoption** ```javascript // Start with single language const flow = new ClaudeFlow({ features: { multilingual: false, ddd: false } }); // Enable features as needed flow.enableMultilingual(['en', 'ru']); flow.enableDDD(); ``` ### **With Tauri Desktop Apps** ```javascript // Perfect for international desktop applications import { ClaudeFlow } from 'claude-flow-multilang'; export class TauriApp { constructor() { this.flow = new ClaudeFlow({ features: { multilingual: true, ddd: false, // Optional for simple apps languages: this.detectSystemLanguages() } }); } } ``` ## ๐Ÿ“š **Documentation** - [Installation Guide](./docs/INSTALLATION.md) - [Multilingual Features](./claude-flow-wiki/MULTILANG-FEATURES.md) - [DDD Integration Guide](./docs/DDD-GUIDE.md) - [DDD Multilingual Patterns](./claude-flow-wiki/DDD-MULTILANG-PATTERNS.md) - [API Reference](./docs/API-REFERENCE.md) - [Migration from v2.0](./CHANGELOG-MULTILANG.md) ## ๐Ÿค **Contributing** We welcome contributions in any of our supported languages! Please see [CONTRIBUTING.md](./CONTRIBUTING.md) for guidelines. ## ๐Ÿ“„ **License** MIT License - see [LICENSE](./LICENSE) for details. ## ๐Ÿ”— **Links** - **GitHub**: https://github.com/chatman-media/claude-flow-multilang - **NPM**: https://www.npmjs.com/package/claude-flow-multilang - **Documentation**: https://github.com/chatman-media/claude-flow-multilang/wiki - **Issues**: https://github.com/chatman-media/claude-flow-multilang/issues - **Discord**: [Join our community](https://discord.gg/claude-flow) --- <div align="center"> **Claude Flow Multilang v3.0.0** - Breaking Language Barriers in AI Development ๐ŸŒ๐Ÿค– *Built with โค๏ธ by the Claude Flow community* </div>