How kraftman/3de works
Main System Components
A. Electron Application Layer
• Main Process (src/main.js)
• Renderer Process (src/renderer.js)
• Preload Scripts (src/preload.js)
B. Core Application Components
• Flow Manager (src/FlowManager.jsx)
• Layer Manager (src/components/LayerManager.jsx)
• File System Manager (src/stores/useFileSystem.js)
• Node Manager (src/hooks/useNodeManager.js)
C. Node Types System
• Code Nodes
• Module Nodes
• Markdown Nodes
• Pure Function Nodes
• Settings Nodes
• Text Nodes
• Image Nodes
D. Utility Systems
• AST Processing (src/utils/astUtils.js)
• Code Analysis (src/utils/parser.js)
• File Operations (src/utils/fileUtils.js)
• Layout Management (src/utils/nodeUtils/layoutChildren.js)
┌─────────────────────────────────────────────┐
• Electron Runtime │
• ┤
• React Application │
• ┤
• File System Layer │
• ┘
Key Relationships to Highlight
• Bidirectional communication between Main and Renderer processes
• How the Flow Manager orchestrates different node types
• Demonstrate the relationship between the File System and Node Manager
• How the AST processing pipeline works with different node types
Specific Implementation Details
┌─────────────────────┐
• Component Name │
• ┤
• Key Function 1 │
• Key Function 2 │
• ┘
Data Flow Indicators
• File system operations (→)
• Component communication (⇄)
• Event flows (⇢)
• Data transformations (⇒)
Implementation Notes
• Nested components
• Bidirectional relationships
• Layer management
• Clear typography for component labels