How remesh-js/remesh works
Main Components
a. Core Architecture Layer:
• Domain Layer (Central)
• CQRS Implementation Layer
• Event System Layer
• State Management Layer
b. Integration Components:
• Framework Adapters (React/Vue)
• External Tools Integration
• Developer Tools
┌─────────────────────────────────────── Remesh System ───────────────────────────────────────┐
• ┌─────────── Domain Layer ──────────┐ │
• ┌─────────── Framework Adapters ──────────┐ │
• ┌─────────┐ ┌─────────┐ │ │ │ │
• States │ │ Events │ │ │ ┌─────────┐ ┌─────────┐ │ │
• ┘ └─────────┘ │ │ │ React │ │ Vue │ │ │
• Adapter │ │ Adapter │ │ │
• ┌─────────┐ ┌─────────┐ │◄────►│ └─────────┘ └─────────┘ │ │
• Queries │ │Commands │ │ │ │ │
• ┘ └─────────┘ │ └─────────────────────────────────────────┘ │
• ┘ │
• ┌─────────── Support Modules ───────┐ ┌─────────── Developer Tools ───────────┐ │
• ┌─────────┐ ┌─────────┐ │ │ ┌──────────┐ ┌──────────┐ │ │
• YJS │ │ History │ │ │ │ Logger │ │ Redux │ │ │
• Module │ │ Module │ │ │ │ │ │ DevTools │ │ │
• ┘ └─────────┘ │ │ └──────────┘ └──────────┘ │ │
• ┘ └────────────────────────────────────────┘ │
• ┘
Key Elements to Highlight
a. Domain Layer:
• States (immutable data store)
• Queries (read operations)
• Commands (write operations)
• Events (domain events)
• Effects (side effects handling)
b. Framework Integration:
• React Adapter (remesh-react)
• Vue Adapter (remesh-vue)
• Framework-specific hooks and utilities
c. Support Features:
• YJS Integration (collaboration)
• History Module (time-travel)
• Reactive Programming Support
• SSR Capabilities
d. Developer Tools:
• Logger
• Redux DevTools Integration
• Debugging Utilities
Implementation Details
• CQRS pattern implementation
• Event-driven architecture
• Reactive programming flow
• Modular structure of domains
Additional Notes
• Version information
• TypeScript support
• SSR capabilities
• Integration points with external systems