How swan-io/lake works
Main System Components
a) Core Component Library (Lake Package):
• Component Layer
• Hooks Layer
• Utils Layer
• Assets & Constants
b) Business Components Package:
• Business-specific Components
• Business Logic & Utils
• Localization System
• Business Constants
c) Development & Build Infrastructure:
• Storybook Integration
• Build System (Vite)
• Testing Framework
• CI/CD Pipeline
Component Architecture Representation
a) Use a layered architecture approach:
• [Development Tools Layer]
• [Component Packages Layer]
• [Core Infrastructure Layer]
• Blue: Core UI components
• Green: Business components
• Yellow: Development tools
• Gray: Infrastructure components
Specific Component Relationships
Key relationships:
Storybook Demo Layer
• ↑
UI Components ←→ Business Components
• ↓
Shared Infrastructure
• ↓
Build & Deploy Pipeline
Important Elements
a) Core Package (lake):
• Component hierarchy
• Shared utilities
• Hooks system
b) Business Package (shared-business):
• Business component relationship with core
• Localization system
• File handling system
• Modal & Toast systems
Integration Points
Clear connections for:
• Storybook integration with components
• Testing infrastructure
• Build system pipeline
• Asset management system
Technical Details
Annotations for:
• TypeScript integration
• CSS/styling system
• Asset management
• Internationalization
• Testing framework