How codebru/garden works
Main Components
a. Frontend Application Layer
b. Core Simulation Components
• As interconnected components within the main application
c. Rendering System
• To the simulation components
d. Infrastructure Layer
• Firebase hosting configuration
• GitHub Actions deployment workflow
Component Relationships
• index.js as the entry point, connecting to all major subsystems
• Utils module providing shared functionality across components
• Grid system organizing the simulation space
Technical Stack Elements
Technologies:
• Webpack (build system)
• Firebase (hosting platform)
• GitHub Actions (CI/CD)
• Browser Runtime Environment
• [Browser Environment]
• [Application Core (index.js)]
• [Simulation Components]
• Air System
• Dirt System
• Plant System
• Block System
• [Rendering Layer]
• Grid System
• [Shared Services]
• Constants
• Utils
• [Infrastructure]
• Firebase Hosting
• GitHub Actions
Special Notes
• Modular nature of the simulation components
• How the drawing system interfaces with the simulation state
• Entry point (index.js) as the orchestrator of all components
• Build process flow from source to deployed application