How butlerx/invbeertory works
Main Components
a) Frontend Layer (Browser):
• WASM module as the core component
• Static assets (HTML, CSS, WebManifest)
• JavaScript interop (xkcd.js)
b) Application Core:
• Components Module
• Pages Module
• Storage Module
• Formatting Module
Component Relationships
a) Data Flow:
• CSV Data → Storage Module → Components
• User Interactions → Pages → Components → Charts
• Formatting Module → Components (for styling and presentation)
b) Key Architectural Elements:
• Use a hexagonal architecture representation showing:
• Frontend (Browser/WASM) as the primary interface
• Core business logic (Storage, Components)
• Data source (CSV file)
Specific Implementation Details
a) Chart Components:
• Chart types (Bar, Line, Pie, Radar, Stacked Bar, XY)
• Their relationship with the bindings.rs interface
b) Page Structure:
• Routing system connecting:
• Home
• Beer
• Graphs
• History
• Stock
• Not Found
Technical Stack Highlights
A stack section showing:
• Rust/WASM as the primary technology
• Trunk for building and serving
• Yew framework for UI components
• WebAssembly binding layer