How funk-team/funklang works
Main System Components
a) Core Editor Components:
• Canvas System (src/Canvas/*)
• API Explorer (src/ApiExplorer/*)
• Code Editor (src/CodeEditor/*)
• Design System (src/DesignSystem/*)
• Model Editor (src/ModelEditor/*)
b) Runtime & Rendering:
• Runtime Engine (src/Runtime/*)
• Renderer System (src/Renderer/*)
• Custom Elements (src/customElements/*)
c) Infrastructure:
• File System (src/FileSystem/*)
• CLI Integration (cli-src/*)
• Persistence Layer (src/Persistence/*)
Component Relationships
┌─────────────────────── User Interface Layer ──────────────────────┐
• ┌─────────┐ ┌──────────┐ ┌────────────┐ ┌────────────────┐ │
• Canvas │ │ API │ │ Code │ │ Design System │ │
• Editor │ │ Explorer │ │ Editor │ │ Editor │ │
• ┬────┘ └────┬─────┘ └─────┬──────┘ └───────┬────────┘ │
• ┼───────────┼──────────────┼───────────────────┼───────────┘
┌───────┼───────────┼──────────────┼───────────────────┼───────────┐
• Runtime & Rendering Layer │
• ┌────────────────┐ ┌──────────────────┐ ┌─────────────────┐ │
• Runtime Engine │ │ Renderer System │ │ Custom Elements │ │
• ┬────────┘ └────────┬─────────┘ └────────┬────────┘ │
• ┼────────────────────┼──────────────────────┼───────────┘
┌──────────┼────────────────────┼──────────────────────┼───────────┐
• Infrastructure Layer │
• ┌────────────────┐ ┌──────────────────┐ ┌─────────────────┐ │
• File System │ │ CLI Integration │ │ Persistence │ │
• ┘ └──────────────────┘ └─────────────────┘ │
• ┘
Additional Elements
• Version information
• Main entry points
• Experimental features (like CLI) with appropriate symbols
Implementation Details
• Maintain consistent spacing and alignment
• Brief annotations for complex interactions
• Creating separate detailed views for complex subsystems