How mrother/drawdb works
Main Components
A. Frontend Architecture (React-based SPA):
• Editor Core Components
• Canvas System
• Side Panel System
• Header Controls
• Modal System
• Context Management
• Internationalization (i18n)
B. Core Features:
• SQL Export/Import System
• Layout Engine
• Undo/Redo System
• State Management
A high-level view
• Use clear hierarchical layout
Break down the components as follows
[User Interface Layer]
• Editor Canvas System
• Table Components
• Relationship Components
• Area Components
• Note Components
• Control Systems
• Editor Header
• Side Panel
• Floating Controls
• Modal System
• Import/Export
• Settings
• Sharing
[Core Logic Layer]
• Context Providers
• Canvas Context
• Layout Context
• Other Contexts...
[Feature Services Layer]
• SQL Generation
• Multiple DB Support
• Export Formats
• Import Services
• SQL Parsing
• Utility Services
• Layout Engine
• Path Calculation
• Schema Validation
Important Implementation Details to Highlight
• Relationship between contexts and their consumers
• Data flow for import/export operations
• Demonstrate the interaction between the canvas and control systems
• How the i18n system integrates with components
Technical Stack Indicators
• React
• Vite
• Tailwind CSS
• Lexical Editor Integration
• Docker support