How agritheory/stonecrop works
Main System Components
a) Frontend Components Layer:
• UI Components (@stonecrop/aform, @stonecrop/atable, @stonecrop/beam)
• Editor Components (@stonecrop/code_editor, @stonecrop/node_editor)
• Desktop Interface (@stonecrop/desktop)
• Theme System (@stonecrop/themes)
b) Core Layer:
• Main Stonecrop Engine (@stonecrop/stonecrop)
• Schema Processing
• Event Handling System
c) Communication Layer:
• GraphQL Client (@stonecrop/graphql_client)
• Server Middleware Integration
Component Relationships
Key interactions:
• Schema flow from core to UI components
• Event propagation paths
• Theme application to components
• GraphQL client data flow
Architectural Patterns to Highlight
• Schema-driven UI architecture
• Event-driven hooks system
• Component composition model
• Plugin architecture
• Rectangles: Main packages/modules
• Hexagons: Core services
• Rounded rectangles: UI components
• Blue: Frontend components
• Green: Core services
• Orange: Communication layers
• Purple: Utilities and shared services
• Solid: Direct dependencies
Key Relationships
@stonecrop/stonecrop (Core)
↓
Schema Processing
↓
UI Components (@stonecrop/aform, @stonecrop/atable, etc.)
↔
Event System
↔
GraphQL Client
↔
Backend Services
Implementation Details
• Schema validation and processing flow
• Component initialization and registration
• Event hook registration and execution paths
• Theme application system
• GraphQL client integration